From 1f79d38dc90976530655798d8b95bdd7f523ad45 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Thu, 25 Apr 2024 14:39:48 +0300 Subject: [PATCH 01/19] Added TMF628 model as generated --- .gitignore | 1 + .../etsi/osl/tmf/pm628/model/Addressable.java | 109 +++ .../tmf/pm628/model/AdministrativeState.java | 56 ++ .../osl/tmf/pm628/model/Characteristic.java | 278 +++++++ .../model/CharacteristicRelationship.java | 205 ++++++ .../osl/tmf/pm628/model/CollectionType.java | 62 ++ .../tmf/pm628/model/CompressionEnumType.java | 60 ++ .../osl/tmf/pm628/model/CompressionType.java | 86 +++ .../tmf/pm628/model/DayOfMonthRecurrence.java | 159 ++++ .../tmf/pm628/model/DayOfWeekRecurrence.java | 159 ++++ .../etsi/osl/tmf/pm628/model/Duration.java | 108 +++ .../org/etsi/osl/tmf/pm628/model/Entity.java | 181 +++++ .../etsi/osl/tmf/pm628/model/EntityRef.java | 240 +++++++ .../org/etsi/osl/tmf/pm628/model/Error.java | 265 +++++++ .../tmf/pm628/model/EventSubscription.java | 144 ++++ .../pm628/model/EventSubscriptionInput.java | 119 +++ .../tmf/pm628/model/ExecutionStateType.java | 66 ++ .../etsi/osl/tmf/pm628/model/Extensible.java | 133 ++++ .../osl/tmf/pm628/model/FileTransferData.java | 279 +++++++ .../etsi/osl/tmf/pm628/model/Granularity.java | 70 ++ .../osl/tmf/pm628/model/IndicatorType.java | 60 ++ .../osl/tmf/pm628/model/ManagementJob.java | 404 +++++++++++ .../pm628/model/MeasurementCollectionJob.java | 679 ++++++++++++++++++ ...ollectionJobAttributeValueChangeEvent.java | 329 +++++++++ ...onJobAttributeValueChangeEventPayload.java | 85 +++ .../model/MeasurementCollectionJobCreate.java | 633 ++++++++++++++++ .../MeasurementCollectionJobCreateEvent.java | 305 ++++++++ ...rementCollectionJobCreateEventPayload.java | 85 +++ .../MeasurementCollectionJobDeleteEvent.java | 305 ++++++++ ...rementCollectionJobDeleteEventPayload.java | 85 +++ ...ollectionJobExecutionStateChangeEvent.java | 305 ++++++++ ...onJobExecutionStateChangeEventPayload.java | 85 +++ ...llectionJobFilesPreparationErrorEvent.java | 305 ++++++++ ...nJobFilesPreparationErrorEventPayload.java | 85 +++ ...asurementCollectionJobFilesReadyEvent.java | 305 ++++++++ ...ntCollectionJobFilesReadyEventPayload.java | 85 +++ .../model/MeasurementCollectionJobUpdate.java | 633 ++++++++++++++++ .../osl/tmf/pm628/model/MeasurementJob.java | 630 ++++++++++++++++ .../pm628/model/MonitoredClassCriteria.java | 181 +++++ .../model/MonitoredInstancesCriteria.java | 133 ++++ .../MonthlyScheduleDayOfWeekDefinition.java | 193 +++++ .../tmf/pm628/model/OnDemandCollection.java | 678 +++++++++++++++++ ...ndCollectionAttributeValueChangeEvent.java | 329 +++++++++ ...ctionAttributeValueChangeEventPayload.java | 85 +++ .../pm628/model/OnDemandCollectionCreate.java | 633 ++++++++++++++++ .../model/OnDemandCollectionCreateEvent.java | 305 ++++++++ .../OnDemandCollectionCreateEventPayload.java | 85 +++ .../model/OnDemandCollectionDeleteEvent.java | 305 ++++++++ .../OnDemandCollectionDeleteEventPayload.java | 85 +++ ...ndCollectionExecutionStateChangeEvent.java | 305 ++++++++ ...ctionExecutionStateChangeEventPayload.java | 85 +++ ...dCollectionFilesPreparationErrorEvent.java | 305 ++++++++ ...tionFilesPreparationErrorEventPayload.java | 85 +++ .../OnDemandCollectionFilesReadyEvent.java | 305 ++++++++ ...emandCollectionFilesReadyEventPayload.java | 85 +++ .../pm628/model/OnDemandCollectionUpdate.java | 633 ++++++++++++++++ .../osl/tmf/pm628/model/PackingEnumType.java | 62 ++ .../etsi/osl/tmf/pm628/model/PackingType.java | 86 +++ ...erformanceIndicatorGroupSpecification.java | 253 +++++++ ...anceIndicatorGroupSpecificationCreate.java | 208 ++++++ ...anceIndicatorGroupSpecificationUpdate.java | 208 ++++++ .../PerformanceIndicatorSpecRelationship.java | 290 ++++++++ .../PerformanceIndicatorSpecification.java | 462 ++++++++++++ ...rformanceIndicatorSpecificationCreate.java | 416 +++++++++++ .../PerformanceIndicatorSpecificationRef.java | 264 +++++++ ...manceIndicatorSpecificationRefOrValue.java | 510 +++++++++++++ ...rformanceIndicatorSpecificationUpdate.java | 416 +++++++++++ .../tmf/pm628/model/ProtocolTransferData.java | 83 +++ .../osl/tmf/pm628/model/ReportingPeriod.java | 66 ++ .../tmf/pm628/model/ScheduleDefinition.java | 295 ++++++++ .../etsi/osl/tmf/pm628/model/TimePeriod.java | 112 +++ .../osl/tmf/pm628/model/TrackingRecord.java | 293 ++++++++ 72 files changed, 17022 insertions(+) create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Error.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java diff --git a/.gitignore b/.gitignore index 59419d5..59e9a26 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /.project /.classpath /.settings +*.iml diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java new file mode 100644 index 0000000..09c692f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java @@ -0,0 +1,109 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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/pm628/model/AdministrativeState.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java new file mode 100644 index 0000000..6cfc1ed --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java @@ -0,0 +1,56 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * This is enumeration for Administrative state + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[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/Characteristic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java new file mode 100644 index 0000000..f3fb090 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -0,0 +1,278 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.CharacteristicRelationship; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Describes a given characteristic of an object or entity through a name/value pair. + */ + +@Schema(name = "Characteristic", description = "Describes a given characteristic of an object or entity through a name/value pair.") +@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 Characteristic { + + private String id; + + private String name; + + private String valueType; + + @Valid + private List<@Valid CharacteristicRelationship> characteristicRelationship = new ArrayList<>(); + + private Object value; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public Characteristic() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Characteristic(String name, Object value) { + this.name = name; + this.value = value; + } + + public Characteristic id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Characteristic name(String name) { + this.name = name; + return this; + } + + /** + * Name of the characteristic + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + 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<@Valid CharacteristicRelationship> 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; + } + + /** + * Get characteristicRelationship + * @return characteristicRelationship + */ + @Valid + @Schema(name = "characteristicRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristicRelationship") + public List<@Valid CharacteristicRelationship> getCharacteristicRelationship() { + return characteristicRelationship; + } + + public void setCharacteristicRelationship(List<@Valid CharacteristicRelationship> characteristicRelationship) { + this.characteristicRelationship = characteristicRelationship; + } + + public Characteristic value(Object value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + */ + @NotNull + @Schema(name = "value", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("value") + public Object getValue() { + return value; + } + + public void setValue(Object value) { + this.value = value; + } + + public Characteristic 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 Characteristic 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 Characteristic 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; + } + Characteristic characteristic = (Characteristic) o; + return Objects.equals(this.id, characteristic.id) && + Objects.equals(this.name, characteristic.name) && + Objects.equals(this.valueType, characteristic.valueType) && + Objects.equals(this.characteristicRelationship, characteristic.characteristicRelationship) && + Objects.equals(this.value, characteristic.value) && + Objects.equals(this.atBaseType, characteristic.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristic.atSchemaLocation) && + Objects.equals(this.atType, characteristic.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, valueType, characteristicRelationship, value, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Characteristic {\n"); + sb.append(" id: ").append(toIndentedString(id)).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(" value: ").append(toIndentedString(value)).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/pm628/model/CharacteristicRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java new file mode 100644 index 0000000..d4d03fa --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -0,0 +1,205 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Another Characteristic that is related to the current Characteristic; + */ + +@Schema(name = "CharacteristicRelationship", description = "Another Characteristic that is related to the current Characteristic;") +@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 CharacteristicRelationship { + + private String id; + + private URI href; + + private String relationshipType; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public CharacteristicRelationship id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CharacteristicRelationship 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 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; + } + + public CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship 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; + } + CharacteristicRelationship characteristicRelationship = (CharacteristicRelationship) o; + return Objects.equals(this.id, characteristicRelationship.id) && + Objects.equals(this.href, characteristicRelationship.href) && + Objects.equals(this.relationshipType, characteristicRelationship.relationshipType) && + Objects.equals(this.atBaseType, characteristicRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicRelationship.atSchemaLocation) && + Objects.equals(this.atType, characteristicRelationship.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, relationshipType, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicRelationship {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).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/pm628/model/CollectionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java new file mode 100644 index 0000000..a048f61 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java @@ -0,0 +1,62 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * This is enumeration for CollectionType state + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[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 0000000..8b6fb7d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java @@ -0,0 +1,60 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Enumeration of supported compressions. All extensions allowed. + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[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 0000000..d52ca6e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -0,0 +1,86 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import org.etsi.osl.tmf.pm628.model.CompressionEnumType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * File compression type. + */ + +@Schema(name = "CompressionType", description = "File compression type.") +@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 CompressionType { + + 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/DayOfMonthRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java new file mode 100644 index 0000000..19cb309 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -0,0 +1,159 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DayOfMonthRecurrence + */ + +@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 DayOfMonthRecurrence { + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + 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 OffsetDateTime getDates() { + return dates; + } + + public void setDates(OffsetDateTime dates) { + this.dates = dates; + } + + public DayOfMonthRecurrence 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 DayOfMonthRecurrence 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 DayOfMonthRecurrence 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; + } + DayOfMonthRecurrence dayOfMonthRecurrence = (DayOfMonthRecurrence) o; + return Objects.equals(this.dates, dayOfMonthRecurrence.dates) && + Objects.equals(this.atBaseType, dayOfMonthRecurrence.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfMonthRecurrence.atSchemaLocation) && + Objects.equals(this.atType, dayOfMonthRecurrence.atType); + } + + @Override + public int hashCode() { + return Objects.hash(dates, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfMonthRecurrence {\n"); + sb.append(" dates: ").append(toIndentedString(dates)).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/pm628/model/DayOfWeekRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java new file mode 100644 index 0000000..d0b2a84 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -0,0 +1,159 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DayOfWeekRecurrence + */ + +@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 DayOfWeekRecurrence { + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public DayOfWeekRecurrence 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; + } + + public DayOfWeekRecurrence 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 DayOfWeekRecurrence 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 DayOfWeekRecurrence 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; + } + DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o; + return Objects.equals(this.dates, dayOfWeekRecurrence.dates) && + Objects.equals(this.atBaseType, dayOfWeekRecurrence.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfWeekRecurrence.atSchemaLocation) && + Objects.equals(this.atType, dayOfWeekRecurrence.atType); + } + + @Override + public int hashCode() { + return Objects.hash(dates, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfWeekRecurrence {\n"); + sb.append(" dates: ").append(toIndentedString(dates)).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/pm628/model/Duration.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java new file mode 100644 index 0000000..79d28cc --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -0,0 +1,108 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public class Duration { + + private Integer amount; + + 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 "); + } +} + diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java new file mode 100644 index 0000000..f8385ba --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -0,0 +1,181 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java new file mode 100644 index 0000000..20d04d5 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -0,0 +1,240 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java new file mode 100644 index 0000000..9eae887 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -0,0 +1,265 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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/pm628/model/EventSubscription.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java new file mode 100644 index 0000000..f26ff93 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java @@ -0,0 +1,144 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Sets the communication endpoint address the service instance must use to deliver notification information + */ + +@Schema(name = "EventSubscription", description = "Sets the communication endpoint address the service instance must use to deliver notification information") +@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 EventSubscription { + + private String id; + + private String callback; + + private String query; + + public EventSubscription() { + super(); + } + + /** + * Constructor with only required parameters + */ + public EventSubscription(String id, String callback) { + this.id = id; + this.callback = callback; + } + + public EventSubscription id(String id) { + this.id = id; + return this; + } + + /** + * Id of the listener + * @return id + */ + @NotNull + @Schema(name = "id", description = "Id of the listener", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + 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 + */ + @NotNull + @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("callback") + 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("query") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + @Override + public boolean equals(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(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/EventSubscriptionInput.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java new file mode 100644 index 0000000..98b8ddc --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java @@ -0,0 +1,119 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Sets the communication endpoint address the service instance must use to deliver notification information + */ + +@Schema(name = "EventSubscriptionInput", description = "Sets the communication endpoint address the service instance must use to deliver notification information") +@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 EventSubscriptionInput { + + private String callback; + + private String query; + + public EventSubscriptionInput() { + super(); + } + + /** + * Constructor with only required parameters + */ + public EventSubscriptionInput(String callback) { + this.callback = callback; + } + + public EventSubscriptionInput callback(String callback) { + this.callback = callback; + return this; + } + + /** + * The callback being registered. + * @return callback + */ + @NotNull + @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("callback") + 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("query") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + @Override + public boolean equals(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(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/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java new file mode 100644 index 0000000..b36f361 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java @@ -0,0 +1,66 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Possible values for the state of the execution + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public enum ExecutionStateType { + + ACKNOWLEDGED("acknowledged"), + + REJECTED("rejected"), + + PENDING("pending"), + + INPROGRESS("inProgress"), + + CANCELLED("cancelled"), + + COMPLETED("completed"), + + FAILED("failed"); + + private String value; + + ExecutionStateType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ExecutionStateType fromValue(String value) { + for (ExecutionStateType b : ExecutionStateType.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/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java new file mode 100644 index 0000000..bd9b955 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -0,0 +1,133 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Base Extensible schema for use in TMForum Open-APIs + */ + +@Schema(name = "Extensible", description = "Base Extensible 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 Extensible { + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public Extensible 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 Extensible 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 Extensible 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; + } + Extensible extensible = (Extensible) o; + return Objects.equals(this.atBaseType, extensible.atBaseType) && + Objects.equals(this.atSchemaLocation, extensible.atSchemaLocation) && + Objects.equals(this.atType, extensible.atType); + } + + @Override + public int hashCode() { + return Objects.hash(atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Extensible {\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/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java new file mode 100644 index 0000000..ee36641 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -0,0 +1,279 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.etsi.osl.tmf.pm628.model.CompressionType; +import org.etsi.osl.tmf.pm628.model.Duration; +import org.etsi.osl.tmf.pm628.model.PackingType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FileTransferData + */ + +@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 FileTransferData { + + private String fileFormat; + + private URI fileLocation; + + private String transportProtocol; + + private CompressionType compressionType; + + private PackingType packingType; + + private Duration retentionPeriod; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public FileTransferData fileFormat(String fileFormat) { + this.fileFormat = fileFormat; + return this; + } + + /** + * Get fileFormat + * @return fileFormat + */ + + @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileFormat") + public String getFileFormat() { + return fileFormat; + } + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + + public FileTransferData fileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + return this; + } + + /** + * Get fileLocation + * @return fileLocation + */ + @Valid + @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileLocation") + public URI getFileLocation() { + return fileLocation; + } + + public void setFileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + } + + public FileTransferData transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } + + /** + * Get transportProtocol + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + + public FileTransferData compressionType(CompressionType compressionType) { + this.compressionType = compressionType; + return this; + } + + /** + * Get compressionType + * @return compressionType + */ + @Valid + @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionType") + public CompressionType getCompressionType() { + return compressionType; + } + + public void setCompressionType(CompressionType compressionType) { + this.compressionType = compressionType; + } + + public FileTransferData packingType(PackingType packingType) { + this.packingType = packingType; + return this; + } + + /** + * Get packingType + * @return packingType + */ + @Valid + @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingType") + public PackingType getPackingType() { + return packingType; + } + + public void setPackingType(PackingType packingType) { + this.packingType = packingType; + } + + public FileTransferData retentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + + /** + * Get retentionPeriod + * @return retentionPeriod + */ + @Valid + @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("retentionPeriod") + public Duration getRetentionPeriod() { + return retentionPeriod; + } + + public void setRetentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + } + + public FileTransferData 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 FileTransferData 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 FileTransferData 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; + } + FileTransferData fileTransferData = (FileTransferData) o; + return Objects.equals(this.fileFormat, fileTransferData.fileFormat) && + Objects.equals(this.fileLocation, fileTransferData.fileLocation) && + Objects.equals(this.transportProtocol, fileTransferData.transportProtocol) && + Objects.equals(this.compressionType, fileTransferData.compressionType) && + Objects.equals(this.packingType, fileTransferData.packingType) && + Objects.equals(this.retentionPeriod, fileTransferData.retentionPeriod) && + Objects.equals(this.atBaseType, fileTransferData.atBaseType) && + Objects.equals(this.atSchemaLocation, fileTransferData.atSchemaLocation) && + Objects.equals(this.atType, fileTransferData.atType); + } + + @Override + public int hashCode() { + return Objects.hash(fileFormat, fileLocation, transportProtocol, compressionType, packingType, retentionPeriod, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileTransferData {\n"); + sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); + sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).append("\n"); + sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); + sb.append(" packingType: ").append(toIndentedString(packingType)).append("\n"); + sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).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/pm628/model/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java new file mode 100644 index 0000000..f20293c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java @@ -0,0 +1,70 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Sampling rate of the collection or production of performance indicators. + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public enum Granularity { + + G_1MN("g_1mn"), + + G_5MN("g_5mn"), + + G_15MN("g_15mn"), + + G_30MN("g_30mn"), + + G_1H("g_1h"), + + G_24H("g_24h"), + + G_1M("g_1m"), + + G_1Y("g_1y"), + + NA("na"); + + private String value; + + Granularity(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static Granularity fromValue(String value) { + for (Granularity b : Granularity.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/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java new file mode 100644 index 0000000..216999e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java @@ -0,0 +1,60 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * This is enumeration for Indicator Type + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public enum IndicatorType { + + STRING("string"), + + INT("int"), + + FLOAT("float"), + + DOUBLE("double"); + + private String value; + + IndicatorType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static IndicatorType fromValue(String value) { + for (IndicatorType b : IndicatorType.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/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java new file mode 100644 index 0000000..34c2b61 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -0,0 +1,404 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ManagementJob + */ + +@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 ManagementJob { + + private String id; + + private URI href; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public ManagementJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ManagementJob(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJob 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 ManagementJob 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 ManagementJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public ManagementJob jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ManagementJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public ManagementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public ManagementJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public ManagementJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public ManagementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public ManagementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public ManagementJob 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 ManagementJob 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 ManagementJob 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; + } + ManagementJob managementJob = (ManagementJob) o; + return Objects.equals(this.id, managementJob.id) && + Objects.equals(this.href, managementJob.href) && + Objects.equals(this.creationTime, managementJob.creationTime) && + Objects.equals(this.jobId, managementJob.jobId) && + Objects.equals(this.jobPriority, managementJob.jobPriority) && + Objects.equals(this.lastModifiedTime, managementJob.lastModifiedTime) && + Objects.equals(this.adminState, managementJob.adminState) && + Objects.equals(this.executionState, managementJob.executionState) && + Objects.equals(this.fileTransferData, managementJob.fileTransferData) && + Objects.equals(this.scheduleDefinition, managementJob.scheduleDefinition) && + Objects.equals(this.atBaseType, managementJob.atBaseType) && + Objects.equals(this.atSchemaLocation, managementJob.atSchemaLocation) && + Objects.equals(this.atType, managementJob.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, creationTime, jobId, jobPriority, lastModifiedTime, adminState, executionState, fileTransferData, scheduleDefinition, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ManagementJob {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java new file mode 100644 index 0000000..ac14f6c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -0,0 +1,679 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. + */ + +@Schema(name = "MeasurementCollectionJob", description = "Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job.") +@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 MeasurementCollectionJob { + + private String id; + + private URI href; + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granularity; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ReportingPeriod reportingPeriod; + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MeasurementCollectionJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJob(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJob 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 MeasurementCollectionJob 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 MeasurementCollectionJob consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementCollectionJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementCollectionJob jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementCollectionJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementCollectionJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementCollectionJob outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJob producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementCollectionJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementCollectionJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementCollectionJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementCollectionJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJob granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementCollectionJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementCollectionJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementCollectionJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementCollectionJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementCollectionJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementCollectionJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementCollectionJob reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementCollectionJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementCollectionJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementCollectionJob 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 MeasurementCollectionJob 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 MeasurementCollectionJob 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; + } + MeasurementCollectionJob measurementCollectionJob = (MeasurementCollectionJob) o; + return Objects.equals(this.id, measurementCollectionJob.id) && + Objects.equals(this.href, measurementCollectionJob.href) && + Objects.equals(this.consumingApplicationId, measurementCollectionJob.consumingApplicationId) && + Objects.equals(this.creationTime, measurementCollectionJob.creationTime) && + Objects.equals(this.jobId, measurementCollectionJob.jobId) && + Objects.equals(this.jobPriority, measurementCollectionJob.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementCollectionJob.lastModifiedTime) && + Objects.equals(this.outputFormat, measurementCollectionJob.outputFormat) && + Objects.equals(this.producingApplicationId, measurementCollectionJob.producingApplicationId) && + Objects.equals(this.adminState, measurementCollectionJob.adminState) && + Objects.equals(this.executionState, measurementCollectionJob.executionState) && + Objects.equals(this.fileTransferData, measurementCollectionJob.fileTransferData) && + Objects.equals(this.granularity, measurementCollectionJob.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementCollectionJob.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJob.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJob.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJob.performanceIndicatorSpecification) && + Objects.equals(this.reportingPeriod, measurementCollectionJob.reportingPeriod) && + Objects.equals(this.scheduleDefinition, measurementCollectionJob.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementCollectionJob.trackingRecord) && + Objects.equals(this.atBaseType, measurementCollectionJob.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJob.atSchemaLocation) && + Objects.equals(this.atType, measurementCollectionJob.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJob {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java new file mode 100644 index 0000000..ede45a1 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -0,0 +1,329 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobAttributeValueChangeEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "MeasurementCollectionJobAttributeValueChangeEvent", description = "The notification data structure") +@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 MeasurementCollectionJobAttributeValueChangeEvent { + + 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; + + private String fieldPath; + + private MeasurementCollectionJobAttributeValueChangeEventPayload event; + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOcurred") + public OffsetDateTime getTimeOcurred() { + return timeOcurred; + } + + public void setTimeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + } + + public MeasurementCollectionJobAttributeValueChangeEvent fieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return this; + } + + /** + * The path identifying the object field concerned by this notification. + * @return fieldPath + */ + + @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fieldPath") + public String getFieldPath() { + return fieldPath; + } + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + + public MeasurementCollectionJobAttributeValueChangeEvent event(MeasurementCollectionJobAttributeValueChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobAttributeValueChangeEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobAttributeValueChangeEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobAttributeValueChangeEvent measurementCollectionJobAttributeValueChangeEvent = (MeasurementCollectionJobAttributeValueChangeEvent) o; + return Objects.equals(this.eventId, measurementCollectionJobAttributeValueChangeEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobAttributeValueChangeEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobAttributeValueChangeEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobAttributeValueChangeEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobAttributeValueChangeEvent.domain) && + Objects.equals(this.title, measurementCollectionJobAttributeValueChangeEvent.title) && + Objects.equals(this.description, measurementCollectionJobAttributeValueChangeEvent.description) && + Objects.equals(this.priority, measurementCollectionJobAttributeValueChangeEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobAttributeValueChangeEvent.timeOcurred) && + Objects.equals(this.fieldPath, measurementCollectionJobAttributeValueChangeEvent.fieldPath) && + Objects.equals(this.event, measurementCollectionJobAttributeValueChangeEvent.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 MeasurementCollectionJobAttributeValueChangeEvent {\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(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/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java new file mode 100644 index 0000000..a70a2d1 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "MeasurementCollectionJobAttributeValueChangeEventPayload", description = "The event data structure") +@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 MeasurementCollectionJobAttributeValueChangeEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJobAttributeValueChangeEventPayload = (MeasurementCollectionJobAttributeValueChangeEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobAttributeValueChangeEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobAttributeValueChangeEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java new file mode 100644 index 0000000..557fde7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java @@ -0,0 +1,633 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href + */ + +@Schema(name = "MeasurementCollectionJob_Create", description = "Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href") +@JsonTypeName("MeasurementCollectionJob_Create") +@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 MeasurementCollectionJobCreate { + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granularity; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ReportingPeriod reportingPeriod; + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MeasurementCollectionJobCreate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobCreate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJobCreate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementCollectionJobCreate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementCollectionJobCreate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementCollectionJobCreate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementCollectionJobCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementCollectionJobCreate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJobCreate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementCollectionJobCreate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementCollectionJobCreate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementCollectionJobCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementCollectionJobCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJobCreate granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementCollectionJobCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementCollectionJobCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementCollectionJobCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementCollectionJobCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementCollectionJobCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementCollectionJobCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementCollectionJobCreate reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJobCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementCollectionJobCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementCollectionJobCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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; + } + MeasurementCollectionJobCreate measurementCollectionJobCreate = (MeasurementCollectionJobCreate) o; + return Objects.equals(this.consumingApplicationId, measurementCollectionJobCreate.consumingApplicationId) && + Objects.equals(this.creationTime, measurementCollectionJobCreate.creationTime) && + Objects.equals(this.jobId, measurementCollectionJobCreate.jobId) && + Objects.equals(this.jobPriority, measurementCollectionJobCreate.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementCollectionJobCreate.lastModifiedTime) && + Objects.equals(this.outputFormat, measurementCollectionJobCreate.outputFormat) && + Objects.equals(this.producingApplicationId, measurementCollectionJobCreate.producingApplicationId) && + Objects.equals(this.adminState, measurementCollectionJobCreate.adminState) && + Objects.equals(this.executionState, measurementCollectionJobCreate.executionState) && + Objects.equals(this.fileTransferData, measurementCollectionJobCreate.fileTransferData) && + Objects.equals(this.granularity, measurementCollectionJobCreate.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementCollectionJobCreate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobCreate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobCreate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobCreate.performanceIndicatorSpecification) && + Objects.equals(this.reportingPeriod, measurementCollectionJobCreate.reportingPeriod) && + Objects.equals(this.scheduleDefinition, measurementCollectionJobCreate.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementCollectionJobCreate.trackingRecord) && + Objects.equals(this.atBaseType, measurementCollectionJobCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobCreate.atSchemaLocation) && + Objects.equals(this.atType, measurementCollectionJobCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java new file mode 100644 index 0000000..a74c680 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobCreateEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "MeasurementCollectionJobCreateEvent", description = "The notification data structure") +@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 MeasurementCollectionJobCreateEvent { + + private MeasurementCollectionJobCreateEventPayload 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 MeasurementCollectionJobCreateEvent event(MeasurementCollectionJobCreateEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobCreateEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobCreateEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobCreateEvent measurementCollectionJobCreateEvent = (MeasurementCollectionJobCreateEvent) o; + return Objects.equals(this.event, measurementCollectionJobCreateEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobCreateEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobCreateEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobCreateEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobCreateEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobCreateEvent.domain) && + Objects.equals(this.title, measurementCollectionJobCreateEvent.title) && + Objects.equals(this.description, measurementCollectionJobCreateEvent.description) && + Objects.equals(this.priority, measurementCollectionJobCreateEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobCreateEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreateEvent {\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/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java new file mode 100644 index 0000000..53808f5 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "MeasurementCollectionJobCreateEventPayload", description = "The event data structure") +@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 MeasurementCollectionJobCreateEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobCreateEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobCreateEventPayload measurementCollectionJobCreateEventPayload = (MeasurementCollectionJobCreateEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobCreateEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreateEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java new file mode 100644 index 0000000..cee6a0b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobDeleteEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "MeasurementCollectionJobDeleteEvent", description = "The notification data structure") +@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 MeasurementCollectionJobDeleteEvent { + + private MeasurementCollectionJobDeleteEventPayload 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 MeasurementCollectionJobDeleteEvent event(MeasurementCollectionJobDeleteEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobDeleteEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobDeleteEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobDeleteEvent measurementCollectionJobDeleteEvent = (MeasurementCollectionJobDeleteEvent) o; + return Objects.equals(this.event, measurementCollectionJobDeleteEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobDeleteEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobDeleteEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobDeleteEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobDeleteEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobDeleteEvent.domain) && + Objects.equals(this.title, measurementCollectionJobDeleteEvent.title) && + Objects.equals(this.description, measurementCollectionJobDeleteEvent.description) && + Objects.equals(this.priority, measurementCollectionJobDeleteEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobDeleteEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobDeleteEvent {\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/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java new file mode 100644 index 0000000..15fe18c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "MeasurementCollectionJobDeleteEventPayload", description = "The event data structure") +@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 MeasurementCollectionJobDeleteEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobDeleteEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobDeleteEventPayload measurementCollectionJobDeleteEventPayload = (MeasurementCollectionJobDeleteEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobDeleteEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobDeleteEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java new file mode 100644 index 0000000..1432264 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobExecutionStateChangeEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "MeasurementCollectionJobExecutionStateChangeEvent", description = "The notification data structure") +@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 MeasurementCollectionJobExecutionStateChangeEvent { + + private MeasurementCollectionJobExecutionStateChangeEventPayload 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 MeasurementCollectionJobExecutionStateChangeEvent event(MeasurementCollectionJobExecutionStateChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobExecutionStateChangeEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobExecutionStateChangeEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobExecutionStateChangeEvent measurementCollectionJobExecutionStateChangeEvent = (MeasurementCollectionJobExecutionStateChangeEvent) o; + return Objects.equals(this.event, measurementCollectionJobExecutionStateChangeEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobExecutionStateChangeEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobExecutionStateChangeEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobExecutionStateChangeEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobExecutionStateChangeEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobExecutionStateChangeEvent.domain) && + Objects.equals(this.title, measurementCollectionJobExecutionStateChangeEvent.title) && + Objects.equals(this.description, measurementCollectionJobExecutionStateChangeEvent.description) && + Objects.equals(this.priority, measurementCollectionJobExecutionStateChangeEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobExecutionStateChangeEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobExecutionStateChangeEvent {\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/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java new file mode 100644 index 0000000..e61fe5e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "MeasurementCollectionJobExecutionStateChangeEventPayload", description = "The event data structure") +@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 MeasurementCollectionJobExecutionStateChangeEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJobExecutionStateChangeEventPayload = (MeasurementCollectionJobExecutionStateChangeEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobExecutionStateChangeEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobExecutionStateChangeEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java new file mode 100644 index 0000000..21a00ee --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesPreparationErrorEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "MeasurementCollectionJobFilesPreparationErrorEvent", description = "The notification data structure") +@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 MeasurementCollectionJobFilesPreparationErrorEvent { + + private MeasurementCollectionJobFilesPreparationErrorEventPayload 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 MeasurementCollectionJobFilesPreparationErrorEvent event(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobFilesPreparationErrorEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobFilesPreparationErrorEvent measurementCollectionJobFilesPreparationErrorEvent = (MeasurementCollectionJobFilesPreparationErrorEvent) o; + return Objects.equals(this.event, measurementCollectionJobFilesPreparationErrorEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobFilesPreparationErrorEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobFilesPreparationErrorEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobFilesPreparationErrorEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobFilesPreparationErrorEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobFilesPreparationErrorEvent.domain) && + Objects.equals(this.title, measurementCollectionJobFilesPreparationErrorEvent.title) && + Objects.equals(this.description, measurementCollectionJobFilesPreparationErrorEvent.description) && + Objects.equals(this.priority, measurementCollectionJobFilesPreparationErrorEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobFilesPreparationErrorEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesPreparationErrorEvent {\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/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java new file mode 100644 index 0000000..8e47f9f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "MeasurementCollectionJobFilesPreparationErrorEventPayload", description = "The event data structure") +@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 MeasurementCollectionJobFilesPreparationErrorEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJobFilesPreparationErrorEventPayload = (MeasurementCollectionJobFilesPreparationErrorEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesPreparationErrorEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesPreparationErrorEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java new file mode 100644 index 0000000..2653288 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesReadyEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "MeasurementCollectionJobFilesReadyEvent", description = "The notification data structure") +@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 MeasurementCollectionJobFilesReadyEvent { + + private MeasurementCollectionJobFilesReadyEventPayload 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 MeasurementCollectionJobFilesReadyEvent event(MeasurementCollectionJobFilesReadyEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobFilesReadyEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobFilesReadyEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobFilesReadyEvent measurementCollectionJobFilesReadyEvent = (MeasurementCollectionJobFilesReadyEvent) o; + return Objects.equals(this.event, measurementCollectionJobFilesReadyEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobFilesReadyEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobFilesReadyEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobFilesReadyEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobFilesReadyEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobFilesReadyEvent.domain) && + Objects.equals(this.title, measurementCollectionJobFilesReadyEvent.title) && + Objects.equals(this.description, measurementCollectionJobFilesReadyEvent.description) && + Objects.equals(this.priority, measurementCollectionJobFilesReadyEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobFilesReadyEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesReadyEvent {\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/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java new file mode 100644 index 0000000..544420f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "MeasurementCollectionJobFilesReadyEventPayload", description = "The event data structure") +@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 MeasurementCollectionJobFilesReadyEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJobFilesReadyEventPayload = (MeasurementCollectionJobFilesReadyEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesReadyEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesReadyEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java new file mode 100644 index 0000000..c7a97f0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java @@ -0,0 +1,633 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href + */ + +@Schema(name = "MeasurementCollectionJob_Update", description = "Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href") +@JsonTypeName("MeasurementCollectionJob_Update") +@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 MeasurementCollectionJobUpdate { + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granularity; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ReportingPeriod reportingPeriod; + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MeasurementCollectionJobUpdate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobUpdate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJobUpdate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementCollectionJobUpdate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementCollectionJobUpdate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementCollectionJobUpdate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementCollectionJobUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementCollectionJobUpdate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJobUpdate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementCollectionJobUpdate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementCollectionJobUpdate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementCollectionJobUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementCollectionJobUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJobUpdate granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementCollectionJobUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementCollectionJobUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementCollectionJobUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementCollectionJobUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementCollectionJobUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementCollectionJobUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementCollectionJobUpdate reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJobUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementCollectionJobUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementCollectionJobUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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; + } + MeasurementCollectionJobUpdate measurementCollectionJobUpdate = (MeasurementCollectionJobUpdate) o; + return Objects.equals(this.consumingApplicationId, measurementCollectionJobUpdate.consumingApplicationId) && + Objects.equals(this.creationTime, measurementCollectionJobUpdate.creationTime) && + Objects.equals(this.jobId, measurementCollectionJobUpdate.jobId) && + Objects.equals(this.jobPriority, measurementCollectionJobUpdate.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementCollectionJobUpdate.lastModifiedTime) && + Objects.equals(this.outputFormat, measurementCollectionJobUpdate.outputFormat) && + Objects.equals(this.producingApplicationId, measurementCollectionJobUpdate.producingApplicationId) && + Objects.equals(this.adminState, measurementCollectionJobUpdate.adminState) && + Objects.equals(this.executionState, measurementCollectionJobUpdate.executionState) && + Objects.equals(this.fileTransferData, measurementCollectionJobUpdate.fileTransferData) && + Objects.equals(this.granularity, measurementCollectionJobUpdate.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementCollectionJobUpdate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobUpdate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobUpdate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobUpdate.performanceIndicatorSpecification) && + Objects.equals(this.reportingPeriod, measurementCollectionJobUpdate.reportingPeriod) && + Objects.equals(this.scheduleDefinition, measurementCollectionJobUpdate.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementCollectionJobUpdate.trackingRecord) && + Objects.equals(this.atBaseType, measurementCollectionJobUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobUpdate.atSchemaLocation) && + Objects.equals(this.atType, measurementCollectionJobUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobUpdate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java new file mode 100644 index 0000000..2a54a92 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -0,0 +1,630 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A PM measurement job is the administrative entity defined by a client application to perform a periodic activity related to PM data. The PM activities may be production of measurements, collection of measurements or PM objective monitoring (scheduled evaluation of thresholds). + */ + +@Schema(name = "MeasurementJob", description = "A PM measurement job is the administrative entity defined by a client application to perform a periodic activity related to PM data. The PM activities may be production of measurements, collection of measurements or PM objective monitoring (scheduled evaluation of thresholds).") +@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 MeasurementJob { + + private String id; + + private URI href; + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granularity; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MeasurementJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementJob(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementJob 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 MeasurementJob 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 MeasurementJob consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementJob jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementJob producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementJob granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementJob 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 MeasurementJob 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 MeasurementJob 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; + } + MeasurementJob measurementJob = (MeasurementJob) o; + return Objects.equals(this.id, measurementJob.id) && + Objects.equals(this.href, measurementJob.href) && + Objects.equals(this.consumingApplicationId, measurementJob.consumingApplicationId) && + Objects.equals(this.creationTime, measurementJob.creationTime) && + Objects.equals(this.jobId, measurementJob.jobId) && + Objects.equals(this.jobPriority, measurementJob.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementJob.lastModifiedTime) && + Objects.equals(this.producingApplicationId, measurementJob.producingApplicationId) && + Objects.equals(this.adminState, measurementJob.adminState) && + Objects.equals(this.executionState, measurementJob.executionState) && + Objects.equals(this.fileTransferData, measurementJob.fileTransferData) && + Objects.equals(this.granularity, measurementJob.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementJob.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementJob.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementJob.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementJob.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, measurementJob.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementJob.trackingRecord) && + Objects.equals(this.atBaseType, measurementJob.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementJob.atSchemaLocation) && + Objects.equals(this.atType, measurementJob.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementJob {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java new file mode 100644 index 0000000..d9bccf9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -0,0 +1,181 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Specifies a monitored object class (a string) in conjunction with a filter object. + */ + +@Schema(name = "MonitoredClassCriteria", description = "Specifies a monitored object class (a string) in conjunction with a filter object.") +@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 MonitoredClassCriteria { + + private String monitoredObjectClass; + + private String objectInstanceFilter; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MonitoredClassCriteria monitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + return this; + } + + /** + * A monitored object class for specifying the set of instances that are referenced by a PM query. + * @return monitoredObjectClass + */ + + @Schema(name = "monitoredObjectClass", description = "A monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredObjectClass") + public String getMonitoredObjectClass() { + return monitoredObjectClass; + } + + public void setMonitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + } + + public MonitoredClassCriteria objectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + return this; + } + + /** + * A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query. + * @return objectInstanceFilter + */ + + @Schema(name = "objectInstanceFilter", description = "A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("objectInstanceFilter") + public String getObjectInstanceFilter() { + return objectInstanceFilter; + } + + public void setObjectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + } + + public MonitoredClassCriteria 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 MonitoredClassCriteria 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 MonitoredClassCriteria 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; + } + MonitoredClassCriteria monitoredClassCriteria = (MonitoredClassCriteria) o; + return Objects.equals(this.monitoredObjectClass, monitoredClassCriteria.monitoredObjectClass) && + Objects.equals(this.objectInstanceFilter, monitoredClassCriteria.objectInstanceFilter) && + Objects.equals(this.atBaseType, monitoredClassCriteria.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredClassCriteria.atSchemaLocation) && + Objects.equals(this.atType, monitoredClassCriteria.atType); + } + + @Override + public int hashCode() { + return Objects.hash(monitoredObjectClass, objectInstanceFilter, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredClassCriteria {\n"); + sb.append(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); + sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).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/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java new file mode 100644 index 0000000..4a01776 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -0,0 +1,133 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * List of monitored instances + */ + +@Schema(name = "MonitoredInstancesCriteria", description = "List of monitored instances") +@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 MonitoredInstancesCriteria { + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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; + } + MonitoredInstancesCriteria monitoredInstancesCriteria = (MonitoredInstancesCriteria) o; + return Objects.equals(this.atBaseType, monitoredInstancesCriteria.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredInstancesCriteria.atSchemaLocation) && + Objects.equals(this.atType, monitoredInstancesCriteria.atType); + } + + @Override + public int hashCode() { + return Objects.hash(atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredInstancesCriteria {\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/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java new file mode 100644 index 0000000..b6d7598 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -0,0 +1,193 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrence; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonthlyScheduleDayOfWeekDefinition + */ + +@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 MonthlyScheduleDayOfWeekDefinition { + + private String recurringDaySequence; + + @Valid + private List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MonthlyScheduleDayOfWeekDefinition recurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + return this; + } + + /** + * Get recurringDaySequence + * @return recurringDaySequence + */ + + @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringDaySequence") + public String getRecurringDaySequence() { + return recurringDaySequence; + } + + public void setRecurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + } + + public MonthlyScheduleDayOfWeekDefinition dayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + return this; + } + + public MonthlyScheduleDayOfWeekDefinition addDayOfMonthRecurrenceItem(DayOfMonthRecurrence dayOfMonthRecurrenceItem) { + if (this.dayOfMonthRecurrence == null) { + this.dayOfMonthRecurrence = new ArrayList<>(); + } + this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); + return this; + } + + /** + * Get dayOfMonthRecurrence + * @return dayOfMonthRecurrence + */ + @Valid + @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dayOfMonthRecurrence") + public List<@Valid DayOfMonthRecurrence> getDayOfMonthRecurrence() { + return dayOfMonthRecurrence; + } + + public void setDayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + } + + public MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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; + } + MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition = (MonthlyScheduleDayOfWeekDefinition) o; + return Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinition.recurringDaySequence) && + Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinition.dayOfMonthRecurrence) && + Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinition.atBaseType) && + Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinition.atSchemaLocation) && + Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinition.atType); + } + + @Override + public int hashCode() { + return Objects.hash(recurringDaySequence, dayOfMonthRecurrence, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyScheduleDayOfWeekDefinition {\n"); + sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); + sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).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/pm628/model/OnDemandCollection.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java new file mode 100644 index 0000000..8f5d990 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java @@ -0,0 +1,678 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * OnDemandCollection + */ + +@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 OnDemandCollection { + + private String id; + + private URI href; + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private TimePeriod collectionPeriod; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granulatiry; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public OnDemandCollection() { + super(); + } + + /** + * Constructor with only required parameters + */ + public OnDemandCollection(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollection 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 OnDemandCollection 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 OnDemandCollection consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * Get consumingApplicationId + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public OnDemandCollection creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public OnDemandCollection jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public OnDemandCollection jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public OnDemandCollection lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public OnDemandCollection outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public OnDemandCollection producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * Get producingApplicationId + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public OnDemandCollection adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public OnDemandCollection collectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + return this; + } + + /** + * Get collectionPeriod + * @return collectionPeriod + */ + @Valid + @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionPeriod") + public TimePeriod getCollectionPeriod() { + return collectionPeriod; + } + + public void setCollectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + } + + public OnDemandCollection executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public OnDemandCollection fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public OnDemandCollection addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollection granulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + return this; + } + + /** + * Get granulatiry + * @return granulatiry + */ + @Valid + @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granulatiry") + public Granularity getGranulatiry() { + return granulatiry; + } + + public void setGranulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + } + + public OnDemandCollection monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public OnDemandCollection monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public OnDemandCollection performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public OnDemandCollection addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public OnDemandCollection performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public OnDemandCollection addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public OnDemandCollection scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public OnDemandCollection trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public OnDemandCollection addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public OnDemandCollection 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 OnDemandCollection 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 OnDemandCollection 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; + } + OnDemandCollection onDemandCollection = (OnDemandCollection) o; + return Objects.equals(this.id, onDemandCollection.id) && + Objects.equals(this.href, onDemandCollection.href) && + Objects.equals(this.consumingApplicationId, onDemandCollection.consumingApplicationId) && + Objects.equals(this.creationTime, onDemandCollection.creationTime) && + Objects.equals(this.jobId, onDemandCollection.jobId) && + Objects.equals(this.jobPriority, onDemandCollection.jobPriority) && + Objects.equals(this.lastModifiedTime, onDemandCollection.lastModifiedTime) && + Objects.equals(this.outputFormat, onDemandCollection.outputFormat) && + Objects.equals(this.producingApplicationId, onDemandCollection.producingApplicationId) && + Objects.equals(this.adminState, onDemandCollection.adminState) && + Objects.equals(this.collectionPeriod, onDemandCollection.collectionPeriod) && + Objects.equals(this.executionState, onDemandCollection.executionState) && + Objects.equals(this.fileTransferData, onDemandCollection.fileTransferData) && + Objects.equals(this.granulatiry, onDemandCollection.granulatiry) && + Objects.equals(this.monitoredClassCriteria, onDemandCollection.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, onDemandCollection.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollection.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, onDemandCollection.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, onDemandCollection.scheduleDefinition) && + Objects.equals(this.trackingRecord, onDemandCollection.trackingRecord) && + Objects.equals(this.atBaseType, onDemandCollection.atBaseType) && + Objects.equals(this.atSchemaLocation, onDemandCollection.atSchemaLocation) && + Objects.equals(this.atType, onDemandCollection.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollection {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java new file mode 100644 index 0000000..feef6fa --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java @@ -0,0 +1,329 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.OnDemandCollectionAttributeValueChangeEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "OnDemandCollectionAttributeValueChangeEvent", description = "The notification data structure") +@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 OnDemandCollectionAttributeValueChangeEvent { + + 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; + + private String fieldPath; + + private OnDemandCollectionAttributeValueChangeEventPayload event; + + public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOcurred") + public OffsetDateTime getTimeOcurred() { + return timeOcurred; + } + + public void setTimeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + } + + public OnDemandCollectionAttributeValueChangeEvent fieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return this; + } + + /** + * The path identifying the object field concerned by this notification. + * @return fieldPath + */ + + @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fieldPath") + public String getFieldPath() { + return fieldPath; + } + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + + public OnDemandCollectionAttributeValueChangeEvent event(OnDemandCollectionAttributeValueChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionAttributeValueChangeEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionAttributeValueChangeEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionAttributeValueChangeEvent onDemandCollectionAttributeValueChangeEvent = (OnDemandCollectionAttributeValueChangeEvent) o; + return Objects.equals(this.eventId, onDemandCollectionAttributeValueChangeEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionAttributeValueChangeEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionAttributeValueChangeEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionAttributeValueChangeEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionAttributeValueChangeEvent.domain) && + Objects.equals(this.title, onDemandCollectionAttributeValueChangeEvent.title) && + Objects.equals(this.description, onDemandCollectionAttributeValueChangeEvent.description) && + Objects.equals(this.priority, onDemandCollectionAttributeValueChangeEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionAttributeValueChangeEvent.timeOcurred) && + Objects.equals(this.fieldPath, onDemandCollectionAttributeValueChangeEvent.fieldPath) && + Objects.equals(this.event, onDemandCollectionAttributeValueChangeEvent.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 OnDemandCollectionAttributeValueChangeEvent {\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(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/OnDemandCollectionAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java new file mode 100644 index 0000000..d658b59 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.OnDemandCollection; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "OnDemandCollectionAttributeValueChangeEventPayload", description = "The event data structure") +@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 OnDemandCollectionAttributeValueChangeEventPayload { + + private OnDemandCollection onDemandCollection; + + public OnDemandCollectionAttributeValueChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } + + /** + * Get onDemandCollection + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } + + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionAttributeValueChangeEventPayload onDemandCollectionAttributeValueChangeEventPayload = (OnDemandCollectionAttributeValueChangeEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionAttributeValueChangeEventPayload.onDemandCollection); + } + + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionAttributeValueChangeEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java new file mode 100644 index 0000000..fab926a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java @@ -0,0 +1,633 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Skipped properties: id,href + */ + +@Schema(name = "OnDemandCollection_Create", description = " Skipped properties: id,href") +@JsonTypeName("OnDemandCollection_Create") +@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 OnDemandCollectionCreate { + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private TimePeriod collectionPeriod; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granulatiry; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public OnDemandCollectionCreate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public OnDemandCollectionCreate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollectionCreate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * Get consumingApplicationId + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public OnDemandCollectionCreate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public OnDemandCollectionCreate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public OnDemandCollectionCreate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public OnDemandCollectionCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public OnDemandCollectionCreate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public OnDemandCollectionCreate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * Get producingApplicationId + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public OnDemandCollectionCreate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public OnDemandCollectionCreate collectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + return this; + } + + /** + * Get collectionPeriod + * @return collectionPeriod + */ + @Valid + @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionPeriod") + public TimePeriod getCollectionPeriod() { + return collectionPeriod; + } + + public void setCollectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + } + + public OnDemandCollectionCreate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public OnDemandCollectionCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public OnDemandCollectionCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollectionCreate granulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + return this; + } + + /** + * Get granulatiry + * @return granulatiry + */ + @Valid + @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granulatiry") + public Granularity getGranulatiry() { + return granulatiry; + } + + public void setGranulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + } + + public OnDemandCollectionCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public OnDemandCollectionCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public OnDemandCollectionCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public OnDemandCollectionCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public OnDemandCollectionCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public OnDemandCollectionCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public OnDemandCollectionCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public OnDemandCollectionCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public OnDemandCollectionCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public OnDemandCollectionCreate 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 OnDemandCollectionCreate 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 OnDemandCollectionCreate 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; + } + OnDemandCollectionCreate onDemandCollectionCreate = (OnDemandCollectionCreate) o; + return Objects.equals(this.consumingApplicationId, onDemandCollectionCreate.consumingApplicationId) && + Objects.equals(this.creationTime, onDemandCollectionCreate.creationTime) && + Objects.equals(this.jobId, onDemandCollectionCreate.jobId) && + Objects.equals(this.jobPriority, onDemandCollectionCreate.jobPriority) && + Objects.equals(this.lastModifiedTime, onDemandCollectionCreate.lastModifiedTime) && + Objects.equals(this.outputFormat, onDemandCollectionCreate.outputFormat) && + Objects.equals(this.producingApplicationId, onDemandCollectionCreate.producingApplicationId) && + Objects.equals(this.adminState, onDemandCollectionCreate.adminState) && + Objects.equals(this.collectionPeriod, onDemandCollectionCreate.collectionPeriod) && + Objects.equals(this.executionState, onDemandCollectionCreate.executionState) && + Objects.equals(this.fileTransferData, onDemandCollectionCreate.fileTransferData) && + Objects.equals(this.granulatiry, onDemandCollectionCreate.granulatiry) && + Objects.equals(this.monitoredClassCriteria, onDemandCollectionCreate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionCreate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionCreate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionCreate.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, onDemandCollectionCreate.scheduleDefinition) && + Objects.equals(this.trackingRecord, onDemandCollectionCreate.trackingRecord) && + Objects.equals(this.atBaseType, onDemandCollectionCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, onDemandCollectionCreate.atSchemaLocation) && + Objects.equals(this.atType, onDemandCollectionCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionCreate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/OnDemandCollectionCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java new file mode 100644 index 0000000..e1390ac --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.OnDemandCollectionCreateEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "OnDemandCollectionCreateEvent", description = "The notification data structure") +@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 OnDemandCollectionCreateEvent { + + private OnDemandCollectionCreateEventPayload 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 OnDemandCollectionCreateEvent event(OnDemandCollectionCreateEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionCreateEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionCreateEventPayload event) { + this.event = event; + } + + public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionCreateEvent onDemandCollectionCreateEvent = (OnDemandCollectionCreateEvent) o; + return Objects.equals(this.event, onDemandCollectionCreateEvent.event) && + Objects.equals(this.eventId, onDemandCollectionCreateEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionCreateEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionCreateEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionCreateEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionCreateEvent.domain) && + Objects.equals(this.title, onDemandCollectionCreateEvent.title) && + Objects.equals(this.description, onDemandCollectionCreateEvent.description) && + Objects.equals(this.priority, onDemandCollectionCreateEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionCreateEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionCreateEvent {\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/OnDemandCollectionCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java new file mode 100644 index 0000000..50bb359 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.OnDemandCollection; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "OnDemandCollectionCreateEventPayload", description = "The event data structure") +@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 OnDemandCollectionCreateEventPayload { + + private OnDemandCollection onDemandCollection; + + public OnDemandCollectionCreateEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } + + /** + * Get onDemandCollection + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } + + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionCreateEventPayload onDemandCollectionCreateEventPayload = (OnDemandCollectionCreateEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionCreateEventPayload.onDemandCollection); + } + + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionCreateEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java new file mode 100644 index 0000000..c52863e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.OnDemandCollectionDeleteEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "OnDemandCollectionDeleteEvent", description = "The notification data structure") +@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 OnDemandCollectionDeleteEvent { + + private OnDemandCollectionDeleteEventPayload 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 OnDemandCollectionDeleteEvent event(OnDemandCollectionDeleteEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionDeleteEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionDeleteEventPayload event) { + this.event = event; + } + + public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionDeleteEvent onDemandCollectionDeleteEvent = (OnDemandCollectionDeleteEvent) o; + return Objects.equals(this.event, onDemandCollectionDeleteEvent.event) && + Objects.equals(this.eventId, onDemandCollectionDeleteEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionDeleteEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionDeleteEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionDeleteEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionDeleteEvent.domain) && + Objects.equals(this.title, onDemandCollectionDeleteEvent.title) && + Objects.equals(this.description, onDemandCollectionDeleteEvent.description) && + Objects.equals(this.priority, onDemandCollectionDeleteEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionDeleteEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionDeleteEvent {\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/OnDemandCollectionDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java new file mode 100644 index 0000000..3296f8d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.OnDemandCollection; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "OnDemandCollectionDeleteEventPayload", description = "The event data structure") +@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 OnDemandCollectionDeleteEventPayload { + + private OnDemandCollection onDemandCollection; + + public OnDemandCollectionDeleteEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } + + /** + * Get onDemandCollection + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } + + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionDeleteEventPayload onDemandCollectionDeleteEventPayload = (OnDemandCollectionDeleteEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionDeleteEventPayload.onDemandCollection); + } + + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionDeleteEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java new file mode 100644 index 0000000..548a3b9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.OnDemandCollectionExecutionStateChangeEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "OnDemandCollectionExecutionStateChangeEvent", description = "The notification data structure") +@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 OnDemandCollectionExecutionStateChangeEvent { + + private OnDemandCollectionExecutionStateChangeEventPayload 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 OnDemandCollectionExecutionStateChangeEvent event(OnDemandCollectionExecutionStateChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionExecutionStateChangeEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionExecutionStateChangeEventPayload event) { + this.event = event; + } + + public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionExecutionStateChangeEvent onDemandCollectionExecutionStateChangeEvent = (OnDemandCollectionExecutionStateChangeEvent) o; + return Objects.equals(this.event, onDemandCollectionExecutionStateChangeEvent.event) && + Objects.equals(this.eventId, onDemandCollectionExecutionStateChangeEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionExecutionStateChangeEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionExecutionStateChangeEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionExecutionStateChangeEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionExecutionStateChangeEvent.domain) && + Objects.equals(this.title, onDemandCollectionExecutionStateChangeEvent.title) && + Objects.equals(this.description, onDemandCollectionExecutionStateChangeEvent.description) && + Objects.equals(this.priority, onDemandCollectionExecutionStateChangeEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionExecutionStateChangeEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionExecutionStateChangeEvent {\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/OnDemandCollectionExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java new file mode 100644 index 0000000..45a070a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.OnDemandCollection; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "OnDemandCollectionExecutionStateChangeEventPayload", description = "The event data structure") +@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 OnDemandCollectionExecutionStateChangeEventPayload { + + private OnDemandCollection onDemandCollection; + + public OnDemandCollectionExecutionStateChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } + + /** + * Get onDemandCollection + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } + + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionExecutionStateChangeEventPayload onDemandCollectionExecutionStateChangeEventPayload = (OnDemandCollectionExecutionStateChangeEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionExecutionStateChangeEventPayload.onDemandCollection); + } + + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionExecutionStateChangeEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java new file mode 100644 index 0000000..4659b19 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.OnDemandCollectionFilesPreparationErrorEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "OnDemandCollectionFilesPreparationErrorEvent", description = "The notification data structure") +@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 OnDemandCollectionFilesPreparationErrorEvent { + + private OnDemandCollectionFilesPreparationErrorEventPayload 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 OnDemandCollectionFilesPreparationErrorEvent event(OnDemandCollectionFilesPreparationErrorEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionFilesPreparationErrorEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionFilesPreparationErrorEventPayload event) { + this.event = event; + } + + public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionFilesPreparationErrorEvent onDemandCollectionFilesPreparationErrorEvent = (OnDemandCollectionFilesPreparationErrorEvent) o; + return Objects.equals(this.event, onDemandCollectionFilesPreparationErrorEvent.event) && + Objects.equals(this.eventId, onDemandCollectionFilesPreparationErrorEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionFilesPreparationErrorEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionFilesPreparationErrorEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionFilesPreparationErrorEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionFilesPreparationErrorEvent.domain) && + Objects.equals(this.title, onDemandCollectionFilesPreparationErrorEvent.title) && + Objects.equals(this.description, onDemandCollectionFilesPreparationErrorEvent.description) && + Objects.equals(this.priority, onDemandCollectionFilesPreparationErrorEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionFilesPreparationErrorEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesPreparationErrorEvent {\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/OnDemandCollectionFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java new file mode 100644 index 0000000..bde2adb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.OnDemandCollection; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "OnDemandCollectionFilesPreparationErrorEventPayload", description = "The event data structure") +@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 OnDemandCollectionFilesPreparationErrorEventPayload { + + private OnDemandCollection onDemandCollection; + + public OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } + + /** + * Get onDemandCollection + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } + + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollectionFilesPreparationErrorEventPayload = (OnDemandCollectionFilesPreparationErrorEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionFilesPreparationErrorEventPayload.onDemandCollection); + } + + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesPreparationErrorEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java new file mode 100644 index 0000000..a20234e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java @@ -0,0 +1,305 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.etsi.osl.tmf.pm628.model.OnDemandCollectionFilesReadyEventPayload; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The notification data structure + */ + +@Schema(name = "OnDemandCollectionFilesReadyEvent", description = "The notification data structure") +@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 OnDemandCollectionFilesReadyEvent { + + private OnDemandCollectionFilesReadyEventPayload 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 OnDemandCollectionFilesReadyEvent event(OnDemandCollectionFilesReadyEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionFilesReadyEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionFilesReadyEventPayload event) { + this.event = event; + } + + public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionFilesReadyEvent onDemandCollectionFilesReadyEvent = (OnDemandCollectionFilesReadyEvent) o; + return Objects.equals(this.event, onDemandCollectionFilesReadyEvent.event) && + Objects.equals(this.eventId, onDemandCollectionFilesReadyEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionFilesReadyEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionFilesReadyEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionFilesReadyEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionFilesReadyEvent.domain) && + Objects.equals(this.title, onDemandCollectionFilesReadyEvent.title) && + Objects.equals(this.description, onDemandCollectionFilesReadyEvent.description) && + Objects.equals(this.priority, onDemandCollectionFilesReadyEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionFilesReadyEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesReadyEvent {\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/OnDemandCollectionFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java new file mode 100644 index 0000000..d93b096 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.etsi.osl.tmf.pm628.model.OnDemandCollection; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The event data structure + */ + +@Schema(name = "OnDemandCollectionFilesReadyEventPayload", description = "The event data structure") +@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 OnDemandCollectionFilesReadyEventPayload { + + private OnDemandCollection onDemandCollection; + + public OnDemandCollectionFilesReadyEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } + + /** + * Get onDemandCollection + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } + + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionFilesReadyEventPayload onDemandCollectionFilesReadyEventPayload = (OnDemandCollectionFilesReadyEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionFilesReadyEventPayload.onDemandCollection); + } + + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesReadyEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java new file mode 100644 index 0000000..c664403 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java @@ -0,0 +1,633 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Skipped properties: id,href + */ + +@Schema(name = "OnDemandCollection_Update", description = " Skipped properties: id,href") +@JsonTypeName("OnDemandCollection_Update") +@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 OnDemandCollectionUpdate { + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private TimePeriod collectionPeriod; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granulatiry; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public OnDemandCollectionUpdate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public OnDemandCollectionUpdate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollectionUpdate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * Get consumingApplicationId + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public OnDemandCollectionUpdate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public OnDemandCollectionUpdate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public OnDemandCollectionUpdate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public OnDemandCollectionUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public OnDemandCollectionUpdate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public OnDemandCollectionUpdate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * Get producingApplicationId + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public OnDemandCollectionUpdate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public OnDemandCollectionUpdate collectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + return this; + } + + /** + * Get collectionPeriod + * @return collectionPeriod + */ + @Valid + @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionPeriod") + public TimePeriod getCollectionPeriod() { + return collectionPeriod; + } + + public void setCollectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + } + + public OnDemandCollectionUpdate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public OnDemandCollectionUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public OnDemandCollectionUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollectionUpdate granulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + return this; + } + + /** + * Get granulatiry + * @return granulatiry + */ + @Valid + @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granulatiry") + public Granularity getGranulatiry() { + return granulatiry; + } + + public void setGranulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + } + + public OnDemandCollectionUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public OnDemandCollectionUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public OnDemandCollectionUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public OnDemandCollectionUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public OnDemandCollectionUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public OnDemandCollectionUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public OnDemandCollectionUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public OnDemandCollectionUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public OnDemandCollectionUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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; + } + OnDemandCollectionUpdate onDemandCollectionUpdate = (OnDemandCollectionUpdate) o; + return Objects.equals(this.consumingApplicationId, onDemandCollectionUpdate.consumingApplicationId) && + Objects.equals(this.creationTime, onDemandCollectionUpdate.creationTime) && + Objects.equals(this.jobId, onDemandCollectionUpdate.jobId) && + Objects.equals(this.jobPriority, onDemandCollectionUpdate.jobPriority) && + Objects.equals(this.lastModifiedTime, onDemandCollectionUpdate.lastModifiedTime) && + Objects.equals(this.outputFormat, onDemandCollectionUpdate.outputFormat) && + Objects.equals(this.producingApplicationId, onDemandCollectionUpdate.producingApplicationId) && + Objects.equals(this.adminState, onDemandCollectionUpdate.adminState) && + Objects.equals(this.collectionPeriod, onDemandCollectionUpdate.collectionPeriod) && + Objects.equals(this.executionState, onDemandCollectionUpdate.executionState) && + Objects.equals(this.fileTransferData, onDemandCollectionUpdate.fileTransferData) && + Objects.equals(this.granulatiry, onDemandCollectionUpdate.granulatiry) && + Objects.equals(this.monitoredClassCriteria, onDemandCollectionUpdate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionUpdate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionUpdate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionUpdate.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, onDemandCollectionUpdate.scheduleDefinition) && + Objects.equals(this.trackingRecord, onDemandCollectionUpdate.trackingRecord) && + Objects.equals(this.atBaseType, onDemandCollectionUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, onDemandCollectionUpdate.atSchemaLocation) && + Objects.equals(this.atType, onDemandCollectionUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionUpdate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java new file mode 100644 index 0000000..859429b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java @@ -0,0 +1,62 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Enumeration of supported packing/packaging. All extensions allowed. + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public enum PackingEnumType { + + NO_PACKING("NO_PACKING"), + + GZIP("GZIP"), + + TAR("TAR"), + + VENDOR_EXT("VENDOR_EXT"), + + MINOR_EXT("MINOR_EXT"); + + private String value; + + PackingEnumType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PackingEnumType fromValue(String value) { + for (PackingEnumType b : PackingEnumType.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/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java new file mode 100644 index 0000000..d37df6b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -0,0 +1,86 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import org.etsi.osl.tmf.pm628.model.PackingEnumType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Specify if the output file(s) are to be packed. + */ + +@Schema(name = "PackingType", description = "Specify if the output file(s) are to be packed.") +@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 PackingType { + + private PackingEnumType packingEnumType; + + public PackingType packingEnumType(PackingEnumType packingEnumType) { + this.packingEnumType = packingEnumType; + return this; + } + + /** + * Get packingEnumType + * @return packingEnumType + */ + @Valid + @Schema(name = "packingEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingEnumType") + public PackingEnumType getPackingEnumType() { + return packingEnumType; + } + + public void setPackingEnumType(PackingEnumType packingEnumType) { + this.packingEnumType = packingEnumType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PackingType packingType = (PackingType) o; + return Objects.equals(this.packingEnumType, packingType.packingEnumType); + } + + @Override + public int hashCode() { + return Objects.hash(packingEnumType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackingType {\n"); + sb.append(" packingEnumType: ").append(toIndentedString(packingEnumType)).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/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java new file mode 100644 index 0000000..902193e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -0,0 +1,253 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorGroupSpecification + */ + +@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 PerformanceIndicatorGroupSpecification { + + private String id; + + private URI href; + + private String name; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorGroupSpecification() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecification(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.name = name; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification name(String name) { + this.name = name; + return this; + } + + /** + * Name of Group specification + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecification performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecification addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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; + } + PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecification = (PerformanceIndicatorGroupSpecification) o; + return Objects.equals(this.id, performanceIndicatorGroupSpecification.id) && + Objects.equals(this.href, performanceIndicatorGroupSpecification.href) && + Objects.equals(this.name, performanceIndicatorGroupSpecification.name) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecification.performanceIndicatorSpecification) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecification.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecification.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorGroupSpecification.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecification {\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(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java new file mode 100644 index 0000000..d8819be --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java @@ -0,0 +1,208 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Skipped properties: id,href + */ + +@Schema(name = "PerformanceIndicatorGroupSpecification_Create", description = " Skipped properties: id,href") +@JsonTypeName("PerformanceIndicatorGroupSpecification_Create") +@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 PerformanceIndicatorGroupSpecificationCreate { + + private String name; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorGroupSpecificationCreate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationCreate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.name = name; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationCreate name(String name) { + this.name = name; + return this; + } + + /** + * Name of Group specification + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecificationCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecificationCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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; + } + PerformanceIndicatorGroupSpecificationCreate performanceIndicatorGroupSpecificationCreate = (PerformanceIndicatorGroupSpecificationCreate) o; + return Objects.equals(this.name, performanceIndicatorGroupSpecificationCreate.name) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationCreate.performanceIndicatorSpecification) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationCreate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorGroupSpecificationCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationCreate {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java new file mode 100644 index 0000000..37338bb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java @@ -0,0 +1,208 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Skipped properties: id,href + */ + +@Schema(name = "PerformanceIndicatorGroupSpecification_Update", description = " Skipped properties: id,href") +@JsonTypeName("PerformanceIndicatorGroupSpecification_Update") +@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 PerformanceIndicatorGroupSpecificationUpdate { + + private String name; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorGroupSpecificationUpdate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationUpdate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.name = name; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationUpdate name(String name) { + this.name = name; + return this; + } + + /** + * Name of Group specification + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecificationUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @NotNull @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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; + } + PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorGroupSpecificationUpdate = (PerformanceIndicatorGroupSpecificationUpdate) o; + return Objects.equals(this.name, performanceIndicatorGroupSpecificationUpdate.name) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationUpdate.performanceIndicatorSpecification) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationUpdate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorGroupSpecificationUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationUpdate {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java new file mode 100644 index 0000000..e6d9de0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -0,0 +1,290 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Type of relationship such as aggregation, migration, substitution, dependency, exclusivity + */ + +@Schema(name = "PerformanceIndicatorSpecRelationship", description = "Type of relationship such as aggregation, migration, substitution, dependency, exclusivity") +@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 PerformanceIndicatorSpecRelationship { + + private String id; + + private String href; + + private String name; + + private String relationshipType; + + private String role; + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecRelationship(String relationshipType, TimePeriod validFor) { + this.relationshipType = relationshipType; + this.validFor = validFor; + } + + public PerformanceIndicatorSpecRelationship id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the target specification + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecRelationship href(String href) { + this.href = href; + return this; + } + + /** + * Hyperlink reference to the target specification + * @return href + */ + + @Schema(name = "href", description = "Hyperlink reference to the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PerformanceIndicatorSpecRelationship name(String name) { + this.name = name; + return this; + } + + /** + * Name of the targetcharacteristic + * @return name + */ + + @Schema(name = "name", description = "Name of the targetcharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecRelationship relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * Get relationshipType + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("relationshipType") + public String getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(String relationshipType) { + this.relationshipType = relationshipType; + } + + public PerformanceIndicatorSpecRelationship role(String role) { + this.role = role; + return this; + } + + /** + * The association role for this service specification + * @return role + */ + + @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public PerformanceIndicatorSpecRelationship validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @NotNull @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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; + } + PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationship = (PerformanceIndicatorSpecRelationship) o; + return Objects.equals(this.id, performanceIndicatorSpecRelationship.id) && + Objects.equals(this.href, performanceIndicatorSpecRelationship.href) && + Objects.equals(this.name, performanceIndicatorSpecRelationship.name) && + Objects.equals(this.relationshipType, performanceIndicatorSpecRelationship.relationshipType) && + Objects.equals(this.role, performanceIndicatorSpecRelationship.role) && + Objects.equals(this.validFor, performanceIndicatorSpecRelationship.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationship.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecRelationship.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, name, relationshipType, role, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java new file mode 100644 index 0000000..5f085c3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -0,0 +1,462 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. + */ + +@Schema(name = "PerformanceIndicatorSpecification", description = "Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units.") +@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 PerformanceIndicatorSpecification { + + private String id; + + private URI href; + + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecification id(String id) { + this.id = id; + return this; + } + + /** + * A unique identifier for the PerformanceIndicatorSpecification. + * @return id + */ + + @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecification derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecification description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecification indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecification indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecification name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecification perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecification collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecification indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecification performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecification addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + public PerformanceIndicatorSpecification validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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; + } + PerformanceIndicatorSpecification performanceIndicatorSpecification = (PerformanceIndicatorSpecification) o; + return Objects.equals(this.id, performanceIndicatorSpecification.id) && + Objects.equals(this.href, performanceIndicatorSpecification.href) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecification.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecification.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecification.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecification.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecification.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecification.name) && + Objects.equals(this.perspective, performanceIndicatorSpecification.perspective) && + Objects.equals(this.collectionType, performanceIndicatorSpecification.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecification.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecification.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecification.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecification.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecification.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecification.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecification {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java new file mode 100644 index 0000000..a07f407 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java @@ -0,0 +1,416 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href + */ + +@Schema(name = "PerformanceIndicatorSpecification_Create", description = "Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href") +@JsonTypeName("PerformanceIndicatorSpecification_Create") +@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 PerformanceIndicatorSpecificationCreate { + + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecificationCreate derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationCreate derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationCreate description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationCreate indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationCreate indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationCreate name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationCreate perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationCreate collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationCreate indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationCreate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationCreate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + public PerformanceIndicatorSpecificationCreate validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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; + } + PerformanceIndicatorSpecificationCreate performanceIndicatorSpecificationCreate = (PerformanceIndicatorSpecificationCreate) o; + return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationCreate.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationCreate.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecificationCreate.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationCreate.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationCreate.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecificationCreate.name) && + Objects.equals(this.perspective, performanceIndicatorSpecificationCreate.perspective) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationCreate.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationCreate.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationCreate.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecificationCreate.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationCreate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationCreate {\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java new file mode 100644 index 0000000..b82ba67 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -0,0 +1,264 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecification reference: A PerformanceIndicatorSpecification is a detailed description of a tangible or intangible object made available externally in the form of a PerformanceIndicatorSpecification to customers or other parties playing a party role. + */ + +@Schema(name = "PerformanceIndicatorSpecificationRef", description = "PerformanceIndicatorSpecification reference: A PerformanceIndicatorSpecification is a detailed description of a tangible or intangible object made available externally in the form of a PerformanceIndicatorSpecification to customers or other parties playing a party role.") +@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 PerformanceIndicatorSpecificationRef { + + private String id; + + private URI href; + + private String name; + + private String version; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + private String atReferredType; + + public PerformanceIndicatorSpecificationRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationRef(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator specification + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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; + } + PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationRef = (PerformanceIndicatorSpecificationRef) o; + return Objects.equals(this.id, performanceIndicatorSpecificationRef.id) && + Objects.equals(this.href, performanceIndicatorSpecificationRef.href) && + Objects.equals(this.name, performanceIndicatorSpecificationRef.name) && + Objects.equals(this.version, performanceIndicatorSpecificationRef.version) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRef.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRef.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationRef.atType) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRef.atReferredType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, name, version, atBaseType, atSchemaLocation, atType, atReferredType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRef {\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(" version: ").append(toIndentedString(version)).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/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java new file mode 100644 index 0000000..a2b509f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -0,0 +1,510 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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(name = "PerformanceIndicatorSpecificationRefOrValue", 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") +@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 PerformanceIndicatorSpecificationRefOrValue { + + private String id; + + private URI href; + + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private String version; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + private String atReferredType; + + public PerformanceIndicatorSpecificationRefOrValue id(String id) { + this.id = id; + return this; + } + + /** + * A unique identifier for the PerformanceIndicatorSpecification. + * @return id + */ + + @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationRefOrValue derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationRefOrValue description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationRefOrValue indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationRefOrValue indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationRefOrValue name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationRefOrValue perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationRefOrValue version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator specification + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public PerformanceIndicatorSpecificationRefOrValue collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationRefOrValue indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationRefOrValue addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + public PerformanceIndicatorSpecificationRefOrValue validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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; + } + PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationRefOrValue = (PerformanceIndicatorSpecificationRefOrValue) o; + return Objects.equals(this.id, performanceIndicatorSpecificationRefOrValue.id) && + Objects.equals(this.href, performanceIndicatorSpecificationRefOrValue.href) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationRefOrValue.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationRefOrValue.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecificationRefOrValue.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationRefOrValue.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationRefOrValue.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecificationRefOrValue.name) && + Objects.equals(this.perspective, performanceIndicatorSpecificationRefOrValue.perspective) && + Objects.equals(this.version, performanceIndicatorSpecificationRefOrValue.version) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationRefOrValue.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationRefOrValue.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationRefOrValue.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecificationRefOrValue.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefOrValue.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefOrValue.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationRefOrValue.atType) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefOrValue.atReferredType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, version, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType, atReferredType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRefOrValue {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java new file mode 100644 index 0000000..0dd94ca --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java @@ -0,0 +1,416 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href + */ + +@Schema(name = "PerformanceIndicatorSpecification_Update", description = "Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href") +@JsonTypeName("PerformanceIndicatorSpecification_Update") +@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 PerformanceIndicatorSpecificationUpdate { + + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecificationUpdate derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationUpdate derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationUpdate description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationUpdate indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationUpdate indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationUpdate name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationUpdate perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationUpdate collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationUpdate indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationUpdate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + public PerformanceIndicatorSpecificationUpdate validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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; + } + PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecificationUpdate = (PerformanceIndicatorSpecificationUpdate) o; + return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationUpdate.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationUpdate.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecificationUpdate.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationUpdate.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationUpdate.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecificationUpdate.name) && + Objects.equals(this.perspective, performanceIndicatorSpecificationUpdate.perspective) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationUpdate.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationUpdate.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationUpdate.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecificationUpdate.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationUpdate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationUpdate {\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java new file mode 100644 index 0000000..61b68c0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -0,0 +1,83 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ProtocolTransferData + */ + +@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 ProtocolTransferData { + + private String transportProtocol; + + public ProtocolTransferData transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } + + /** + * Get transportProtocol + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProtocolTransferData protocolTransferData = (ProtocolTransferData) o; + return Objects.equals(this.transportProtocol, protocolTransferData.transportProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(transportProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProtocolTransferData {\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).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/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java new file mode 100644 index 0000000..e7f0b43 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java @@ -0,0 +1,66 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Possible values for the reporting period + */ + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public enum ReportingPeriod { + + R_1MN("r_1mn"), + + R_5MN("r_5mn"), + + R_15MN("r_15mn"), + + R_30MN("r_30mn"), + + R_1H("r_1h"), + + R_24H("r_24h"), + + NA("na"); + + private String value; + + ReportingPeriod(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReportingPeriod fromValue(String value) { + for (ReportingPeriod b : ReportingPeriod.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/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java new file mode 100644 index 0000000..c98f8d1 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -0,0 +1,295 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrence; +import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinition; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * The schedule definition for running jobs. + */ + +@Schema(name = "ScheduleDefinition", description = "The schedule definition for running jobs.") +@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 ScheduleDefinition { + + private String recurringFrequency; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionEndTime; + + private String scheduleDefinitionHourRange; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionStartTime; + + private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; + + @Valid + private List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public ScheduleDefinition recurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + return this; + } + + /** + * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour + * @return recurringFrequency + */ + + @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringFrequency") + public String getRecurringFrequency() { + return recurringFrequency; + } + + public void setRecurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + } + + public ScheduleDefinition scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + return this; + } + + /** + * The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. + * @return scheduleDefinitionEndTime + */ + @Valid + @Schema(name = "scheduleDefinitionEndTime", description = "The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionEndTime") + public OffsetDateTime getScheduleDefinitionEndTime() { + return scheduleDefinitionEndTime; + } + + public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + } + + public ScheduleDefinition scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + return this; + } + + /** + * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. + * @return scheduleDefinitionHourRange + */ + + @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionHourRange") + public String getScheduleDefinitionHourRange() { + return scheduleDefinitionHourRange; + } + + public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + } + + public ScheduleDefinition scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + return this; + } + + /** + * The Start time of the Schedule Definition + * @return scheduleDefinitionStartTime + */ + @Valid + @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionStartTime") + public OffsetDateTime getScheduleDefinitionStartTime() { + return scheduleDefinitionStartTime; + } + + public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + } + + public ScheduleDefinition monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + return this; + } + + /** + * Get monthlyScheduleDayOfWeekDefinition + * @return monthlyScheduleDayOfWeekDefinition + */ + @Valid + @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") + public MonthlyScheduleDayOfWeekDefinition getMonthlyScheduleDayOfWeekDefinition() { + return monthlyScheduleDayOfWeekDefinition; + } + + public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + } + + public ScheduleDefinition weeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + return this; + } + + public ScheduleDefinition addWeeklyScheduledDefinitionItem(DayOfWeekRecurrence weeklyScheduledDefinitionItem) { + if (this.weeklyScheduledDefinition == null) { + this.weeklyScheduledDefinition = new ArrayList<>(); + } + this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); + return this; + } + + /** + * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. + * @return weeklyScheduledDefinition + */ + @Valid + @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("WeeklyScheduledDefinition") + public List<@Valid DayOfWeekRecurrence> getWeeklyScheduledDefinition() { + return weeklyScheduledDefinition; + } + + public void setWeeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + } + + public ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition 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; + } + ScheduleDefinition scheduleDefinition = (ScheduleDefinition) o; + return Objects.equals(this.recurringFrequency, scheduleDefinition.recurringFrequency) && + Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinition.scheduleDefinitionEndTime) && + Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinition.scheduleDefinitionHourRange) && + Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinition.scheduleDefinitionStartTime) && + Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinition.monthlyScheduleDayOfWeekDefinition) && + Objects.equals(this.weeklyScheduledDefinition, scheduleDefinition.weeklyScheduledDefinition) && + Objects.equals(this.atBaseType, scheduleDefinition.atBaseType) && + Objects.equals(this.atSchemaLocation, scheduleDefinition.atSchemaLocation) && + Objects.equals(this.atType, scheduleDefinition.atType); + } + + @Override + public int hashCode() { + return Objects.hash(recurringFrequency, scheduleDefinitionEndTime, scheduleDefinitionHourRange, scheduleDefinitionStartTime, monthlyScheduleDayOfWeekDefinition, weeklyScheduledDefinition, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleDefinition {\n"); + sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); + sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); + sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); + sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); + sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); + sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).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/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java new file mode 100644 index 0000000..4b1acea --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -0,0 +1,112 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A period of time, either as a deadline (endDateTime only) a startDateTime only, or both + */ + +@Schema(name = "TimePeriod", description = "A period of time, either as a deadline (endDateTime only) a startDateTime only, or both") +@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 TimePeriod { + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endDateTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startDateTime; + + public TimePeriod endDateTime(OffsetDateTime endDateTime) { + this.endDateTime = endDateTime; + return this; + } + + /** + * End of the time period, using IETC-RFC-3339 format + * @return endDateTime + */ + @Valid + @Schema(name = "endDateTime", example = "1985-04-12T23:20:50.520Z", description = "End of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("endDateTime") + public OffsetDateTime getEndDateTime() { + return endDateTime; + } + + public void setEndDateTime(OffsetDateTime endDateTime) { + this.endDateTime = endDateTime; + } + + public TimePeriod startDateTime(OffsetDateTime startDateTime) { + this.startDateTime = startDateTime; + return this; + } + + /** + * Start of the time period, using IETC-RFC-3339 format + * @return startDateTime + */ + @Valid + @Schema(name = "startDateTime", example = "1985-04-12T23:20:50.520Z", description = "Start of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("startDateTime") + public OffsetDateTime getStartDateTime() { + return startDateTime; + } + + public void setStartDateTime(OffsetDateTime startDateTime) { + this.startDateTime = startDateTime; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TimePeriod timePeriod = (TimePeriod) o; + return Objects.equals(this.endDateTime, timePeriod.endDateTime) && + Objects.equals(this.startDateTime, timePeriod.startDateTime); + } + + @Override + public int hashCode() { + return Objects.hash(endDateTime, startDateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TimePeriod {\n"); + sb.append(" endDateTime: ").append(toIndentedString(endDateTime)).append("\n"); + sb.append(" startDateTime: ").append(toIndentedString(startDateTime)).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/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java new file mode 100644 index 0000000..ef47a3d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -0,0 +1,293 @@ +package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Tracking records allow the tracking of modifications on the problem. The tracking records should not be embedded in the problem to allow retrieving the problem without the tracking records + */ + +@Schema(name = "TrackingRecord", description = "Tracking records allow the tracking of modifications on the problem. The tracking records should not be embedded in the problem to allow retrieving the problem without the tracking records") +@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 TrackingRecord { + + private String id; + + private String description; + + private String systemId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime time; + + private String user; + + @Valid + private List<@Valid Characteristic> characteristic = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public TrackingRecord id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the TrackingRecord + * @return id + */ + + @Schema(name = "id", description = "Identifier of the TrackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public TrackingRecord description(String description) { + this.description = description; + return this; + } + + /** + * Describes the action being done, such as: ack, clear + * @return description + */ + + @Schema(name = "description", example = "", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TrackingRecord systemId(String systemId) { + this.systemId = systemId; + return this; + } + + /** + * Describes the system Id from which the action was done + * @return systemId + */ + + @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("systemId") + public String getSystemId() { + return systemId; + } + + public void setSystemId(String systemId) { + this.systemId = systemId; + } + + public TrackingRecord time(OffsetDateTime time) { + this.time = time; + return this; + } + + /** + * Describes the time at which the action was done + * @return time + */ + @Valid + @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + public void setTime(OffsetDateTime time) { + this.time = time; + } + + public TrackingRecord user(String user) { + this.user = user; + return this; + } + + /** + * Describes the user doing the action + * @return user + */ + + @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("user") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public TrackingRecord characteristic(List<@Valid Characteristic> characteristic) { + this.characteristic = characteristic; + return this; + } + + public TrackingRecord addCharacteristicItem(Characteristic characteristicItem) { + if (this.characteristic == null) { + this.characteristic = new ArrayList<>(); + } + this.characteristic.add(characteristicItem); + return this; + } + + /** + * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces + * @return characteristic + */ + @Valid + @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristic") + public List<@Valid Characteristic> getCharacteristic() { + return characteristic; + } + + public void setCharacteristic(List<@Valid Characteristic> characteristic) { + this.characteristic = characteristic; + } + + public TrackingRecord 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 TrackingRecord 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 TrackingRecord 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; + } + TrackingRecord trackingRecord = (TrackingRecord) o; + return Objects.equals(this.id, trackingRecord.id) && + Objects.equals(this.description, trackingRecord.description) && + Objects.equals(this.systemId, trackingRecord.systemId) && + Objects.equals(this.time, trackingRecord.time) && + Objects.equals(this.user, trackingRecord.user) && + Objects.equals(this.characteristic, trackingRecord.characteristic) && + Objects.equals(this.atBaseType, trackingRecord.atBaseType) && + Objects.equals(this.atSchemaLocation, trackingRecord.atSchemaLocation) && + Objects.equals(this.atType, trackingRecord.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, description, systemId, time, user, characteristic, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrackingRecord {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" characteristic: ").append(toIndentedString(characteristic)).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 "); + } +} + -- GitLab From 90b9c48bc03034ca3e82f0f99872acaf2029d657 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Mon, 29 Apr 2024 11:42:08 +0300 Subject: [PATCH 02/19] Changed package names --- src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java | 2 +- .../org/etsi/osl/tmf/pm628/model/AdministrativeState.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/Characteristic.java | 2 +- .../osl/tmf/pm628/model/CharacteristicRelationship.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/CollectionType.java | 2 +- .../org/etsi/osl/tmf/pm628/model/CompressionEnumType.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/CompressionType.java | 2 +- .../org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java | 2 +- .../org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/Error.java | 6 ++++-- .../org/etsi/osl/tmf/pm628/model/EventSubscription.java | 2 +- .../etsi/osl/tmf/pm628/model/EventSubscriptionInput.java | 2 +- .../org/etsi/osl/tmf/pm628/model/ExecutionStateType.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/FileTransferData.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/IndicatorType.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/ManagementJob.java | 2 +- .../etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java | 2 +- .../MeasurementCollectionJobAttributeValueChangeEvent.java | 2 +- ...rementCollectionJobAttributeValueChangeEventPayload.java | 2 +- .../osl/tmf/pm628/model/MeasurementCollectionJobCreate.java | 2 +- .../pm628/model/MeasurementCollectionJobCreateEvent.java | 2 +- .../model/MeasurementCollectionJobCreateEventPayload.java | 2 +- .../pm628/model/MeasurementCollectionJobDeleteEvent.java | 2 +- .../model/MeasurementCollectionJobDeleteEventPayload.java | 2 +- .../MeasurementCollectionJobExecutionStateChangeEvent.java | 2 +- ...rementCollectionJobExecutionStateChangeEventPayload.java | 2 +- .../MeasurementCollectionJobFilesPreparationErrorEvent.java | 2 +- ...ementCollectionJobFilesPreparationErrorEventPayload.java | 2 +- .../model/MeasurementCollectionJobFilesReadyEvent.java | 2 +- .../MeasurementCollectionJobFilesReadyEventPayload.java | 2 +- .../osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java | 2 +- .../etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java | 2 +- .../osl/tmf/pm628/model/MonitoredInstancesCriteria.java | 2 +- .../tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java | 2 +- .../org/etsi/osl/tmf/pm628/model/OnDemandCollection.java | 2 +- .../model/OnDemandCollectionAttributeValueChangeEvent.java | 2 +- .../OnDemandCollectionAttributeValueChangeEventPayload.java | 2 +- .../etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java | 2 +- .../osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java | 2 +- .../pm628/model/OnDemandCollectionCreateEventPayload.java | 2 +- .../osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java | 2 +- .../pm628/model/OnDemandCollectionDeleteEventPayload.java | 2 +- .../model/OnDemandCollectionExecutionStateChangeEvent.java | 2 +- .../OnDemandCollectionExecutionStateChangeEventPayload.java | 2 +- .../model/OnDemandCollectionFilesPreparationErrorEvent.java | 2 +- ...OnDemandCollectionFilesPreparationErrorEventPayload.java | 2 +- .../tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java | 2 +- .../model/OnDemandCollectionFilesReadyEventPayload.java | 2 +- .../etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java | 2 +- .../pm628/model/PerformanceIndicatorGroupSpecification.java | 2 +- .../model/PerformanceIndicatorGroupSpecificationCreate.java | 2 +- .../model/PerformanceIndicatorGroupSpecificationUpdate.java | 2 +- .../pm628/model/PerformanceIndicatorSpecRelationship.java | 2 +- .../tmf/pm628/model/PerformanceIndicatorSpecification.java | 2 +- .../model/PerformanceIndicatorSpecificationCreate.java | 2 +- .../pm628/model/PerformanceIndicatorSpecificationRef.java | 2 +- .../model/PerformanceIndicatorSpecificationRefOrValue.java | 2 +- .../model/PerformanceIndicatorSpecificationUpdate.java | 2 +- .../org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java | 2 +- .../org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java | 2 +- .../java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java | 2 +- 71 files changed, 74 insertions(+), 72 deletions(-) diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java index 09c692f..f069c43 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index 6cfc1ed..dc56524 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index f3fb090..493d45a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index d4d03fa..58a5fb1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index a048f61..5224516 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index 8b6fb7d..e64a880 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index d52ca6e..bf9270d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index 19cb309..6c071ef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index d0b2a84..92249a8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; 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 index 79d28cc..c2ed1bd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java index f8385ba..a821674 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java index 20d04d5..82f4080 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java index 9eae887..2cfb509 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -1,10 +1,12 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import java.net.URI; + +import jakarta.validation.constraints.NotNull; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; @@ -60,7 +62,7 @@ public class Error { * Application relevant detail, defined in the API or a common list. * @return code */ - @NotNull + @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() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java index f26ff93..5eb03cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java index 98b8ddc..3dcb360 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java index b36f361..b7c129f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java index bd9b955..06fe9b9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index ee36641..256089b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java index f20293c..a3bfac4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java index 216999e..c16bbca 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index 34c2b61..70e007c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index ac14f6c..7bea6a2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java index ede45a1..51201b5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java index a70a2d1..5d4b35e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java index 557fde7..46a9264 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java index a74c680..83491e8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java index 53808f5..1549524 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java index cee6a0b..4c40363 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java index 15fe18c..9ca4fbf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java index 1432264..9614e2c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java index e61fe5e..2863cc4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java index 21a00ee..35c7898 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java index 8e47f9f..2cd2db5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java index 2653288..f39af5c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java index 544420f..76452aa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java index c7a97f0..b4d56ce 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index 2a54a92..74bdcb7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index d9bccf9..29a99f9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index 4a01776..3e470d5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index b6d7598..f91b2cd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java index 8f5d990..12e8f3c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java index feef6fa..a8e2e73 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java index d658b59..d9d032b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java index fab926a..288e5f7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java index e1390ac..42201de 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java index 50bb359..61439b6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java index c52863e..138e0c6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java index 3296f8d..c17db05 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java index 548a3b9..fe176fc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java index 45a070a..19d04f1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java index 4659b19..71b22cc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java index bde2adb..975a4af 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java index a20234e..e21afe7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java index d93b096..4260cae 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java index c664403..ce5b7ea 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java index 859429b..b803297 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index d37df6b..6102c16 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index 902193e..b8b8794 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java index d8819be..13d7320 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java index 37338bb..a8ae2a5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index e6d9de0..11ef976 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 5f085c3..4e3d91d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java index a07f407..7af4f06 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index b82ba67..4687ec4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index a2b509f..d79342c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java index 0dd94ca..19130b9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java index 61b68c0..983e91a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java index e7f0b43..8f675ae 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index c98f8d1..5f94485 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index 4b1acea..9199f75 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index ef47a3d..0c613cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -1,4 +1,4 @@ -package org.etsi.osl.tmf.pm628.src.main.java.org.etsi.osl.tmf.pm628.model; +package org.etsi.osl.tmf.pm628.model; import java.net.URI; import java.util.Objects; -- GitLab From fa7d2f785dc3cfe452d032dd9856c3b4d2d35856 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Mon, 29 Apr 2024 12:45:02 +0300 Subject: [PATCH 03/19] optimise imports --- pom.xml | 17 + .../etsi/osl/tmf/pm628/model/Addressable.java | 173 ++- .../tmf/pm628/model/AdministrativeState.java | 71 +- .../osl/tmf/pm628/model/Characteristic.java | 514 +++---- .../model/CharacteristicRelationship.java | 375 +++-- .../osl/tmf/pm628/model/CollectionType.java | 83 +- .../tmf/pm628/model/CompressionEnumType.java | 79 +- .../osl/tmf/pm628/model/CompressionType.java | 112 +- .../tmf/pm628/model/DayOfMonthRecurrence.java | 284 ++-- .../tmf/pm628/model/DayOfWeekRecurrence.java | 284 ++-- .../etsi/osl/tmf/pm628/model/Duration.java | 170 ++- .../org/etsi/osl/tmf/pm628/model/Entity.java | 327 +++-- .../etsi/osl/tmf/pm628/model/EntityRef.java | 447 +++--- .../org/etsi/osl/tmf/pm628/model/Error.java | 495 +++---- .../tmf/pm628/model/EventSubscription.java | 244 ++-- .../pm628/model/EventSubscriptionInput.java | 193 ++- .../tmf/pm628/model/ExecutionStateType.java | 91 +- .../etsi/osl/tmf/pm628/model/Extensible.java | 223 ++- .../osl/tmf/pm628/model/FileTransferData.java | 520 +++---- .../etsi/osl/tmf/pm628/model/Granularity.java | 99 +- .../osl/tmf/pm628/model/IndicatorType.java | 79 +- .../osl/tmf/pm628/model/ManagementJob.java | 775 +++++----- .../pm628/model/MeasurementCollectionJob.java | 1276 +++++++++-------- ...ollectionJobAttributeValueChangeEvent.java | 628 ++++---- ...onJobAttributeValueChangeEventPayload.java | 112 +- .../model/MeasurementCollectionJobCreate.java | 1188 +++++++-------- .../MeasurementCollectionJobCreateEvent.java | 579 ++++---- ...rementCollectionJobCreateEventPayload.java | 112 +- .../MeasurementCollectionJobDeleteEvent.java | 579 ++++---- ...rementCollectionJobDeleteEventPayload.java | 112 +- ...ollectionJobExecutionStateChangeEvent.java | 579 ++++---- ...onJobExecutionStateChangeEventPayload.java | 112 +- ...llectionJobFilesPreparationErrorEvent.java | 579 ++++---- ...nJobFilesPreparationErrorEventPayload.java | 112 +- ...asurementCollectionJobFilesReadyEvent.java | 579 ++++---- ...ntCollectionJobFilesReadyEventPayload.java | 112 +- .../model/MeasurementCollectionJobUpdate.java | 1188 +++++++-------- .../osl/tmf/pm628/model/MeasurementJob.java | 1187 +++++++-------- .../pm628/model/MonitoredClassCriteria.java | 327 +++-- .../model/MonitoredInstancesCriteria.java | 223 ++- .../MonthlyScheduleDayOfWeekDefinition.java | 351 +++-- .../tmf/pm628/model/OnDemandCollection.java | 1276 +++++++++-------- ...ndCollectionAttributeValueChangeEvent.java | 628 ++++---- ...ctionAttributeValueChangeEventPayload.java | 112 +- .../pm628/model/OnDemandCollectionCreate.java | 1190 +++++++-------- .../model/OnDemandCollectionCreateEvent.java | 579 ++++---- .../OnDemandCollectionCreateEventPayload.java | 112 +- .../model/OnDemandCollectionDeleteEvent.java | 579 ++++---- .../OnDemandCollectionDeleteEventPayload.java | 112 +- ...ndCollectionExecutionStateChangeEvent.java | 579 ++++---- ...ctionExecutionStateChangeEventPayload.java | 112 +- ...dCollectionFilesPreparationErrorEvent.java | 579 ++++---- ...tionFilesPreparationErrorEventPayload.java | 112 +- .../OnDemandCollectionFilesReadyEvent.java | 579 ++++---- ...emandCollectionFilesReadyEventPayload.java | 112 +- .../pm628/model/OnDemandCollectionUpdate.java | 1190 +++++++-------- .../osl/tmf/pm628/model/PackingEnumType.java | 83 +- .../etsi/osl/tmf/pm628/model/PackingType.java | 113 +- ...erformanceIndicatorGroupSpecification.java | 475 +++--- ...anceIndicatorGroupSpecificationCreate.java | 379 +++-- ...anceIndicatorGroupSpecificationUpdate.java | 379 +++-- .../PerformanceIndicatorSpecRelationship.java | 549 +++---- .../PerformanceIndicatorSpecification.java | 872 +++++------ ...rformanceIndicatorSpecificationCreate.java | 788 +++++----- .../PerformanceIndicatorSpecificationRef.java | 490 +++---- ...manceIndicatorSpecificationRefOrValue.java | 958 +++++++------ ...rformanceIndicatorSpecificationUpdate.java | 788 +++++----- .../tmf/pm628/model/ProtocolTransferData.java | 107 +- .../osl/tmf/pm628/model/ReportingPeriod.java | 91 +- .../tmf/pm628/model/ScheduleDefinition.java | 554 +++---- .../etsi/osl/tmf/pm628/model/TimePeriod.java | 180 ++- .../osl/tmf/pm628/model/TrackingRecord.java | 551 +++---- 72 files changed, 15344 insertions(+), 15454 deletions(-) diff --git a/pom.xml b/pom.xml index 8c310e5..0bd8c3c 100644 --- a/pom.xml +++ b/pom.xml @@ -84,6 +84,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/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java index f069c43..1427899 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.Objects; /** * Base schema for adressable entities @@ -23,87 +16,89 @@ import javax.annotation.Generated; @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; + 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; } - if (o == null || getClass() != o.getClass()) { - return false; + + public void setId(String id) { + this.id = id; } - 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"; + + 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 "); } - 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 index dc56524..e6de1eb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java @@ -1,56 +1,45 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * This is enumeration for Administrative state */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[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; - } + + 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 + "'"); } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } } 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 index 493d45a..7994c01 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -1,23 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicRelationship; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Describes a given characteristic of an object or entity through a name/value pair. @@ -27,252 +19,260 @@ import javax.annotation.Generated; @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 Characteristic { - private String id; - - private String name; - - private String valueType; - - @Valid - private List<@Valid CharacteristicRelationship> characteristicRelationship = new ArrayList<>(); - - private Object value; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public Characteristic() { - super(); - } - - /** - * Constructor with only required parameters - */ - public Characteristic(String name, Object value) { - this.name = name; - this.value = value; - } - - public Characteristic id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the characteristic - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public Characteristic name(String name) { - this.name = name; - return this; - } - - /** - * Name of the characteristic - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - 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<@Valid CharacteristicRelationship> characteristicRelationship) { - this.characteristicRelationship = characteristicRelationship; - return this; - } - - public Characteristic addCharacteristicRelationshipItem(CharacteristicRelationship characteristicRelationshipItem) { - if (this.characteristicRelationship == null) { - this.characteristicRelationship = new ArrayList<>(); + private String id; + + private String name; + + private String valueType; + + @Valid + private List<@Valid CharacteristicRelationship> characteristicRelationship = new ArrayList<>(); + + private Object value; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public Characteristic() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Characteristic(String name, Object value) { + this.name = name; + this.value = value; } - this.characteristicRelationship.add(characteristicRelationshipItem); - return this; - } - - /** - * Get characteristicRelationship - * @return characteristicRelationship - */ - @Valid - @Schema(name = "characteristicRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("characteristicRelationship") - public List<@Valid CharacteristicRelationship> getCharacteristicRelationship() { - return characteristicRelationship; - } - - public void setCharacteristicRelationship(List<@Valid CharacteristicRelationship> characteristicRelationship) { - this.characteristicRelationship = characteristicRelationship; - } - - public Characteristic value(Object value) { - this.value = value; - return this; - } - - /** - * Get value - * @return value - */ - @NotNull - @Schema(name = "value", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("value") - public Object getValue() { - return value; - } - - public void setValue(Object value) { - this.value = value; - } - - public Characteristic 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 Characteristic 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 Characteristic 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; + + public Characteristic id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Characteristic name(String name) { + this.name = name; + return this; + } + + /** + * Name of the characteristic + * + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; } - if (o == null || getClass() != o.getClass()) { - return false; + + public void setName(String name) { + this.name = name; + } + + 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<@Valid CharacteristicRelationship> characteristicRelationship) { + this.characteristicRelationship = characteristicRelationship; + return this; } - Characteristic characteristic = (Characteristic) o; - return Objects.equals(this.id, characteristic.id) && - Objects.equals(this.name, characteristic.name) && - Objects.equals(this.valueType, characteristic.valueType) && - Objects.equals(this.characteristicRelationship, characteristic.characteristicRelationship) && - Objects.equals(this.value, characteristic.value) && - Objects.equals(this.atBaseType, characteristic.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristic.atSchemaLocation) && - Objects.equals(this.atType, characteristic.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, valueType, characteristicRelationship, value, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Characteristic {\n"); - sb.append(" id: ").append(toIndentedString(id)).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(" value: ").append(toIndentedString(value)).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"; + + public Characteristic addCharacteristicRelationshipItem(CharacteristicRelationship characteristicRelationshipItem) { + if (this.characteristicRelationship == null) { + this.characteristicRelationship = new ArrayList<>(); + } + this.characteristicRelationship.add(characteristicRelationshipItem); + return this; + } + + /** + * Get characteristicRelationship + * + * @return characteristicRelationship + */ + @Valid + @Schema(name = "characteristicRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristicRelationship") + public List<@Valid CharacteristicRelationship> getCharacteristicRelationship() { + return characteristicRelationship; + } + + public void setCharacteristicRelationship(List<@Valid CharacteristicRelationship> characteristicRelationship) { + this.characteristicRelationship = characteristicRelationship; + } + + public Characteristic value(Object value) { + this.value = value; + return this; + } + + /** + * Get value + * + * @return value + */ + @NotNull + @Schema(name = "value", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("value") + public Object getValue() { + return value; + } + + public void setValue(Object value) { + this.value = value; + } + + public Characteristic 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 Characteristic 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 Characteristic 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; + } + Characteristic characteristic = (Characteristic) o; + return Objects.equals(this.id, characteristic.id) && + Objects.equals(this.name, characteristic.name) && + Objects.equals(this.valueType, characteristic.valueType) && + Objects.equals(this.characteristicRelationship, characteristic.characteristicRelationship) && + Objects.equals(this.value, characteristic.value) && + Objects.equals(this.atBaseType, characteristic.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristic.atSchemaLocation) && + Objects.equals(this.atType, characteristic.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, valueType, characteristicRelationship, value, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Characteristic {\n"); + sb.append(" id: ").append(toIndentedString(id)).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(" value: ").append(toIndentedString(value)).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 "); } - 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 index 58a5fb1..b01516b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.Objects; /** * Another Characteristic that is related to the current Characteristic; @@ -23,183 +16,189 @@ import javax.annotation.Generated; @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 CharacteristicRelationship { - private String id; - - private URI href; - - private String relationshipType; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public CharacteristicRelationship id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the characteristic - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public CharacteristicRelationship 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 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; - } - - public CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship 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; - } - CharacteristicRelationship characteristicRelationship = (CharacteristicRelationship) o; - return Objects.equals(this.id, characteristicRelationship.id) && - Objects.equals(this.href, characteristicRelationship.href) && - Objects.equals(this.relationshipType, characteristicRelationship.relationshipType) && - Objects.equals(this.atBaseType, characteristicRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicRelationship.atSchemaLocation) && - Objects.equals(this.atType, characteristicRelationship.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, relationshipType, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CharacteristicRelationship {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).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 "); - } + private String id; + + private URI href; + + private String relationshipType; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public CharacteristicRelationship id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public CharacteristicRelationship 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 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; + } + + public CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship 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; + } + CharacteristicRelationship characteristicRelationship = (CharacteristicRelationship) o; + return Objects.equals(this.id, characteristicRelationship.id) && + Objects.equals(this.href, characteristicRelationship.href) && + Objects.equals(this.relationshipType, characteristicRelationship.relationshipType) && + Objects.equals(this.atBaseType, characteristicRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicRelationship.atSchemaLocation) && + Objects.equals(this.atType, characteristicRelationship.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, relationshipType, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicRelationship {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).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/pm628/model/CollectionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java index 5224516..c77dee4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java @@ -1,62 +1,51 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * This is enumeration for CollectionType state */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[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; - } + + 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 + "'"); } - 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 index e64a880..c059fe6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java @@ -1,60 +1,49 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Enumeration of supported compressions. All extensions allowed. */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[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; - } + + 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 + "'"); } - 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 index bf9270d..cd05309 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -1,20 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.CompressionEnumType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * File compression type. @@ -24,63 +15,64 @@ import javax.annotation.Generated; @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 CompressionType { - private CompressionEnumType 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 CompressionType compressionEnumType(CompressionEnumType compressionEnumType) { + this.compressionEnumType = compressionEnumType; + return this; + } - public void setCompressionEnumType(CompressionEnumType compressionEnumType) { - this.compressionEnumType = compressionEnumType; - } + /** + * Get compressionEnumType + * + * @return compressionEnumType + */ + @Valid + @Schema(name = "compressionEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionEnumType") + public CompressionEnumType getCompressionEnumType() { + return compressionEnumType; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setCompressionEnumType(CompressionEnumType compressionEnumType) { + this.compressionEnumType = compressionEnumType; } - if (o == null || getClass() != o.getClass()) { - return false; + + @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); } - CompressionType compressionType = (CompressionType) o; - return Objects.equals(this.compressionEnumType, compressionType.compressionEnumType); - } - @Override - public int hashCode() { - return Objects.hash(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(); - } + @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"; + /** + * 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 "); } - 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 index 6c071ef..58538d5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -1,21 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfMonthRecurrence @@ -24,136 +18,140 @@ import javax.annotation.Generated; @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 DayOfMonthRecurrence { - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - 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 OffsetDateTime getDates() { - return dates; - } - - public void setDates(OffsetDateTime dates) { - this.dates = dates; - } - - public DayOfMonthRecurrence 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 DayOfMonthRecurrence 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 DayOfMonthRecurrence 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; - } - DayOfMonthRecurrence dayOfMonthRecurrence = (DayOfMonthRecurrence) o; - return Objects.equals(this.dates, dayOfMonthRecurrence.dates) && - Objects.equals(this.atBaseType, dayOfMonthRecurrence.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfMonthRecurrence.atSchemaLocation) && - Objects.equals(this.atType, dayOfMonthRecurrence.atType); - } - - @Override - public int hashCode() { - return Objects.hash(dates, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DayOfMonthRecurrence {\n"); - sb.append(" dates: ").append(toIndentedString(dates)).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 "); - } + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + 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 OffsetDateTime getDates() { + return dates; + } + + public void setDates(OffsetDateTime dates) { + this.dates = dates; + } + + public DayOfMonthRecurrence 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 DayOfMonthRecurrence 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 DayOfMonthRecurrence 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; + } + DayOfMonthRecurrence dayOfMonthRecurrence = (DayOfMonthRecurrence) o; + return Objects.equals(this.dates, dayOfMonthRecurrence.dates) && + Objects.equals(this.atBaseType, dayOfMonthRecurrence.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfMonthRecurrence.atSchemaLocation) && + Objects.equals(this.atType, dayOfMonthRecurrence.atType); + } + + @Override + public int hashCode() { + return Objects.hash(dates, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfMonthRecurrence {\n"); + sb.append(" dates: ").append(toIndentedString(dates)).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/pm628/model/DayOfWeekRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java index 92249a8..7254842 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -1,21 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfWeekRecurrence @@ -24,136 +18,140 @@ import javax.annotation.Generated; @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 DayOfWeekRecurrence { - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public DayOfWeekRecurrence 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; - } - - public DayOfWeekRecurrence 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 DayOfWeekRecurrence 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 DayOfWeekRecurrence 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; - } - DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o; - return Objects.equals(this.dates, dayOfWeekRecurrence.dates) && - Objects.equals(this.atBaseType, dayOfWeekRecurrence.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfWeekRecurrence.atSchemaLocation) && - Objects.equals(this.atType, dayOfWeekRecurrence.atType); - } - - @Override - public int hashCode() { - return Objects.hash(dates, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DayOfWeekRecurrence {\n"); - sb.append(" dates: ").append(toIndentedString(dates)).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 "); - } + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public DayOfWeekRecurrence 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; + } + + public DayOfWeekRecurrence 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 DayOfWeekRecurrence 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 DayOfWeekRecurrence 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; + } + DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o; + return Objects.equals(this.dates, dayOfWeekRecurrence.dates) && + Objects.equals(this.atBaseType, dayOfWeekRecurrence.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfWeekRecurrence.atSchemaLocation) && + Objects.equals(this.atType, dayOfWeekRecurrence.atType); + } + + @Override + public int hashCode() { + return Objects.hash(dates, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfWeekRecurrence {\n"); + sb.append(" dates: ").append(toIndentedString(dates)).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/pm628/model/Duration.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java index c2ed1bd..20ee028 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -1,18 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * A time interval in a given unit of time @@ -22,87 +14,89 @@ import javax.annotation.Generated; @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 Duration { - private Integer amount; - - 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; + private Integer amount; + + 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; } - if (o == null || getClass() != o.getClass()) { - return false; + + public Duration units(String units) { + this.units = units; + return this; } - 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"; + + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java index a821674..71a11ab 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -1,19 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * Base entity schema for use in TMForum Open-APIs @@ -23,159 +17,164 @@ import javax.annotation.Generated; @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 "); - } + 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/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java index 82f4080..d8595d2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -1,19 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * Entity reference schema to be use for all entityRef class. @@ -23,218 +17,225 @@ import javax.annotation.Generated; @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 "); - } + 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/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java index 2cfb509..c66eaad 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; - -import jakarta.validation.constraints.NotNull; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +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) @@ -25,243 +18,251 @@ import javax.annotation.Generated; @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; + 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(); } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * 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; } - 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"; + + 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java index 5eb03cb..6e891d4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java @@ -1,18 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.constraints.*; +import java.util.Objects; /** * Sets the communication endpoint address the service instance must use to deliver notification information @@ -22,123 +15,126 @@ import javax.annotation.Generated; @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 EventSubscription { - private String id; - - private String callback; - - private String query; - - public EventSubscription() { - super(); - } - - /** - * Constructor with only required parameters - */ - public EventSubscription(String id, String callback) { - this.id = id; - this.callback = callback; - } - - public EventSubscription id(String id) { - this.id = id; - return this; - } - - /** - * Id of the listener - * @return id - */ - @NotNull - @Schema(name = "id", description = "Id of the listener", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - 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 - */ - @NotNull - @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("callback") - 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("query") - public String getQuery() { - return query; - } - - public void setQuery(String query) { - this.query = query; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + private String id; + + private String callback; + + private String query; + + public EventSubscription() { + super(); + } + + /** + * Constructor with only required parameters + */ + public EventSubscription(String id, String callback) { + this.id = id; + this.callback = callback; } - if (o == null || getClass() != o.getClass()) { - return false; + + public EventSubscription id(String id) { + this.id = id; + return this; } - 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(Object o) { - if (o == null) { - return "null"; + + /** + * Id of the listener + * + * @return id + */ + @NotNull + @Schema(name = "id", description = "Id of the listener", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + 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 + */ + @NotNull + @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("callback") + 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("query") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + @Override + public boolean equals(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(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java index 3dcb360..59aa234 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java @@ -1,18 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.constraints.*; +import java.util.Objects; /** * Sets the communication endpoint address the service instance must use to deliver notification information @@ -22,98 +15,100 @@ import javax.annotation.Generated; @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 EventSubscriptionInput { - private String callback; - - private String query; - - public EventSubscriptionInput() { - super(); - } - - /** - * Constructor with only required parameters - */ - public EventSubscriptionInput(String callback) { - this.callback = callback; - } - - public EventSubscriptionInput callback(String callback) { - this.callback = callback; - return this; - } - - /** - * The callback being registered. - * @return callback - */ - @NotNull - @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("callback") - 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("query") - public String getQuery() { - return query; - } - - public void setQuery(String query) { - this.query = query; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + private String callback; + + private String query; + + public EventSubscriptionInput() { + super(); + } + + /** + * Constructor with only required parameters + */ + public EventSubscriptionInput(String callback) { + this.callback = callback; + } + + public EventSubscriptionInput callback(String callback) { + this.callback = callback; + return this; + } + + /** + * The callback being registered. + * + * @return callback + */ + @NotNull + @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("callback") + 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("query") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + @Override + public boolean equals(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); } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public int hashCode() { + return Objects.hash(callback, query); } - 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(Object o) { - if (o == null) { - return "null"; + + @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(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java index b7c129f..1e5b56d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java @@ -1,66 +1,55 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Possible values for the state of the execution */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public enum ExecutionStateType { - - ACKNOWLEDGED("acknowledged"), - - REJECTED("rejected"), - - PENDING("pending"), - - INPROGRESS("inProgress"), - - CANCELLED("cancelled"), - - COMPLETED("completed"), - - FAILED("failed"); - - private String value; - - ExecutionStateType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ExecutionStateType fromValue(String value) { - for (ExecutionStateType b : ExecutionStateType.values()) { - if (b.value.equals(value)) { - return b; - } + + ACKNOWLEDGED("acknowledged"), + + REJECTED("rejected"), + + PENDING("pending"), + + INPROGRESS("inProgress"), + + CANCELLED("cancelled"), + + COMPLETED("completed"), + + FAILED("failed"); + + private String value; + + ExecutionStateType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ExecutionStateType fromValue(String value) { + for (ExecutionStateType b : ExecutionStateType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java index 06fe9b9..c7b31a0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -1,19 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * Base Extensible schema for use in TMForum Open-APIs @@ -23,111 +17,114 @@ import javax.annotation.Generated; @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 Extensible { - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public Extensible 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 Extensible 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 Extensible 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; + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public Extensible atBaseType(String atBaseType) { + this.atBaseType = atBaseType; + return this; } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * 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 Extensible atSchemaLocation(URI atSchemaLocation) { + this.atSchemaLocation = atSchemaLocation; + return this; } - Extensible extensible = (Extensible) o; - return Objects.equals(this.atBaseType, extensible.atBaseType) && - Objects.equals(this.atSchemaLocation, extensible.atSchemaLocation) && - Objects.equals(this.atType, extensible.atType); - } - - @Override - public int hashCode() { - return Objects.hash(atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Extensible {\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"; + + /** + * 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 Extensible 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; + } + Extensible extensible = (Extensible) o; + return Objects.equals(this.atBaseType, extensible.atBaseType) && + Objects.equals(this.atSchemaLocation, extensible.atSchemaLocation) && + Objects.equals(this.atType, extensible.atType); + } + + @Override + public int hashCode() { + return Objects.hash(atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Extensible {\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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index 256089b..bd11298 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -1,22 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.etsi.osl.tmf.pm628.model.CompressionType; -import org.etsi.osl.tmf.pm628.model.Duration; -import org.etsi.osl.tmf.pm628.model.PackingType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * FileTransferData @@ -25,255 +16,264 @@ import javax.annotation.Generated; @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 FileTransferData { - private String fileFormat; - - private URI fileLocation; - - private String transportProtocol; - - private CompressionType compressionType; - - private PackingType packingType; - - private Duration retentionPeriod; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public FileTransferData fileFormat(String fileFormat) { - this.fileFormat = fileFormat; - return this; - } - - /** - * Get fileFormat - * @return fileFormat - */ - - @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fileFormat") - public String getFileFormat() { - return fileFormat; - } - - public void setFileFormat(String fileFormat) { - this.fileFormat = fileFormat; - } - - public FileTransferData fileLocation(URI fileLocation) { - this.fileLocation = fileLocation; - return this; - } - - /** - * Get fileLocation - * @return fileLocation - */ - @Valid - @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fileLocation") - public URI getFileLocation() { - return fileLocation; - } - - public void setFileLocation(URI fileLocation) { - this.fileLocation = fileLocation; - } - - public FileTransferData transportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - return this; - } - - /** - * Get transportProtocol - * @return transportProtocol - */ - - @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("transportProtocol") - public String getTransportProtocol() { - return transportProtocol; - } - - public void setTransportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - } - - public FileTransferData compressionType(CompressionType compressionType) { - this.compressionType = compressionType; - return this; - } - - /** - * Get compressionType - * @return compressionType - */ - @Valid - @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("compressionType") - public CompressionType getCompressionType() { - return compressionType; - } - - public void setCompressionType(CompressionType compressionType) { - this.compressionType = compressionType; - } - - public FileTransferData packingType(PackingType packingType) { - this.packingType = packingType; - return this; - } - - /** - * Get packingType - * @return packingType - */ - @Valid - @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("packingType") - public PackingType getPackingType() { - return packingType; - } - - public void setPackingType(PackingType packingType) { - this.packingType = packingType; - } - - public FileTransferData retentionPeriod(Duration retentionPeriod) { - this.retentionPeriod = retentionPeriod; - return this; - } - - /** - * Get retentionPeriod - * @return retentionPeriod - */ - @Valid - @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("retentionPeriod") - public Duration getRetentionPeriod() { - return retentionPeriod; - } - - public void setRetentionPeriod(Duration retentionPeriod) { - this.retentionPeriod = retentionPeriod; - } - - public FileTransferData 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 FileTransferData 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 FileTransferData 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; + private String fileFormat; + + private URI fileLocation; + + private String transportProtocol; + + private CompressionType compressionType; + + private PackingType packingType; + + private Duration retentionPeriod; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public FileTransferData fileFormat(String fileFormat) { + this.fileFormat = fileFormat; + return this; } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * Get fileFormat + * + * @return fileFormat + */ + + @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileFormat") + public String getFileFormat() { + return fileFormat; } - FileTransferData fileTransferData = (FileTransferData) o; - return Objects.equals(this.fileFormat, fileTransferData.fileFormat) && - Objects.equals(this.fileLocation, fileTransferData.fileLocation) && - Objects.equals(this.transportProtocol, fileTransferData.transportProtocol) && - Objects.equals(this.compressionType, fileTransferData.compressionType) && - Objects.equals(this.packingType, fileTransferData.packingType) && - Objects.equals(this.retentionPeriod, fileTransferData.retentionPeriod) && - Objects.equals(this.atBaseType, fileTransferData.atBaseType) && - Objects.equals(this.atSchemaLocation, fileTransferData.atSchemaLocation) && - Objects.equals(this.atType, fileTransferData.atType); - } - - @Override - public int hashCode() { - return Objects.hash(fileFormat, fileLocation, transportProtocol, compressionType, packingType, retentionPeriod, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FileTransferData {\n"); - sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); - sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); - sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).append("\n"); - sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); - sb.append(" packingType: ").append(toIndentedString(packingType)).append("\n"); - sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).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"; + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + + public FileTransferData fileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + return this; + } + + /** + * Get fileLocation + * + * @return fileLocation + */ + @Valid + @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileLocation") + public URI getFileLocation() { + return fileLocation; + } + + public void setFileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + } + + public FileTransferData transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } + + /** + * Get transportProtocol + * + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + + public FileTransferData compressionType(CompressionType compressionType) { + this.compressionType = compressionType; + return this; + } + + /** + * Get compressionType + * + * @return compressionType + */ + @Valid + @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionType") + public CompressionType getCompressionType() { + return compressionType; + } + + public void setCompressionType(CompressionType compressionType) { + this.compressionType = compressionType; + } + + public FileTransferData packingType(PackingType packingType) { + this.packingType = packingType; + return this; + } + + /** + * Get packingType + * + * @return packingType + */ + @Valid + @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingType") + public PackingType getPackingType() { + return packingType; + } + + public void setPackingType(PackingType packingType) { + this.packingType = packingType; + } + + public FileTransferData retentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + + /** + * Get retentionPeriod + * + * @return retentionPeriod + */ + @Valid + @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("retentionPeriod") + public Duration getRetentionPeriod() { + return retentionPeriod; + } + + public void setRetentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + } + + public FileTransferData 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 FileTransferData 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 FileTransferData 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; + } + FileTransferData fileTransferData = (FileTransferData) o; + return Objects.equals(this.fileFormat, fileTransferData.fileFormat) && + Objects.equals(this.fileLocation, fileTransferData.fileLocation) && + Objects.equals(this.transportProtocol, fileTransferData.transportProtocol) && + Objects.equals(this.compressionType, fileTransferData.compressionType) && + Objects.equals(this.packingType, fileTransferData.packingType) && + Objects.equals(this.retentionPeriod, fileTransferData.retentionPeriod) && + Objects.equals(this.atBaseType, fileTransferData.atBaseType) && + Objects.equals(this.atSchemaLocation, fileTransferData.atSchemaLocation) && + Objects.equals(this.atType, fileTransferData.atType); + } + + @Override + public int hashCode() { + return Objects.hash(fileFormat, fileLocation, transportProtocol, compressionType, packingType, retentionPeriod, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileTransferData {\n"); + sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); + sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).append("\n"); + sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); + sb.append(" packingType: ").append(toIndentedString(packingType)).append("\n"); + sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java index a3bfac4..692a026 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java @@ -1,70 +1,59 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Sampling rate of the collection or production of performance indicators. */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public enum Granularity { - - G_1MN("g_1mn"), - - G_5MN("g_5mn"), - - G_15MN("g_15mn"), - - G_30MN("g_30mn"), - - G_1H("g_1h"), - - G_24H("g_24h"), - - G_1M("g_1m"), - - G_1Y("g_1y"), - - NA("na"); - - private String value; - - Granularity(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static Granularity fromValue(String value) { - for (Granularity b : Granularity.values()) { - if (b.value.equals(value)) { - return b; - } + + G_1MN("g_1mn"), + + G_5MN("g_5mn"), + + G_15MN("g_15mn"), + + G_30MN("g_30mn"), + + G_1H("g_1h"), + + G_24H("g_24h"), + + G_1M("g_1m"), + + G_1Y("g_1y"), + + NA("na"); + + private String value; + + Granularity(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static Granularity fromValue(String value) { + for (Granularity b : Granularity.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java index c16bbca..175c3fd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java @@ -1,60 +1,49 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * This is enumeration for Indicator Type */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public enum IndicatorType { - - STRING("string"), - - INT("int"), - - FLOAT("float"), - - DOUBLE("double"); - - private String value; - - IndicatorType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static IndicatorType fromValue(String value) { - for (IndicatorType b : IndicatorType.values()) { - if (b.value.equals(value)) { - return b; - } + + STRING("string"), + + INT("int"), + + FLOAT("float"), + + DOUBLE("double"); + + private String value; + + IndicatorType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static IndicatorType fromValue(String value) { + for (IndicatorType b : IndicatorType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index 70e007c..565d11a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -1,29 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * ManagementJob @@ -32,373 +20,388 @@ import javax.annotation.Generated; @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 ManagementJob { - private String id; + private String id; + + private URI href; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; - private URI href; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private AdministrativeState adminState; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private ScheduleDefinition scheduleDefinition; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public ManagementJob() { - super(); - } - - /** - * Constructor with only required parameters - */ - public ManagementJob(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public ManagementJob 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 ManagementJob 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 ManagementJob creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public ManagementJob jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public ManagementJob jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public ManagementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public ManagementJob adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public ManagementJob executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public ManagementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public ManagementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public ManagementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public ManagementJob 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 ManagementJob 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 ManagementJob 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; - } - ManagementJob managementJob = (ManagementJob) o; - return Objects.equals(this.id, managementJob.id) && - Objects.equals(this.href, managementJob.href) && - Objects.equals(this.creationTime, managementJob.creationTime) && - Objects.equals(this.jobId, managementJob.jobId) && - Objects.equals(this.jobPriority, managementJob.jobPriority) && - Objects.equals(this.lastModifiedTime, managementJob.lastModifiedTime) && - Objects.equals(this.adminState, managementJob.adminState) && - Objects.equals(this.executionState, managementJob.executionState) && - Objects.equals(this.fileTransferData, managementJob.fileTransferData) && - Objects.equals(this.scheduleDefinition, managementJob.scheduleDefinition) && - Objects.equals(this.atBaseType, managementJob.atBaseType) && - Objects.equals(this.atSchemaLocation, managementJob.atSchemaLocation) && - Objects.equals(this.atType, managementJob.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, creationTime, jobId, jobPriority, lastModifiedTime, adminState, executionState, fileTransferData, scheduleDefinition, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ManagementJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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 "); - } + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public ManagementJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ManagementJob(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJob 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 ManagementJob 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 ManagementJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public ManagementJob jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ManagementJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public ManagementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public ManagementJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public ManagementJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public ManagementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public ManagementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public ManagementJob 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 ManagementJob 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 ManagementJob 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; + } + ManagementJob managementJob = (ManagementJob) o; + return Objects.equals(this.id, managementJob.id) && + Objects.equals(this.href, managementJob.href) && + Objects.equals(this.creationTime, managementJob.creationTime) && + Objects.equals(this.jobId, managementJob.jobId) && + Objects.equals(this.jobPriority, managementJob.jobPriority) && + Objects.equals(this.lastModifiedTime, managementJob.lastModifiedTime) && + Objects.equals(this.adminState, managementJob.adminState) && + Objects.equals(this.executionState, managementJob.executionState) && + Objects.equals(this.fileTransferData, managementJob.fileTransferData) && + Objects.equals(this.scheduleDefinition, managementJob.scheduleDefinition) && + Objects.equals(this.atBaseType, managementJob.atBaseType) && + Objects.equals(this.atSchemaLocation, managementJob.atSchemaLocation) && + Objects.equals(this.atType, managementJob.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, creationTime, jobId, jobPriority, lastModifiedTime, adminState, executionState, fileTransferData, scheduleDefinition, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ManagementJob {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index 7bea6a2..157e970 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -1,36 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. @@ -40,640 +21,665 @@ import javax.annotation.Generated; @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 MeasurementCollectionJob { - private String id; + private String id; + + private URI href; + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granularity; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ReportingPeriod reportingPeriod; + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MeasurementCollectionJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJob(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJob id(String id) { + this.id = id; + return this; + } + + /** + * unique identifier + * + * @return id + */ - private URI href; + @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } - private String consumingApplicationId; + public void setId(String id) { + this.id = id; + } - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + public MeasurementCollectionJob href(URI href) { + this.href = href; + return this; + } - private String jobId; + /** + * Hyperlink reference + * + * @return href + */ + @Valid + @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public URI getHref() { + return href; + } - private Integer jobPriority; + public void setHref(URI href) { + this.href = href; + } - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + public MeasurementCollectionJob consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } - private String outputFormat; + /** + * The identifier of the application that consumes performance indicators. + * + * @return consumingApplicationId + */ - private String producingApplicationId; + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } - private AdministrativeState adminState; + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } - private ExecutionStateType executionState; + public MeasurementCollectionJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } - private Granularity granularity; + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } - private MonitoredClassCriteria monitoredClassCriteria; + public MeasurementCollectionJob jobId(String jobId) { + this.jobId = jobId; + return this; + } - private MonitoredInstancesCriteria monitoredInstancesCriteria; + /** + * The ID of the management job. + * + * @return jobId + */ - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + public void setJobId(String jobId) { + this.jobId = jobId; + } - private ReportingPeriod reportingPeriod; + public MeasurementCollectionJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } - private ScheduleDefinition scheduleDefinition; + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } - private String atBaseType; + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } - private URI atSchemaLocation; + public MeasurementCollectionJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } - private String atType; + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } - public MeasurementCollectionJob() { - super(); - } + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementCollectionJob outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } - /** - * Constructor with only required parameters - */ - public MeasurementCollectionJob(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } + /** + * Get outputFormat + * + * @return outputFormat + */ - public MeasurementCollectionJob id(String id) { - this.id = id; - return this; - } + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJob producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementCollectionJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementCollectionJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } - /** - * 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 MeasurementCollectionJob 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 MeasurementCollectionJob consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementCollectionJob creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementCollectionJob jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementCollectionJob jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementCollectionJob lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementCollectionJob outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public MeasurementCollectionJob producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementCollectionJob adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementCollectionJob executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementCollectionJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementCollectionJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJob granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementCollectionJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementCollectionJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementCollectionJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementCollectionJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementCollectionJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementCollectionJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementCollectionJob reportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - return this; - } - - /** - * Get reportingPeriod - * @return reportingPeriod - */ - @Valid - @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("reportingPeriod") - public ReportingPeriod getReportingPeriod() { - return reportingPeriod; - } - - public void setReportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - } - - public MeasurementCollectionJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementCollectionJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementCollectionJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementCollectionJob 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 MeasurementCollectionJob 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 MeasurementCollectionJob 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; - } - MeasurementCollectionJob measurementCollectionJob = (MeasurementCollectionJob) o; - return Objects.equals(this.id, measurementCollectionJob.id) && - Objects.equals(this.href, measurementCollectionJob.href) && - Objects.equals(this.consumingApplicationId, measurementCollectionJob.consumingApplicationId) && - Objects.equals(this.creationTime, measurementCollectionJob.creationTime) && - Objects.equals(this.jobId, measurementCollectionJob.jobId) && - Objects.equals(this.jobPriority, measurementCollectionJob.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementCollectionJob.lastModifiedTime) && - Objects.equals(this.outputFormat, measurementCollectionJob.outputFormat) && - Objects.equals(this.producingApplicationId, measurementCollectionJob.producingApplicationId) && - Objects.equals(this.adminState, measurementCollectionJob.adminState) && - Objects.equals(this.executionState, measurementCollectionJob.executionState) && - Objects.equals(this.fileTransferData, measurementCollectionJob.fileTransferData) && - Objects.equals(this.granularity, measurementCollectionJob.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementCollectionJob.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJob.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJob.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJob.performanceIndicatorSpecification) && - Objects.equals(this.reportingPeriod, measurementCollectionJob.reportingPeriod) && - Objects.equals(this.scheduleDefinition, measurementCollectionJob.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementCollectionJob.trackingRecord) && - Objects.equals(this.atBaseType, measurementCollectionJob.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementCollectionJob.atSchemaLocation) && - Objects.equals(this.atType, measurementCollectionJob.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + public MeasurementCollectionJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementCollectionJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJob granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementCollectionJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementCollectionJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementCollectionJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementCollectionJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementCollectionJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementCollectionJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementCollectionJob reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementCollectionJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementCollectionJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementCollectionJob 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 MeasurementCollectionJob 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 MeasurementCollectionJob 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; + } + MeasurementCollectionJob measurementCollectionJob = (MeasurementCollectionJob) o; + return Objects.equals(this.id, measurementCollectionJob.id) && + Objects.equals(this.href, measurementCollectionJob.href) && + Objects.equals(this.consumingApplicationId, measurementCollectionJob.consumingApplicationId) && + Objects.equals(this.creationTime, measurementCollectionJob.creationTime) && + Objects.equals(this.jobId, measurementCollectionJob.jobId) && + Objects.equals(this.jobPriority, measurementCollectionJob.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementCollectionJob.lastModifiedTime) && + Objects.equals(this.outputFormat, measurementCollectionJob.outputFormat) && + Objects.equals(this.producingApplicationId, measurementCollectionJob.producingApplicationId) && + Objects.equals(this.adminState, measurementCollectionJob.adminState) && + Objects.equals(this.executionState, measurementCollectionJob.executionState) && + Objects.equals(this.fileTransferData, measurementCollectionJob.fileTransferData) && + Objects.equals(this.granularity, measurementCollectionJob.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementCollectionJob.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJob.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJob.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJob.performanceIndicatorSpecification) && + Objects.equals(this.reportingPeriod, measurementCollectionJob.reportingPeriod) && + Objects.equals(this.scheduleDefinition, measurementCollectionJob.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementCollectionJob.trackingRecord) && + Objects.equals(this.atBaseType, measurementCollectionJob.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJob.atSchemaLocation) && + Objects.equals(this.atType, measurementCollectionJob.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJob {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java index 51201b5..8c49f06 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobAttributeValueChangeEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,305 +18,316 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobAttributeValueChangeEvent { - 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; - - private String fieldPath; - - private MeasurementCollectionJobAttributeValueChangeEventPayload event; - - public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("timeOcurred") - public OffsetDateTime getTimeOcurred() { - return timeOcurred; - } - - public void setTimeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - } - - public MeasurementCollectionJobAttributeValueChangeEvent fieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return this; - } - - /** - * The path identifying the object field concerned by this notification. - * @return fieldPath - */ - - @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fieldPath") - public String getFieldPath() { - return fieldPath; - } - - public void setFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - } - - public MeasurementCollectionJobAttributeValueChangeEvent event(MeasurementCollectionJobAttributeValueChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobAttributeValueChangeEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobAttributeValueChangeEventPayload event) { - this.event = event; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobAttributeValueChangeEvent measurementCollectionJobAttributeValueChangeEvent = (MeasurementCollectionJobAttributeValueChangeEvent) o; - return Objects.equals(this.eventId, measurementCollectionJobAttributeValueChangeEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobAttributeValueChangeEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobAttributeValueChangeEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobAttributeValueChangeEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobAttributeValueChangeEvent.domain) && - Objects.equals(this.title, measurementCollectionJobAttributeValueChangeEvent.title) && - Objects.equals(this.description, measurementCollectionJobAttributeValueChangeEvent.description) && - Objects.equals(this.priority, measurementCollectionJobAttributeValueChangeEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobAttributeValueChangeEvent.timeOcurred) && - Objects.equals(this.fieldPath, measurementCollectionJobAttributeValueChangeEvent.fieldPath) && - Objects.equals(this.event, measurementCollectionJobAttributeValueChangeEvent.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 MeasurementCollectionJobAttributeValueChangeEvent {\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(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } + 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; + + private String fieldPath; + + private MeasurementCollectionJobAttributeValueChangeEventPayload event; + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOcurred") + public OffsetDateTime getTimeOcurred() { + return timeOcurred; + } + + public void setTimeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + } + + public MeasurementCollectionJobAttributeValueChangeEvent fieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return this; + } + + /** + * The path identifying the object field concerned by this notification. + * + * @return fieldPath + */ + + @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fieldPath") + public String getFieldPath() { + return fieldPath; + } + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + + public MeasurementCollectionJobAttributeValueChangeEvent event(MeasurementCollectionJobAttributeValueChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobAttributeValueChangeEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobAttributeValueChangeEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobAttributeValueChangeEvent measurementCollectionJobAttributeValueChangeEvent = (MeasurementCollectionJobAttributeValueChangeEvent) o; + return Objects.equals(this.eventId, measurementCollectionJobAttributeValueChangeEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobAttributeValueChangeEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobAttributeValueChangeEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobAttributeValueChangeEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobAttributeValueChangeEvent.domain) && + Objects.equals(this.title, measurementCollectionJobAttributeValueChangeEvent.title) && + Objects.equals(this.description, measurementCollectionJobAttributeValueChangeEvent.description) && + Objects.equals(this.priority, measurementCollectionJobAttributeValueChangeEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobAttributeValueChangeEvent.timeOcurred) && + Objects.equals(this.fieldPath, measurementCollectionJobAttributeValueChangeEvent.fieldPath) && + Objects.equals(this.event, measurementCollectionJobAttributeValueChangeEvent.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 MeasurementCollectionJobAttributeValueChangeEvent {\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(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/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java index 5d4b35e..4aa1fbb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobAttributeValueChangeEventPayload { - private MeasurementCollectionJob measurementCollectionJob; + private MeasurementCollectionJob measurementCollectionJob; - public MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } + public MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } + /** + * Get measurementCollectionJob + * + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJobAttributeValueChangeEventPayload = (MeasurementCollectionJobAttributeValueChangeEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobAttributeValueChangeEventPayload.measurementCollectionJob); } - MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJobAttributeValueChangeEventPayload = (MeasurementCollectionJobAttributeValueChangeEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobAttributeValueChangeEventPayload.measurementCollectionJob); - } - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobAttributeValueChangeEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobAttributeValueChangeEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java index 46a9264..892fd64 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java @@ -1,37 +1,18 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href @@ -42,592 +23,615 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobCreate { - private String consumingApplicationId; + private String consumingApplicationId; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; - private String jobId; + private String jobId; - private Integer jobPriority; + private Integer jobPriority; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; - private String outputFormat; + private String outputFormat; - private String producingApplicationId; + private String producingApplicationId; - private AdministrativeState adminState; + private AdministrativeState adminState; - private ExecutionStateType executionState; + private ExecutionStateType executionState; - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - private Granularity granularity; + private Granularity granularity; - private MonitoredClassCriteria monitoredClassCriteria; + private MonitoredClassCriteria monitoredClassCriteria; - private MonitoredInstancesCriteria monitoredInstancesCriteria; + private MonitoredInstancesCriteria monitoredInstancesCriteria; - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - private ReportingPeriod reportingPeriod; + private ReportingPeriod reportingPeriod; - private ScheduleDefinition scheduleDefinition; + private ScheduleDefinition scheduleDefinition; - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - private String atBaseType; + private String atBaseType; - private URI atSchemaLocation; + private URI atSchemaLocation; + + private String atType; + + public MeasurementCollectionJobCreate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobCreate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } - private String atType; + public MeasurementCollectionJobCreate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementCollectionJobCreate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementCollectionJobCreate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementCollectionJobCreate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } - public MeasurementCollectionJobCreate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementCollectionJobCreate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobCreate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementCollectionJobCreate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementCollectionJobCreate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementCollectionJobCreate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementCollectionJobCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementCollectionJobCreate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public MeasurementCollectionJobCreate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementCollectionJobCreate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementCollectionJobCreate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementCollectionJobCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementCollectionJobCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobCreate granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementCollectionJobCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementCollectionJobCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementCollectionJobCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementCollectionJobCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementCollectionJobCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementCollectionJobCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementCollectionJobCreate reportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - return this; - } - - /** - * Get reportingPeriod - * @return reportingPeriod - */ - @Valid - @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("reportingPeriod") - public ReportingPeriod getReportingPeriod() { - return reportingPeriod; - } - - public void setReportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - } - - public MeasurementCollectionJobCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementCollectionJobCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementCollectionJobCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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; - } - MeasurementCollectionJobCreate measurementCollectionJobCreate = (MeasurementCollectionJobCreate) o; - return Objects.equals(this.consumingApplicationId, measurementCollectionJobCreate.consumingApplicationId) && - Objects.equals(this.creationTime, measurementCollectionJobCreate.creationTime) && - Objects.equals(this.jobId, measurementCollectionJobCreate.jobId) && - Objects.equals(this.jobPriority, measurementCollectionJobCreate.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementCollectionJobCreate.lastModifiedTime) && - Objects.equals(this.outputFormat, measurementCollectionJobCreate.outputFormat) && - Objects.equals(this.producingApplicationId, measurementCollectionJobCreate.producingApplicationId) && - Objects.equals(this.adminState, measurementCollectionJobCreate.adminState) && - Objects.equals(this.executionState, measurementCollectionJobCreate.executionState) && - Objects.equals(this.fileTransferData, measurementCollectionJobCreate.fileTransferData) && - Objects.equals(this.granularity, measurementCollectionJobCreate.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementCollectionJobCreate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobCreate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobCreate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobCreate.performanceIndicatorSpecification) && - Objects.equals(this.reportingPeriod, measurementCollectionJobCreate.reportingPeriod) && - Objects.equals(this.scheduleDefinition, measurementCollectionJobCreate.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementCollectionJobCreate.trackingRecord) && - Objects.equals(this.atBaseType, measurementCollectionJobCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementCollectionJobCreate.atSchemaLocation) && - Objects.equals(this.atType, measurementCollectionJobCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobCreate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementCollectionJobCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementCollectionJobCreate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJobCreate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementCollectionJobCreate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementCollectionJobCreate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementCollectionJobCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementCollectionJobCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJobCreate granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementCollectionJobCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementCollectionJobCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementCollectionJobCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementCollectionJobCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementCollectionJobCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementCollectionJobCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementCollectionJobCreate reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJobCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementCollectionJobCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementCollectionJobCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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; + } + MeasurementCollectionJobCreate measurementCollectionJobCreate = (MeasurementCollectionJobCreate) o; + return Objects.equals(this.consumingApplicationId, measurementCollectionJobCreate.consumingApplicationId) && + Objects.equals(this.creationTime, measurementCollectionJobCreate.creationTime) && + Objects.equals(this.jobId, measurementCollectionJobCreate.jobId) && + Objects.equals(this.jobPriority, measurementCollectionJobCreate.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementCollectionJobCreate.lastModifiedTime) && + Objects.equals(this.outputFormat, measurementCollectionJobCreate.outputFormat) && + Objects.equals(this.producingApplicationId, measurementCollectionJobCreate.producingApplicationId) && + Objects.equals(this.adminState, measurementCollectionJobCreate.adminState) && + Objects.equals(this.executionState, measurementCollectionJobCreate.executionState) && + Objects.equals(this.fileTransferData, measurementCollectionJobCreate.fileTransferData) && + Objects.equals(this.granularity, measurementCollectionJobCreate.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementCollectionJobCreate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobCreate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobCreate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobCreate.performanceIndicatorSpecification) && + Objects.equals(this.reportingPeriod, measurementCollectionJobCreate.reportingPeriod) && + Objects.equals(this.scheduleDefinition, measurementCollectionJobCreate.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementCollectionJobCreate.trackingRecord) && + Objects.equals(this.atBaseType, measurementCollectionJobCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobCreate.atSchemaLocation) && + Objects.equals(this.atType, measurementCollectionJobCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java index 83491e8..dfbb9bc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobCreateEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobCreateEvent { - private MeasurementCollectionJobCreateEventPayload 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 MeasurementCollectionJobCreateEvent event(MeasurementCollectionJobCreateEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobCreateEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobCreateEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobCreateEvent measurementCollectionJobCreateEvent = (MeasurementCollectionJobCreateEvent) o; - return Objects.equals(this.event, measurementCollectionJobCreateEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobCreateEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobCreateEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobCreateEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobCreateEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobCreateEvent.domain) && - Objects.equals(this.title, measurementCollectionJobCreateEvent.title) && - Objects.equals(this.description, measurementCollectionJobCreateEvent.description) && - Objects.equals(this.priority, measurementCollectionJobCreateEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobCreateEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobCreateEvent {\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 "); - } + private MeasurementCollectionJobCreateEventPayload 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 MeasurementCollectionJobCreateEvent event(MeasurementCollectionJobCreateEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobCreateEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobCreateEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobCreateEvent measurementCollectionJobCreateEvent = (MeasurementCollectionJobCreateEvent) o; + return Objects.equals(this.event, measurementCollectionJobCreateEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobCreateEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobCreateEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobCreateEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobCreateEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobCreateEvent.domain) && + Objects.equals(this.title, measurementCollectionJobCreateEvent.title) && + Objects.equals(this.description, measurementCollectionJobCreateEvent.description) && + Objects.equals(this.priority, measurementCollectionJobCreateEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobCreateEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreateEvent {\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/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java index 1549524..897a894 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobCreateEventPayload { - private MeasurementCollectionJob measurementCollectionJob; + private MeasurementCollectionJob measurementCollectionJob; - public MeasurementCollectionJobCreateEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } + public MeasurementCollectionJobCreateEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } + /** + * Get measurementCollectionJob + * + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobCreateEventPayload measurementCollectionJobCreateEventPayload = (MeasurementCollectionJobCreateEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobCreateEventPayload.measurementCollectionJob); } - MeasurementCollectionJobCreateEventPayload measurementCollectionJobCreateEventPayload = (MeasurementCollectionJobCreateEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobCreateEventPayload.measurementCollectionJob); - } - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobCreateEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreateEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java index 4c40363..5c1f10c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobDeleteEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobDeleteEvent { - private MeasurementCollectionJobDeleteEventPayload 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 MeasurementCollectionJobDeleteEvent event(MeasurementCollectionJobDeleteEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobDeleteEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobDeleteEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobDeleteEvent measurementCollectionJobDeleteEvent = (MeasurementCollectionJobDeleteEvent) o; - return Objects.equals(this.event, measurementCollectionJobDeleteEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobDeleteEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobDeleteEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobDeleteEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobDeleteEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobDeleteEvent.domain) && - Objects.equals(this.title, measurementCollectionJobDeleteEvent.title) && - Objects.equals(this.description, measurementCollectionJobDeleteEvent.description) && - Objects.equals(this.priority, measurementCollectionJobDeleteEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobDeleteEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobDeleteEvent {\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 "); - } + private MeasurementCollectionJobDeleteEventPayload 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 MeasurementCollectionJobDeleteEvent event(MeasurementCollectionJobDeleteEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobDeleteEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobDeleteEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobDeleteEvent measurementCollectionJobDeleteEvent = (MeasurementCollectionJobDeleteEvent) o; + return Objects.equals(this.event, measurementCollectionJobDeleteEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobDeleteEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobDeleteEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobDeleteEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobDeleteEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobDeleteEvent.domain) && + Objects.equals(this.title, measurementCollectionJobDeleteEvent.title) && + Objects.equals(this.description, measurementCollectionJobDeleteEvent.description) && + Objects.equals(this.priority, measurementCollectionJobDeleteEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobDeleteEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobDeleteEvent {\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/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java index 9ca4fbf..35da59c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobDeleteEventPayload { - private MeasurementCollectionJob measurementCollectionJob; + private MeasurementCollectionJob measurementCollectionJob; - public MeasurementCollectionJobDeleteEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } + public MeasurementCollectionJobDeleteEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } + /** + * Get measurementCollectionJob + * + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobDeleteEventPayload measurementCollectionJobDeleteEventPayload = (MeasurementCollectionJobDeleteEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobDeleteEventPayload.measurementCollectionJob); } - MeasurementCollectionJobDeleteEventPayload measurementCollectionJobDeleteEventPayload = (MeasurementCollectionJobDeleteEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobDeleteEventPayload.measurementCollectionJob); - } - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobDeleteEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobDeleteEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java index 9614e2c..aec8ca2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobExecutionStateChangeEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobExecutionStateChangeEvent { - private MeasurementCollectionJobExecutionStateChangeEventPayload 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 MeasurementCollectionJobExecutionStateChangeEvent event(MeasurementCollectionJobExecutionStateChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobExecutionStateChangeEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobExecutionStateChangeEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobExecutionStateChangeEvent measurementCollectionJobExecutionStateChangeEvent = (MeasurementCollectionJobExecutionStateChangeEvent) o; - return Objects.equals(this.event, measurementCollectionJobExecutionStateChangeEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobExecutionStateChangeEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobExecutionStateChangeEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobExecutionStateChangeEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobExecutionStateChangeEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobExecutionStateChangeEvent.domain) && - Objects.equals(this.title, measurementCollectionJobExecutionStateChangeEvent.title) && - Objects.equals(this.description, measurementCollectionJobExecutionStateChangeEvent.description) && - Objects.equals(this.priority, measurementCollectionJobExecutionStateChangeEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobExecutionStateChangeEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobExecutionStateChangeEvent {\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 "); - } + private MeasurementCollectionJobExecutionStateChangeEventPayload 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 MeasurementCollectionJobExecutionStateChangeEvent event(MeasurementCollectionJobExecutionStateChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobExecutionStateChangeEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobExecutionStateChangeEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobExecutionStateChangeEvent measurementCollectionJobExecutionStateChangeEvent = (MeasurementCollectionJobExecutionStateChangeEvent) o; + return Objects.equals(this.event, measurementCollectionJobExecutionStateChangeEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobExecutionStateChangeEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobExecutionStateChangeEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobExecutionStateChangeEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobExecutionStateChangeEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobExecutionStateChangeEvent.domain) && + Objects.equals(this.title, measurementCollectionJobExecutionStateChangeEvent.title) && + Objects.equals(this.description, measurementCollectionJobExecutionStateChangeEvent.description) && + Objects.equals(this.priority, measurementCollectionJobExecutionStateChangeEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobExecutionStateChangeEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobExecutionStateChangeEvent {\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/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java index 2863cc4..fff1402 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobExecutionStateChangeEventPayload { - private MeasurementCollectionJob measurementCollectionJob; + private MeasurementCollectionJob measurementCollectionJob; - public MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } + public MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } + /** + * Get measurementCollectionJob + * + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJobExecutionStateChangeEventPayload = (MeasurementCollectionJobExecutionStateChangeEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobExecutionStateChangeEventPayload.measurementCollectionJob); } - MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJobExecutionStateChangeEventPayload = (MeasurementCollectionJobExecutionStateChangeEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobExecutionStateChangeEventPayload.measurementCollectionJob); - } - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobExecutionStateChangeEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobExecutionStateChangeEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java index 35c7898..ef0ff2e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesPreparationErrorEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobFilesPreparationErrorEvent { - private MeasurementCollectionJobFilesPreparationErrorEventPayload 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 MeasurementCollectionJobFilesPreparationErrorEvent event(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobFilesPreparationErrorEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobFilesPreparationErrorEvent measurementCollectionJobFilesPreparationErrorEvent = (MeasurementCollectionJobFilesPreparationErrorEvent) o; - return Objects.equals(this.event, measurementCollectionJobFilesPreparationErrorEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobFilesPreparationErrorEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobFilesPreparationErrorEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobFilesPreparationErrorEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobFilesPreparationErrorEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobFilesPreparationErrorEvent.domain) && - Objects.equals(this.title, measurementCollectionJobFilesPreparationErrorEvent.title) && - Objects.equals(this.description, measurementCollectionJobFilesPreparationErrorEvent.description) && - Objects.equals(this.priority, measurementCollectionJobFilesPreparationErrorEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobFilesPreparationErrorEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesPreparationErrorEvent {\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 "); - } + private MeasurementCollectionJobFilesPreparationErrorEventPayload 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 MeasurementCollectionJobFilesPreparationErrorEvent event(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobFilesPreparationErrorEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobFilesPreparationErrorEvent measurementCollectionJobFilesPreparationErrorEvent = (MeasurementCollectionJobFilesPreparationErrorEvent) o; + return Objects.equals(this.event, measurementCollectionJobFilesPreparationErrorEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobFilesPreparationErrorEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobFilesPreparationErrorEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobFilesPreparationErrorEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobFilesPreparationErrorEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobFilesPreparationErrorEvent.domain) && + Objects.equals(this.title, measurementCollectionJobFilesPreparationErrorEvent.title) && + Objects.equals(this.description, measurementCollectionJobFilesPreparationErrorEvent.description) && + Objects.equals(this.priority, measurementCollectionJobFilesPreparationErrorEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobFilesPreparationErrorEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesPreparationErrorEvent {\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/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java index 2cd2db5..af745fa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobFilesPreparationErrorEventPayload { - private MeasurementCollectionJob measurementCollectionJob; + private MeasurementCollectionJob measurementCollectionJob; - public MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } + public MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } + /** + * Get measurementCollectionJob + * + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJobFilesPreparationErrorEventPayload = (MeasurementCollectionJobFilesPreparationErrorEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesPreparationErrorEventPayload.measurementCollectionJob); } - MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJobFilesPreparationErrorEventPayload = (MeasurementCollectionJobFilesPreparationErrorEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesPreparationErrorEventPayload.measurementCollectionJob); - } - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesPreparationErrorEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesPreparationErrorEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java index f39af5c..df5911b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesReadyEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobFilesReadyEvent { - private MeasurementCollectionJobFilesReadyEventPayload 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 MeasurementCollectionJobFilesReadyEvent event(MeasurementCollectionJobFilesReadyEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobFilesReadyEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobFilesReadyEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobFilesReadyEvent measurementCollectionJobFilesReadyEvent = (MeasurementCollectionJobFilesReadyEvent) o; - return Objects.equals(this.event, measurementCollectionJobFilesReadyEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobFilesReadyEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobFilesReadyEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobFilesReadyEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobFilesReadyEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobFilesReadyEvent.domain) && - Objects.equals(this.title, measurementCollectionJobFilesReadyEvent.title) && - Objects.equals(this.description, measurementCollectionJobFilesReadyEvent.description) && - Objects.equals(this.priority, measurementCollectionJobFilesReadyEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobFilesReadyEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesReadyEvent {\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 "); - } + private MeasurementCollectionJobFilesReadyEventPayload 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 MeasurementCollectionJobFilesReadyEvent event(MeasurementCollectionJobFilesReadyEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobFilesReadyEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobFilesReadyEventPayload event) { + this.event = event; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + MeasurementCollectionJobFilesReadyEvent measurementCollectionJobFilesReadyEvent = (MeasurementCollectionJobFilesReadyEvent) o; + return Objects.equals(this.event, measurementCollectionJobFilesReadyEvent.event) && + Objects.equals(this.eventId, measurementCollectionJobFilesReadyEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobFilesReadyEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobFilesReadyEvent.eventType) && + Objects.equals(this.correlationId, measurementCollectionJobFilesReadyEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobFilesReadyEvent.domain) && + Objects.equals(this.title, measurementCollectionJobFilesReadyEvent.title) && + Objects.equals(this.description, measurementCollectionJobFilesReadyEvent.description) && + Objects.equals(this.priority, measurementCollectionJobFilesReadyEvent.priority) && + Objects.equals(this.timeOcurred, measurementCollectionJobFilesReadyEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesReadyEvent {\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/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java index 76452aa..0b3f745 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobFilesReadyEventPayload { - private MeasurementCollectionJob measurementCollectionJob; + private MeasurementCollectionJob measurementCollectionJob; - public MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } + public MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } + /** + * Get measurementCollectionJob + * + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJobFilesReadyEventPayload = (MeasurementCollectionJobFilesReadyEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesReadyEventPayload.measurementCollectionJob); } - MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJobFilesReadyEventPayload = (MeasurementCollectionJobFilesReadyEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesReadyEventPayload.measurementCollectionJob); - } - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesReadyEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesReadyEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java index b4d56ce..60aaa19 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java @@ -1,37 +1,18 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href @@ -42,592 +23,615 @@ import javax.annotation.Generated; @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 MeasurementCollectionJobUpdate { - private String consumingApplicationId; + private String consumingApplicationId; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; - private String jobId; + private String jobId; - private Integer jobPriority; + private Integer jobPriority; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; - private String outputFormat; + private String outputFormat; - private String producingApplicationId; + private String producingApplicationId; - private AdministrativeState adminState; + private AdministrativeState adminState; - private ExecutionStateType executionState; + private ExecutionStateType executionState; - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - private Granularity granularity; + private Granularity granularity; - private MonitoredClassCriteria monitoredClassCriteria; + private MonitoredClassCriteria monitoredClassCriteria; - private MonitoredInstancesCriteria monitoredInstancesCriteria; + private MonitoredInstancesCriteria monitoredInstancesCriteria; - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - private ReportingPeriod reportingPeriod; + private ReportingPeriod reportingPeriod; - private ScheduleDefinition scheduleDefinition; + private ScheduleDefinition scheduleDefinition; - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - private String atBaseType; + private String atBaseType; - private URI atSchemaLocation; + private URI atSchemaLocation; + + private String atType; + + public MeasurementCollectionJobUpdate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobUpdate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } - private String atType; + public MeasurementCollectionJobUpdate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementCollectionJobUpdate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementCollectionJobUpdate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementCollectionJobUpdate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } - public MeasurementCollectionJobUpdate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementCollectionJobUpdate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobUpdate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementCollectionJobUpdate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementCollectionJobUpdate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementCollectionJobUpdate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementCollectionJobUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementCollectionJobUpdate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public MeasurementCollectionJobUpdate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementCollectionJobUpdate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementCollectionJobUpdate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementCollectionJobUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementCollectionJobUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobUpdate granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementCollectionJobUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementCollectionJobUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementCollectionJobUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementCollectionJobUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementCollectionJobUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementCollectionJobUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementCollectionJobUpdate reportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - return this; - } - - /** - * Get reportingPeriod - * @return reportingPeriod - */ - @Valid - @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("reportingPeriod") - public ReportingPeriod getReportingPeriod() { - return reportingPeriod; - } - - public void setReportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - } - - public MeasurementCollectionJobUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementCollectionJobUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementCollectionJobUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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; - } - MeasurementCollectionJobUpdate measurementCollectionJobUpdate = (MeasurementCollectionJobUpdate) o; - return Objects.equals(this.consumingApplicationId, measurementCollectionJobUpdate.consumingApplicationId) && - Objects.equals(this.creationTime, measurementCollectionJobUpdate.creationTime) && - Objects.equals(this.jobId, measurementCollectionJobUpdate.jobId) && - Objects.equals(this.jobPriority, measurementCollectionJobUpdate.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementCollectionJobUpdate.lastModifiedTime) && - Objects.equals(this.outputFormat, measurementCollectionJobUpdate.outputFormat) && - Objects.equals(this.producingApplicationId, measurementCollectionJobUpdate.producingApplicationId) && - Objects.equals(this.adminState, measurementCollectionJobUpdate.adminState) && - Objects.equals(this.executionState, measurementCollectionJobUpdate.executionState) && - Objects.equals(this.fileTransferData, measurementCollectionJobUpdate.fileTransferData) && - Objects.equals(this.granularity, measurementCollectionJobUpdate.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementCollectionJobUpdate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobUpdate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobUpdate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobUpdate.performanceIndicatorSpecification) && - Objects.equals(this.reportingPeriod, measurementCollectionJobUpdate.reportingPeriod) && - Objects.equals(this.scheduleDefinition, measurementCollectionJobUpdate.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementCollectionJobUpdate.trackingRecord) && - Objects.equals(this.atBaseType, measurementCollectionJobUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementCollectionJobUpdate.atSchemaLocation) && - Objects.equals(this.atType, measurementCollectionJobUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobUpdate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementCollectionJobUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementCollectionJobUpdate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJobUpdate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementCollectionJobUpdate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementCollectionJobUpdate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementCollectionJobUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementCollectionJobUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementCollectionJobUpdate granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementCollectionJobUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementCollectionJobUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementCollectionJobUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementCollectionJobUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementCollectionJobUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementCollectionJobUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementCollectionJobUpdate reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJobUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementCollectionJobUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementCollectionJobUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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; + } + MeasurementCollectionJobUpdate measurementCollectionJobUpdate = (MeasurementCollectionJobUpdate) o; + return Objects.equals(this.consumingApplicationId, measurementCollectionJobUpdate.consumingApplicationId) && + Objects.equals(this.creationTime, measurementCollectionJobUpdate.creationTime) && + Objects.equals(this.jobId, measurementCollectionJobUpdate.jobId) && + Objects.equals(this.jobPriority, measurementCollectionJobUpdate.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementCollectionJobUpdate.lastModifiedTime) && + Objects.equals(this.outputFormat, measurementCollectionJobUpdate.outputFormat) && + Objects.equals(this.producingApplicationId, measurementCollectionJobUpdate.producingApplicationId) && + Objects.equals(this.adminState, measurementCollectionJobUpdate.adminState) && + Objects.equals(this.executionState, measurementCollectionJobUpdate.executionState) && + Objects.equals(this.fileTransferData, measurementCollectionJobUpdate.fileTransferData) && + Objects.equals(this.granularity, measurementCollectionJobUpdate.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementCollectionJobUpdate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobUpdate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobUpdate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobUpdate.performanceIndicatorSpecification) && + Objects.equals(this.reportingPeriod, measurementCollectionJobUpdate.reportingPeriod) && + Objects.equals(this.scheduleDefinition, measurementCollectionJobUpdate.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementCollectionJobUpdate.trackingRecord) && + Objects.equals(this.atBaseType, measurementCollectionJobUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobUpdate.atSchemaLocation) && + Objects.equals(this.atType, measurementCollectionJobUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobUpdate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index 74bdcb7..42f3b2e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -1,35 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * A PM measurement job is the administrative entity defined by a client application to perform a periodic activity related to PM data. The PM activities may be production of measurements, collection of measurements or PM objective monitoring (scheduled evaluation of thresholds). @@ -39,592 +21,615 @@ import javax.annotation.Generated; @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 MeasurementJob { - private String id; + private String id; - private URI href; + private URI href; - private String consumingApplicationId; + private String consumingApplicationId; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; - private String jobId; + private String jobId; - private Integer jobPriority; + private Integer jobPriority; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; - private String producingApplicationId; + private String producingApplicationId; - private AdministrativeState adminState; + private AdministrativeState adminState; - private ExecutionStateType executionState; + private ExecutionStateType executionState; - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - private Granularity granularity; + private Granularity granularity; - private MonitoredClassCriteria monitoredClassCriteria; + private MonitoredClassCriteria monitoredClassCriteria; - private MonitoredInstancesCriteria monitoredInstancesCriteria; + private MonitoredInstancesCriteria monitoredInstancesCriteria; - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - private ScheduleDefinition scheduleDefinition; + private ScheduleDefinition scheduleDefinition; - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - private String atBaseType; + private String atBaseType; - private URI atSchemaLocation; + private URI atSchemaLocation; + + private String atType; + + public MeasurementJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementJob(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } - private String atType; + public MeasurementJob 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 MeasurementJob 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 MeasurementJob consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } - public MeasurementJob() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementJob(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementJob 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 MeasurementJob 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 MeasurementJob consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementJob creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementJob jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementJob jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementJob producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementJob adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementJob executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementJob granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementJob 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 MeasurementJob 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 MeasurementJob 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; - } - MeasurementJob measurementJob = (MeasurementJob) o; - return Objects.equals(this.id, measurementJob.id) && - Objects.equals(this.href, measurementJob.href) && - Objects.equals(this.consumingApplicationId, measurementJob.consumingApplicationId) && - Objects.equals(this.creationTime, measurementJob.creationTime) && - Objects.equals(this.jobId, measurementJob.jobId) && - Objects.equals(this.jobPriority, measurementJob.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementJob.lastModifiedTime) && - Objects.equals(this.producingApplicationId, measurementJob.producingApplicationId) && - Objects.equals(this.adminState, measurementJob.adminState) && - Objects.equals(this.executionState, measurementJob.executionState) && - Objects.equals(this.fileTransferData, measurementJob.fileTransferData) && - Objects.equals(this.granularity, measurementJob.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementJob.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementJob.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementJob.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementJob.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, measurementJob.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementJob.trackingRecord) && - Objects.equals(this.atBaseType, measurementJob.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementJob.atSchemaLocation) && - Objects.equals(this.atType, measurementJob.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public MeasurementJob jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public MeasurementJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public MeasurementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public MeasurementJob producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public MeasurementJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public MeasurementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public MeasurementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public MeasurementJob granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public MeasurementJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public MeasurementJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementJob 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 MeasurementJob 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 MeasurementJob 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; + } + MeasurementJob measurementJob = (MeasurementJob) o; + return Objects.equals(this.id, measurementJob.id) && + Objects.equals(this.href, measurementJob.href) && + Objects.equals(this.consumingApplicationId, measurementJob.consumingApplicationId) && + Objects.equals(this.creationTime, measurementJob.creationTime) && + Objects.equals(this.jobId, measurementJob.jobId) && + Objects.equals(this.jobPriority, measurementJob.jobPriority) && + Objects.equals(this.lastModifiedTime, measurementJob.lastModifiedTime) && + Objects.equals(this.producingApplicationId, measurementJob.producingApplicationId) && + Objects.equals(this.adminState, measurementJob.adminState) && + Objects.equals(this.executionState, measurementJob.executionState) && + Objects.equals(this.fileTransferData, measurementJob.fileTransferData) && + Objects.equals(this.granularity, measurementJob.granularity) && + Objects.equals(this.monitoredClassCriteria, measurementJob.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, measurementJob.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementJob.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementJob.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, measurementJob.scheduleDefinition) && + Objects.equals(this.trackingRecord, measurementJob.trackingRecord) && + Objects.equals(this.atBaseType, measurementJob.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementJob.atSchemaLocation) && + Objects.equals(this.atType, measurementJob.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementJob {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index 29a99f9..b283c7d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -1,19 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * Specifies a monitored object class (a string) in conjunction with a filter object. @@ -23,159 +17,164 @@ import javax.annotation.Generated; @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 MonitoredClassCriteria { - private String monitoredObjectClass; - - private String objectInstanceFilter; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MonitoredClassCriteria monitoredObjectClass(String monitoredObjectClass) { - this.monitoredObjectClass = monitoredObjectClass; - return this; - } - - /** - * A monitored object class for specifying the set of instances that are referenced by a PM query. - * @return monitoredObjectClass - */ - - @Schema(name = "monitoredObjectClass", description = "A monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredObjectClass") - public String getMonitoredObjectClass() { - return monitoredObjectClass; - } - - public void setMonitoredObjectClass(String monitoredObjectClass) { - this.monitoredObjectClass = monitoredObjectClass; - } - - public MonitoredClassCriteria objectInstanceFilter(String objectInstanceFilter) { - this.objectInstanceFilter = objectInstanceFilter; - return this; - } - - /** - * A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query. - * @return objectInstanceFilter - */ - - @Schema(name = "objectInstanceFilter", description = "A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("objectInstanceFilter") - public String getObjectInstanceFilter() { - return objectInstanceFilter; - } - - public void setObjectInstanceFilter(String objectInstanceFilter) { - this.objectInstanceFilter = objectInstanceFilter; - } - - public MonitoredClassCriteria 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 MonitoredClassCriteria 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 MonitoredClassCriteria 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; - } - MonitoredClassCriteria monitoredClassCriteria = (MonitoredClassCriteria) o; - return Objects.equals(this.monitoredObjectClass, monitoredClassCriteria.monitoredObjectClass) && - Objects.equals(this.objectInstanceFilter, monitoredClassCriteria.objectInstanceFilter) && - Objects.equals(this.atBaseType, monitoredClassCriteria.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredClassCriteria.atSchemaLocation) && - Objects.equals(this.atType, monitoredClassCriteria.atType); - } - - @Override - public int hashCode() { - return Objects.hash(monitoredObjectClass, objectInstanceFilter, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MonitoredClassCriteria {\n"); - sb.append(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); - sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).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 "); - } + private String monitoredObjectClass; + + private String objectInstanceFilter; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MonitoredClassCriteria monitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + return this; + } + + /** + * A monitored object class for specifying the set of instances that are referenced by a PM query. + * + * @return monitoredObjectClass + */ + + @Schema(name = "monitoredObjectClass", description = "A monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredObjectClass") + public String getMonitoredObjectClass() { + return monitoredObjectClass; + } + + public void setMonitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + } + + public MonitoredClassCriteria objectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + return this; + } + + /** + * A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query. + * + * @return objectInstanceFilter + */ + + @Schema(name = "objectInstanceFilter", description = "A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("objectInstanceFilter") + public String getObjectInstanceFilter() { + return objectInstanceFilter; + } + + public void setObjectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + } + + public MonitoredClassCriteria 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 MonitoredClassCriteria 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 MonitoredClassCriteria 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; + } + MonitoredClassCriteria monitoredClassCriteria = (MonitoredClassCriteria) o; + return Objects.equals(this.monitoredObjectClass, monitoredClassCriteria.monitoredObjectClass) && + Objects.equals(this.objectInstanceFilter, monitoredClassCriteria.objectInstanceFilter) && + Objects.equals(this.atBaseType, monitoredClassCriteria.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredClassCriteria.atSchemaLocation) && + Objects.equals(this.atType, monitoredClassCriteria.atType); + } + + @Override + public int hashCode() { + return Objects.hash(monitoredObjectClass, objectInstanceFilter, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredClassCriteria {\n"); + sb.append(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); + sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).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/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index 3e470d5..e55cd48 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -1,19 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * List of monitored instances @@ -23,111 +17,114 @@ import javax.annotation.Generated; @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 MonitoredInstancesCriteria { - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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; + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MonitoredInstancesCriteria atBaseType(String atBaseType) { + this.atBaseType = atBaseType; + return this; } - if (o == null || getClass() != o.getClass()) { - return false; + + /** + * 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 MonitoredInstancesCriteria atSchemaLocation(URI atSchemaLocation) { + this.atSchemaLocation = atSchemaLocation; + return this; } - MonitoredInstancesCriteria monitoredInstancesCriteria = (MonitoredInstancesCriteria) o; - return Objects.equals(this.atBaseType, monitoredInstancesCriteria.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredInstancesCriteria.atSchemaLocation) && - Objects.equals(this.atType, monitoredInstancesCriteria.atType); - } - - @Override - public int hashCode() { - return Objects.hash(atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MonitoredInstancesCriteria {\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"; + + /** + * 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 MonitoredInstancesCriteria 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; + } + MonitoredInstancesCriteria monitoredInstancesCriteria = (MonitoredInstancesCriteria) o; + return Objects.equals(this.atBaseType, monitoredInstancesCriteria.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredInstancesCriteria.atSchemaLocation) && + Objects.equals(this.atType, monitoredInstancesCriteria.atType); + } + + @Override + public int hashCode() { + return Objects.hash(atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredInstancesCriteria {\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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index f91b2cd..65ea5e5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -1,23 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrence; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MonthlyScheduleDayOfWeekDefinition @@ -26,168 +18,173 @@ import javax.annotation.Generated; @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 MonthlyScheduleDayOfWeekDefinition { - private String recurringDaySequence; - - @Valid - private List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MonthlyScheduleDayOfWeekDefinition recurringDaySequence(String recurringDaySequence) { - this.recurringDaySequence = recurringDaySequence; - return this; - } - - /** - * Get recurringDaySequence - * @return recurringDaySequence - */ - - @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("recurringDaySequence") - public String getRecurringDaySequence() { - return recurringDaySequence; - } - - public void setRecurringDaySequence(String recurringDaySequence) { - this.recurringDaySequence = recurringDaySequence; - } - - public MonthlyScheduleDayOfWeekDefinition dayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { - this.dayOfMonthRecurrence = dayOfMonthRecurrence; - return this; - } - - public MonthlyScheduleDayOfWeekDefinition addDayOfMonthRecurrenceItem(DayOfMonthRecurrence dayOfMonthRecurrenceItem) { - if (this.dayOfMonthRecurrence == null) { - this.dayOfMonthRecurrence = new ArrayList<>(); - } - this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); - return this; - } - - /** - * Get dayOfMonthRecurrence - * @return dayOfMonthRecurrence - */ - @Valid - @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("dayOfMonthRecurrence") - public List<@Valid DayOfMonthRecurrence> getDayOfMonthRecurrence() { - return dayOfMonthRecurrence; - } - - public void setDayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { - this.dayOfMonthRecurrence = dayOfMonthRecurrence; - } - - public MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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; - } - MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition = (MonthlyScheduleDayOfWeekDefinition) o; - return Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinition.recurringDaySequence) && - Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinition.dayOfMonthRecurrence) && - Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinition.atBaseType) && - Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinition.atSchemaLocation) && - Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinition.atType); - } - - @Override - public int hashCode() { - return Objects.hash(recurringDaySequence, dayOfMonthRecurrence, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MonthlyScheduleDayOfWeekDefinition {\n"); - sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); - sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).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 "); - } + private String recurringDaySequence; + + @Valid + private List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public MonthlyScheduleDayOfWeekDefinition recurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + return this; + } + + /** + * Get recurringDaySequence + * + * @return recurringDaySequence + */ + + @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringDaySequence") + public String getRecurringDaySequence() { + return recurringDaySequence; + } + + public void setRecurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + } + + public MonthlyScheduleDayOfWeekDefinition dayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + return this; + } + + public MonthlyScheduleDayOfWeekDefinition addDayOfMonthRecurrenceItem(DayOfMonthRecurrence dayOfMonthRecurrenceItem) { + if (this.dayOfMonthRecurrence == null) { + this.dayOfMonthRecurrence = new ArrayList<>(); + } + this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); + return this; + } + + /** + * Get dayOfMonthRecurrence + * + * @return dayOfMonthRecurrence + */ + @Valid + @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dayOfMonthRecurrence") + public List<@Valid DayOfMonthRecurrence> getDayOfMonthRecurrence() { + return dayOfMonthRecurrence; + } + + public void setDayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + } + + public MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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; + } + MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition = (MonthlyScheduleDayOfWeekDefinition) o; + return Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinition.recurringDaySequence) && + Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinition.dayOfMonthRecurrence) && + Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinition.atBaseType) && + Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinition.atSchemaLocation) && + Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinition.atType); + } + + @Override + public int hashCode() { + return Objects.hash(recurringDaySequence, dayOfMonthRecurrence, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyScheduleDayOfWeekDefinition {\n"); + sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); + sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).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/pm628/model/OnDemandCollection.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java index 12e8f3c..ac4401a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java @@ -1,36 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * OnDemandCollection @@ -39,640 +20,665 @@ import javax.annotation.Generated; @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 OnDemandCollection { - private String id; + private String id; + + private URI href; + + private String consumingApplicationId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private String jobId; + + private Integer jobPriority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + private String outputFormat; + + private String producingApplicationId; + + private AdministrativeState adminState; + + private TimePeriod collectionPeriod; + + private ExecutionStateType executionState; + + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + + private Granularity granulatiry; + + private MonitoredClassCriteria monitoredClassCriteria; + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + private ScheduleDefinition scheduleDefinition; + + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public OnDemandCollection() { + super(); + } + + /** + * Constructor with only required parameters + */ + public OnDemandCollection(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollection id(String id) { + this.id = id; + return this; + } + + /** + * unique identifier + * + * @return id + */ - private URI href; + @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } - private String consumingApplicationId; + public void setId(String id) { + this.id = id; + } - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + public OnDemandCollection href(URI href) { + this.href = href; + return this; + } - private String jobId; + /** + * Hyperlink reference + * + * @return href + */ + @Valid + @Schema(name = "href", description = "Hyperlink reference", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public URI getHref() { + return href; + } - private Integer jobPriority; + public void setHref(URI href) { + this.href = href; + } - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + public OnDemandCollection consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } - private String outputFormat; + /** + * Get consumingApplicationId + * + * @return consumingApplicationId + */ - private String producingApplicationId; + @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } - private AdministrativeState adminState; + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } - private TimePeriod collectionPeriod; + public OnDemandCollection creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } - private ExecutionStateType executionState; + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } - private Granularity granulatiry; + public OnDemandCollection jobId(String jobId) { + this.jobId = jobId; + return this; + } - private MonitoredClassCriteria monitoredClassCriteria; + /** + * The ID of the management job. + * + * @return jobId + */ - private MonitoredInstancesCriteria monitoredInstancesCriteria; + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + public void setJobId(String jobId) { + this.jobId = jobId; + } - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + public OnDemandCollection jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } - private ScheduleDefinition scheduleDefinition; + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } - private String atBaseType; + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } - private URI atSchemaLocation; + public OnDemandCollection lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } - private String atType; + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } - public OnDemandCollection() { - super(); - } + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public OnDemandCollection outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } - /** - * Constructor with only required parameters - */ - public OnDemandCollection(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } + /** + * Get outputFormat + * + * @return outputFormat + */ - public OnDemandCollection id(String id) { - this.id = id; - return this; - } + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public OnDemandCollection producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * Get producingApplicationId + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public OnDemandCollection adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public OnDemandCollection collectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + return this; + } + + /** + * Get collectionPeriod + * + * @return collectionPeriod + */ + @Valid + @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionPeriod") + public TimePeriod getCollectionPeriod() { + return collectionPeriod; + } + + public void setCollectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + } - /** - * 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 OnDemandCollection 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 OnDemandCollection consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * Get consumingApplicationId - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public OnDemandCollection creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public OnDemandCollection jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public OnDemandCollection jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public OnDemandCollection lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public OnDemandCollection outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public OnDemandCollection producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * Get producingApplicationId - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public OnDemandCollection adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public OnDemandCollection collectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - return this; - } - - /** - * Get collectionPeriod - * @return collectionPeriod - */ - @Valid - @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionPeriod") - public TimePeriod getCollectionPeriod() { - return collectionPeriod; - } - - public void setCollectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - } - - public OnDemandCollection executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public OnDemandCollection fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public OnDemandCollection addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollection granulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - return this; - } - - /** - * Get granulatiry - * @return granulatiry - */ - @Valid - @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granulatiry") - public Granularity getGranulatiry() { - return granulatiry; - } - - public void setGranulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - } - - public OnDemandCollection monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public OnDemandCollection monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public OnDemandCollection performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public OnDemandCollection addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public OnDemandCollection performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public OnDemandCollection addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public OnDemandCollection scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public OnDemandCollection trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public OnDemandCollection addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public OnDemandCollection 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 OnDemandCollection 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 OnDemandCollection 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; - } - OnDemandCollection onDemandCollection = (OnDemandCollection) o; - return Objects.equals(this.id, onDemandCollection.id) && - Objects.equals(this.href, onDemandCollection.href) && - Objects.equals(this.consumingApplicationId, onDemandCollection.consumingApplicationId) && - Objects.equals(this.creationTime, onDemandCollection.creationTime) && - Objects.equals(this.jobId, onDemandCollection.jobId) && - Objects.equals(this.jobPriority, onDemandCollection.jobPriority) && - Objects.equals(this.lastModifiedTime, onDemandCollection.lastModifiedTime) && - Objects.equals(this.outputFormat, onDemandCollection.outputFormat) && - Objects.equals(this.producingApplicationId, onDemandCollection.producingApplicationId) && - Objects.equals(this.adminState, onDemandCollection.adminState) && - Objects.equals(this.collectionPeriod, onDemandCollection.collectionPeriod) && - Objects.equals(this.executionState, onDemandCollection.executionState) && - Objects.equals(this.fileTransferData, onDemandCollection.fileTransferData) && - Objects.equals(this.granulatiry, onDemandCollection.granulatiry) && - Objects.equals(this.monitoredClassCriteria, onDemandCollection.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, onDemandCollection.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollection.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, onDemandCollection.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, onDemandCollection.scheduleDefinition) && - Objects.equals(this.trackingRecord, onDemandCollection.trackingRecord) && - Objects.equals(this.atBaseType, onDemandCollection.atBaseType) && - Objects.equals(this.atSchemaLocation, onDemandCollection.atSchemaLocation) && - Objects.equals(this.atType, onDemandCollection.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollection {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + public OnDemandCollection executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public OnDemandCollection fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public OnDemandCollection addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollection granulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + return this; + } + + /** + * Get granulatiry + * + * @return granulatiry + */ + @Valid + @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granulatiry") + public Granularity getGranulatiry() { + return granulatiry; + } + + public void setGranulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + } + + public OnDemandCollection monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public OnDemandCollection monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public OnDemandCollection performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public OnDemandCollection addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public OnDemandCollection performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public OnDemandCollection addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public OnDemandCollection scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public OnDemandCollection trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public OnDemandCollection addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public OnDemandCollection 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 OnDemandCollection 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 OnDemandCollection 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; + } + OnDemandCollection onDemandCollection = (OnDemandCollection) o; + return Objects.equals(this.id, onDemandCollection.id) && + Objects.equals(this.href, onDemandCollection.href) && + Objects.equals(this.consumingApplicationId, onDemandCollection.consumingApplicationId) && + Objects.equals(this.creationTime, onDemandCollection.creationTime) && + Objects.equals(this.jobId, onDemandCollection.jobId) && + Objects.equals(this.jobPriority, onDemandCollection.jobPriority) && + Objects.equals(this.lastModifiedTime, onDemandCollection.lastModifiedTime) && + Objects.equals(this.outputFormat, onDemandCollection.outputFormat) && + Objects.equals(this.producingApplicationId, onDemandCollection.producingApplicationId) && + Objects.equals(this.adminState, onDemandCollection.adminState) && + Objects.equals(this.collectionPeriod, onDemandCollection.collectionPeriod) && + Objects.equals(this.executionState, onDemandCollection.executionState) && + Objects.equals(this.fileTransferData, onDemandCollection.fileTransferData) && + Objects.equals(this.granulatiry, onDemandCollection.granulatiry) && + Objects.equals(this.monitoredClassCriteria, onDemandCollection.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, onDemandCollection.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollection.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, onDemandCollection.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, onDemandCollection.scheduleDefinition) && + Objects.equals(this.trackingRecord, onDemandCollection.trackingRecord) && + Objects.equals(this.atBaseType, onDemandCollection.atBaseType) && + Objects.equals(this.atSchemaLocation, onDemandCollection.atSchemaLocation) && + Objects.equals(this.atType, onDemandCollection.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollection {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java index a8e2e73..1298c46 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.OnDemandCollectionAttributeValueChangeEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,305 +18,316 @@ import javax.annotation.Generated; @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 OnDemandCollectionAttributeValueChangeEvent { - 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; - - private String fieldPath; - - private OnDemandCollectionAttributeValueChangeEventPayload event; - - public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("timeOcurred") - public OffsetDateTime getTimeOcurred() { - return timeOcurred; - } - - public void setTimeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - } - - public OnDemandCollectionAttributeValueChangeEvent fieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return this; - } - - /** - * The path identifying the object field concerned by this notification. - * @return fieldPath - */ - - @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fieldPath") - public String getFieldPath() { - return fieldPath; - } - - public void setFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - } - - public OnDemandCollectionAttributeValueChangeEvent event(OnDemandCollectionAttributeValueChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionAttributeValueChangeEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionAttributeValueChangeEventPayload event) { - this.event = event; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionAttributeValueChangeEvent onDemandCollectionAttributeValueChangeEvent = (OnDemandCollectionAttributeValueChangeEvent) o; - return Objects.equals(this.eventId, onDemandCollectionAttributeValueChangeEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionAttributeValueChangeEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionAttributeValueChangeEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionAttributeValueChangeEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionAttributeValueChangeEvent.domain) && - Objects.equals(this.title, onDemandCollectionAttributeValueChangeEvent.title) && - Objects.equals(this.description, onDemandCollectionAttributeValueChangeEvent.description) && - Objects.equals(this.priority, onDemandCollectionAttributeValueChangeEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionAttributeValueChangeEvent.timeOcurred) && - Objects.equals(this.fieldPath, onDemandCollectionAttributeValueChangeEvent.fieldPath) && - Objects.equals(this.event, onDemandCollectionAttributeValueChangeEvent.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 OnDemandCollectionAttributeValueChangeEvent {\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(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } + 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; + + private String fieldPath; + + private OnDemandCollectionAttributeValueChangeEventPayload event; + + public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOcurred") + public OffsetDateTime getTimeOcurred() { + return timeOcurred; + } + + public void setTimeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + } + + public OnDemandCollectionAttributeValueChangeEvent fieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return this; + } + + /** + * The path identifying the object field concerned by this notification. + * + * @return fieldPath + */ + + @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fieldPath") + public String getFieldPath() { + return fieldPath; + } + + public void setFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + } + + public OnDemandCollectionAttributeValueChangeEvent event(OnDemandCollectionAttributeValueChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionAttributeValueChangeEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionAttributeValueChangeEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionAttributeValueChangeEvent onDemandCollectionAttributeValueChangeEvent = (OnDemandCollectionAttributeValueChangeEvent) o; + return Objects.equals(this.eventId, onDemandCollectionAttributeValueChangeEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionAttributeValueChangeEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionAttributeValueChangeEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionAttributeValueChangeEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionAttributeValueChangeEvent.domain) && + Objects.equals(this.title, onDemandCollectionAttributeValueChangeEvent.title) && + Objects.equals(this.description, onDemandCollectionAttributeValueChangeEvent.description) && + Objects.equals(this.priority, onDemandCollectionAttributeValueChangeEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionAttributeValueChangeEvent.timeOcurred) && + Objects.equals(this.fieldPath, onDemandCollectionAttributeValueChangeEvent.fieldPath) && + Objects.equals(this.event, onDemandCollectionAttributeValueChangeEvent.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 OnDemandCollectionAttributeValueChangeEvent {\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(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/OnDemandCollectionAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java index d9d032b..1640784 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.OnDemandCollection; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 OnDemandCollectionAttributeValueChangeEventPayload { - private OnDemandCollection onDemandCollection; + private OnDemandCollection onDemandCollection; - public OnDemandCollectionAttributeValueChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } + public OnDemandCollectionAttributeValueChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } + /** + * Get onDemandCollection + * + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionAttributeValueChangeEventPayload onDemandCollectionAttributeValueChangeEventPayload = (OnDemandCollectionAttributeValueChangeEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionAttributeValueChangeEventPayload.onDemandCollection); } - OnDemandCollectionAttributeValueChangeEventPayload onDemandCollectionAttributeValueChangeEventPayload = (OnDemandCollectionAttributeValueChangeEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionAttributeValueChangeEventPayload.onDemandCollection); - } - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionAttributeValueChangeEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionAttributeValueChangeEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java index 288e5f7..c9a910a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java @@ -1,40 +1,21 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** - * Skipped properties: id,href + * Skipped properties: id,href */ @Schema(name = "OnDemandCollection_Create", description = " Skipped properties: id,href") @@ -42,592 +23,615 @@ import javax.annotation.Generated; @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 OnDemandCollectionCreate { - private String consumingApplicationId; + private String consumingApplicationId; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; - private String jobId; + private String jobId; - private Integer jobPriority; + private Integer jobPriority; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; - private String outputFormat; + private String outputFormat; - private String producingApplicationId; + private String producingApplicationId; - private AdministrativeState adminState; + private AdministrativeState adminState; - private TimePeriod collectionPeriod; + private TimePeriod collectionPeriod; - private ExecutionStateType executionState; + private ExecutionStateType executionState; - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - private Granularity granulatiry; + private Granularity granulatiry; - private MonitoredClassCriteria monitoredClassCriteria; + private MonitoredClassCriteria monitoredClassCriteria; - private MonitoredInstancesCriteria monitoredInstancesCriteria; + private MonitoredInstancesCriteria monitoredInstancesCriteria; - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - private ScheduleDefinition scheduleDefinition; + private ScheduleDefinition scheduleDefinition; - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - private String atBaseType; + private String atBaseType; - private URI atSchemaLocation; + private URI atSchemaLocation; + + private String atType; + + public OnDemandCollectionCreate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public OnDemandCollectionCreate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } - private String atType; + public OnDemandCollectionCreate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * Get consumingApplicationId + * + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public OnDemandCollectionCreate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public OnDemandCollectionCreate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public OnDemandCollectionCreate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } - public OnDemandCollectionCreate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public OnDemandCollectionCreate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionCreate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * Get consumingApplicationId - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public OnDemandCollectionCreate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public OnDemandCollectionCreate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public OnDemandCollectionCreate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public OnDemandCollectionCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public OnDemandCollectionCreate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public OnDemandCollectionCreate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * Get producingApplicationId - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public OnDemandCollectionCreate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public OnDemandCollectionCreate collectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - return this; - } - - /** - * Get collectionPeriod - * @return collectionPeriod - */ - @Valid - @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionPeriod") - public TimePeriod getCollectionPeriod() { - return collectionPeriod; - } - - public void setCollectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - } - - public OnDemandCollectionCreate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public OnDemandCollectionCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public OnDemandCollectionCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionCreate granulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - return this; - } - - /** - * Get granulatiry - * @return granulatiry - */ - @Valid - @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granulatiry") - public Granularity getGranulatiry() { - return granulatiry; - } - - public void setGranulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - } - - public OnDemandCollectionCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public OnDemandCollectionCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public OnDemandCollectionCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public OnDemandCollectionCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public OnDemandCollectionCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public OnDemandCollectionCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public OnDemandCollectionCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public OnDemandCollectionCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public OnDemandCollectionCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public OnDemandCollectionCreate 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 OnDemandCollectionCreate 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 OnDemandCollectionCreate 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; - } - OnDemandCollectionCreate onDemandCollectionCreate = (OnDemandCollectionCreate) o; - return Objects.equals(this.consumingApplicationId, onDemandCollectionCreate.consumingApplicationId) && - Objects.equals(this.creationTime, onDemandCollectionCreate.creationTime) && - Objects.equals(this.jobId, onDemandCollectionCreate.jobId) && - Objects.equals(this.jobPriority, onDemandCollectionCreate.jobPriority) && - Objects.equals(this.lastModifiedTime, onDemandCollectionCreate.lastModifiedTime) && - Objects.equals(this.outputFormat, onDemandCollectionCreate.outputFormat) && - Objects.equals(this.producingApplicationId, onDemandCollectionCreate.producingApplicationId) && - Objects.equals(this.adminState, onDemandCollectionCreate.adminState) && - Objects.equals(this.collectionPeriod, onDemandCollectionCreate.collectionPeriod) && - Objects.equals(this.executionState, onDemandCollectionCreate.executionState) && - Objects.equals(this.fileTransferData, onDemandCollectionCreate.fileTransferData) && - Objects.equals(this.granulatiry, onDemandCollectionCreate.granulatiry) && - Objects.equals(this.monitoredClassCriteria, onDemandCollectionCreate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionCreate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionCreate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionCreate.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, onDemandCollectionCreate.scheduleDefinition) && - Objects.equals(this.trackingRecord, onDemandCollectionCreate.trackingRecord) && - Objects.equals(this.atBaseType, onDemandCollectionCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, onDemandCollectionCreate.atSchemaLocation) && - Objects.equals(this.atType, onDemandCollectionCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionCreate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public OnDemandCollectionCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public OnDemandCollectionCreate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public OnDemandCollectionCreate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * Get producingApplicationId + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public OnDemandCollectionCreate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public OnDemandCollectionCreate collectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + return this; + } + + /** + * Get collectionPeriod + * + * @return collectionPeriod + */ + @Valid + @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionPeriod") + public TimePeriod getCollectionPeriod() { + return collectionPeriod; + } + + public void setCollectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + } + + public OnDemandCollectionCreate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public OnDemandCollectionCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public OnDemandCollectionCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollectionCreate granulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + return this; + } + + /** + * Get granulatiry + * + * @return granulatiry + */ + @Valid + @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granulatiry") + public Granularity getGranulatiry() { + return granulatiry; + } + + public void setGranulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + } + + public OnDemandCollectionCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public OnDemandCollectionCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public OnDemandCollectionCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public OnDemandCollectionCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public OnDemandCollectionCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public OnDemandCollectionCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public OnDemandCollectionCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public OnDemandCollectionCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public OnDemandCollectionCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public OnDemandCollectionCreate 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 OnDemandCollectionCreate 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 OnDemandCollectionCreate 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; + } + OnDemandCollectionCreate onDemandCollectionCreate = (OnDemandCollectionCreate) o; + return Objects.equals(this.consumingApplicationId, onDemandCollectionCreate.consumingApplicationId) && + Objects.equals(this.creationTime, onDemandCollectionCreate.creationTime) && + Objects.equals(this.jobId, onDemandCollectionCreate.jobId) && + Objects.equals(this.jobPriority, onDemandCollectionCreate.jobPriority) && + Objects.equals(this.lastModifiedTime, onDemandCollectionCreate.lastModifiedTime) && + Objects.equals(this.outputFormat, onDemandCollectionCreate.outputFormat) && + Objects.equals(this.producingApplicationId, onDemandCollectionCreate.producingApplicationId) && + Objects.equals(this.adminState, onDemandCollectionCreate.adminState) && + Objects.equals(this.collectionPeriod, onDemandCollectionCreate.collectionPeriod) && + Objects.equals(this.executionState, onDemandCollectionCreate.executionState) && + Objects.equals(this.fileTransferData, onDemandCollectionCreate.fileTransferData) && + Objects.equals(this.granulatiry, onDemandCollectionCreate.granulatiry) && + Objects.equals(this.monitoredClassCriteria, onDemandCollectionCreate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionCreate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionCreate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionCreate.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, onDemandCollectionCreate.scheduleDefinition) && + Objects.equals(this.trackingRecord, onDemandCollectionCreate.trackingRecord) && + Objects.equals(this.atBaseType, onDemandCollectionCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, onDemandCollectionCreate.atSchemaLocation) && + Objects.equals(this.atType, onDemandCollectionCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionCreate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/OnDemandCollectionCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java index 42201de..a3bdac7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.OnDemandCollectionCreateEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 OnDemandCollectionCreateEvent { - private OnDemandCollectionCreateEventPayload 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 OnDemandCollectionCreateEvent event(OnDemandCollectionCreateEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionCreateEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionCreateEventPayload event) { - this.event = event; - } - - public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionCreateEvent onDemandCollectionCreateEvent = (OnDemandCollectionCreateEvent) o; - return Objects.equals(this.event, onDemandCollectionCreateEvent.event) && - Objects.equals(this.eventId, onDemandCollectionCreateEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionCreateEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionCreateEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionCreateEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionCreateEvent.domain) && - Objects.equals(this.title, onDemandCollectionCreateEvent.title) && - Objects.equals(this.description, onDemandCollectionCreateEvent.description) && - Objects.equals(this.priority, onDemandCollectionCreateEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionCreateEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionCreateEvent {\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 "); - } + private OnDemandCollectionCreateEventPayload 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 OnDemandCollectionCreateEvent event(OnDemandCollectionCreateEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionCreateEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionCreateEventPayload event) { + this.event = event; + } + + public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionCreateEvent onDemandCollectionCreateEvent = (OnDemandCollectionCreateEvent) o; + return Objects.equals(this.event, onDemandCollectionCreateEvent.event) && + Objects.equals(this.eventId, onDemandCollectionCreateEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionCreateEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionCreateEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionCreateEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionCreateEvent.domain) && + Objects.equals(this.title, onDemandCollectionCreateEvent.title) && + Objects.equals(this.description, onDemandCollectionCreateEvent.description) && + Objects.equals(this.priority, onDemandCollectionCreateEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionCreateEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionCreateEvent {\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/OnDemandCollectionCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java index 61439b6..91980c0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.OnDemandCollection; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 OnDemandCollectionCreateEventPayload { - private OnDemandCollection onDemandCollection; + private OnDemandCollection onDemandCollection; - public OnDemandCollectionCreateEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } + public OnDemandCollectionCreateEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } + /** + * Get onDemandCollection + * + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionCreateEventPayload onDemandCollectionCreateEventPayload = (OnDemandCollectionCreateEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionCreateEventPayload.onDemandCollection); } - OnDemandCollectionCreateEventPayload onDemandCollectionCreateEventPayload = (OnDemandCollectionCreateEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionCreateEventPayload.onDemandCollection); - } - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionCreateEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionCreateEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java index 138e0c6..0b654ac 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.OnDemandCollectionDeleteEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 OnDemandCollectionDeleteEvent { - private OnDemandCollectionDeleteEventPayload 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 OnDemandCollectionDeleteEvent event(OnDemandCollectionDeleteEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionDeleteEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionDeleteEventPayload event) { - this.event = event; - } - - public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionDeleteEvent onDemandCollectionDeleteEvent = (OnDemandCollectionDeleteEvent) o; - return Objects.equals(this.event, onDemandCollectionDeleteEvent.event) && - Objects.equals(this.eventId, onDemandCollectionDeleteEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionDeleteEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionDeleteEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionDeleteEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionDeleteEvent.domain) && - Objects.equals(this.title, onDemandCollectionDeleteEvent.title) && - Objects.equals(this.description, onDemandCollectionDeleteEvent.description) && - Objects.equals(this.priority, onDemandCollectionDeleteEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionDeleteEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionDeleteEvent {\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 "); - } + private OnDemandCollectionDeleteEventPayload 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 OnDemandCollectionDeleteEvent event(OnDemandCollectionDeleteEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionDeleteEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionDeleteEventPayload event) { + this.event = event; + } + + public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionDeleteEvent onDemandCollectionDeleteEvent = (OnDemandCollectionDeleteEvent) o; + return Objects.equals(this.event, onDemandCollectionDeleteEvent.event) && + Objects.equals(this.eventId, onDemandCollectionDeleteEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionDeleteEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionDeleteEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionDeleteEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionDeleteEvent.domain) && + Objects.equals(this.title, onDemandCollectionDeleteEvent.title) && + Objects.equals(this.description, onDemandCollectionDeleteEvent.description) && + Objects.equals(this.priority, onDemandCollectionDeleteEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionDeleteEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionDeleteEvent {\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/OnDemandCollectionDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java index c17db05..c59fcf3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.OnDemandCollection; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 OnDemandCollectionDeleteEventPayload { - private OnDemandCollection onDemandCollection; + private OnDemandCollection onDemandCollection; - public OnDemandCollectionDeleteEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } + public OnDemandCollectionDeleteEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } + /** + * Get onDemandCollection + * + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionDeleteEventPayload onDemandCollectionDeleteEventPayload = (OnDemandCollectionDeleteEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionDeleteEventPayload.onDemandCollection); } - OnDemandCollectionDeleteEventPayload onDemandCollectionDeleteEventPayload = (OnDemandCollectionDeleteEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionDeleteEventPayload.onDemandCollection); - } - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionDeleteEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionDeleteEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java index fe176fc..b51b0b9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.OnDemandCollectionExecutionStateChangeEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 OnDemandCollectionExecutionStateChangeEvent { - private OnDemandCollectionExecutionStateChangeEventPayload 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 OnDemandCollectionExecutionStateChangeEvent event(OnDemandCollectionExecutionStateChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionExecutionStateChangeEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionExecutionStateChangeEventPayload event) { - this.event = event; - } - - public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionExecutionStateChangeEvent onDemandCollectionExecutionStateChangeEvent = (OnDemandCollectionExecutionStateChangeEvent) o; - return Objects.equals(this.event, onDemandCollectionExecutionStateChangeEvent.event) && - Objects.equals(this.eventId, onDemandCollectionExecutionStateChangeEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionExecutionStateChangeEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionExecutionStateChangeEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionExecutionStateChangeEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionExecutionStateChangeEvent.domain) && - Objects.equals(this.title, onDemandCollectionExecutionStateChangeEvent.title) && - Objects.equals(this.description, onDemandCollectionExecutionStateChangeEvent.description) && - Objects.equals(this.priority, onDemandCollectionExecutionStateChangeEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionExecutionStateChangeEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionExecutionStateChangeEvent {\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 "); - } + private OnDemandCollectionExecutionStateChangeEventPayload 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 OnDemandCollectionExecutionStateChangeEvent event(OnDemandCollectionExecutionStateChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionExecutionStateChangeEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionExecutionStateChangeEventPayload event) { + this.event = event; + } + + public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionExecutionStateChangeEvent onDemandCollectionExecutionStateChangeEvent = (OnDemandCollectionExecutionStateChangeEvent) o; + return Objects.equals(this.event, onDemandCollectionExecutionStateChangeEvent.event) && + Objects.equals(this.eventId, onDemandCollectionExecutionStateChangeEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionExecutionStateChangeEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionExecutionStateChangeEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionExecutionStateChangeEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionExecutionStateChangeEvent.domain) && + Objects.equals(this.title, onDemandCollectionExecutionStateChangeEvent.title) && + Objects.equals(this.description, onDemandCollectionExecutionStateChangeEvent.description) && + Objects.equals(this.priority, onDemandCollectionExecutionStateChangeEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionExecutionStateChangeEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionExecutionStateChangeEvent {\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/OnDemandCollectionExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java index 19d04f1..d9b4db1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.OnDemandCollection; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 OnDemandCollectionExecutionStateChangeEventPayload { - private OnDemandCollection onDemandCollection; + private OnDemandCollection onDemandCollection; - public OnDemandCollectionExecutionStateChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } + public OnDemandCollectionExecutionStateChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } + /** + * Get onDemandCollection + * + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionExecutionStateChangeEventPayload onDemandCollectionExecutionStateChangeEventPayload = (OnDemandCollectionExecutionStateChangeEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionExecutionStateChangeEventPayload.onDemandCollection); } - OnDemandCollectionExecutionStateChangeEventPayload onDemandCollectionExecutionStateChangeEventPayload = (OnDemandCollectionExecutionStateChangeEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionExecutionStateChangeEventPayload.onDemandCollection); - } - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionExecutionStateChangeEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionExecutionStateChangeEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java index 71b22cc..e1437aa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.OnDemandCollectionFilesPreparationErrorEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 OnDemandCollectionFilesPreparationErrorEvent { - private OnDemandCollectionFilesPreparationErrorEventPayload 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 OnDemandCollectionFilesPreparationErrorEvent event(OnDemandCollectionFilesPreparationErrorEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionFilesPreparationErrorEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionFilesPreparationErrorEventPayload event) { - this.event = event; - } - - public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionFilesPreparationErrorEvent onDemandCollectionFilesPreparationErrorEvent = (OnDemandCollectionFilesPreparationErrorEvent) o; - return Objects.equals(this.event, onDemandCollectionFilesPreparationErrorEvent.event) && - Objects.equals(this.eventId, onDemandCollectionFilesPreparationErrorEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionFilesPreparationErrorEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionFilesPreparationErrorEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionFilesPreparationErrorEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionFilesPreparationErrorEvent.domain) && - Objects.equals(this.title, onDemandCollectionFilesPreparationErrorEvent.title) && - Objects.equals(this.description, onDemandCollectionFilesPreparationErrorEvent.description) && - Objects.equals(this.priority, onDemandCollectionFilesPreparationErrorEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionFilesPreparationErrorEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesPreparationErrorEvent {\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 "); - } + private OnDemandCollectionFilesPreparationErrorEventPayload 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 OnDemandCollectionFilesPreparationErrorEvent event(OnDemandCollectionFilesPreparationErrorEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionFilesPreparationErrorEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionFilesPreparationErrorEventPayload event) { + this.event = event; + } + + public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionFilesPreparationErrorEvent onDemandCollectionFilesPreparationErrorEvent = (OnDemandCollectionFilesPreparationErrorEvent) o; + return Objects.equals(this.event, onDemandCollectionFilesPreparationErrorEvent.event) && + Objects.equals(this.eventId, onDemandCollectionFilesPreparationErrorEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionFilesPreparationErrorEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionFilesPreparationErrorEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionFilesPreparationErrorEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionFilesPreparationErrorEvent.domain) && + Objects.equals(this.title, onDemandCollectionFilesPreparationErrorEvent.title) && + Objects.equals(this.description, onDemandCollectionFilesPreparationErrorEvent.description) && + Objects.equals(this.priority, onDemandCollectionFilesPreparationErrorEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionFilesPreparationErrorEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesPreparationErrorEvent {\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/OnDemandCollectionFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java index 975a4af..5741949 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.OnDemandCollection; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 OnDemandCollectionFilesPreparationErrorEventPayload { - private OnDemandCollection onDemandCollection; + private OnDemandCollection onDemandCollection; - public OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } + public OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } + /** + * Get onDemandCollection + * + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollectionFilesPreparationErrorEventPayload = (OnDemandCollectionFilesPreparationErrorEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionFilesPreparationErrorEventPayload.onDemandCollection); } - OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollectionFilesPreparationErrorEventPayload = (OnDemandCollectionFilesPreparationErrorEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionFilesPreparationErrorEventPayload.onDemandCollection); - } - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesPreparationErrorEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesPreparationErrorEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java index e21afe7..529c98b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java @@ -1,21 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.etsi.osl.tmf.pm628.model.OnDemandCollectionFilesReadyEventPayload; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * The notification data structure @@ -25,281 +18,291 @@ import javax.annotation.Generated; @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 OnDemandCollectionFilesReadyEvent { - private OnDemandCollectionFilesReadyEventPayload 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 OnDemandCollectionFilesReadyEvent event(OnDemandCollectionFilesReadyEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionFilesReadyEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionFilesReadyEventPayload event) { - this.event = event; - } - - public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionFilesReadyEvent onDemandCollectionFilesReadyEvent = (OnDemandCollectionFilesReadyEvent) o; - return Objects.equals(this.event, onDemandCollectionFilesReadyEvent.event) && - Objects.equals(this.eventId, onDemandCollectionFilesReadyEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionFilesReadyEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionFilesReadyEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionFilesReadyEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionFilesReadyEvent.domain) && - Objects.equals(this.title, onDemandCollectionFilesReadyEvent.title) && - Objects.equals(this.description, onDemandCollectionFilesReadyEvent.description) && - Objects.equals(this.priority, onDemandCollectionFilesReadyEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionFilesReadyEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesReadyEvent {\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 "); - } + private OnDemandCollectionFilesReadyEventPayload 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 OnDemandCollectionFilesReadyEvent event(OnDemandCollectionFilesReadyEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public OnDemandCollectionFilesReadyEventPayload getEvent() { + return event; + } + + public void setEvent(OnDemandCollectionFilesReadyEventPayload event) { + this.event = event; + } + + public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explnatory of the event. + * + * @return description + */ + + @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { + this.timeOcurred = timeOcurred; + return this; + } + + /** + * The time the event occured. + * + * @return timeOcurred + */ + @Valid + @Schema(name = "timeOcurred", description = "The time the event occured.", 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; + } + OnDemandCollectionFilesReadyEvent onDemandCollectionFilesReadyEvent = (OnDemandCollectionFilesReadyEvent) o; + return Objects.equals(this.event, onDemandCollectionFilesReadyEvent.event) && + Objects.equals(this.eventId, onDemandCollectionFilesReadyEvent.eventId) && + Objects.equals(this.eventTime, onDemandCollectionFilesReadyEvent.eventTime) && + Objects.equals(this.eventType, onDemandCollectionFilesReadyEvent.eventType) && + Objects.equals(this.correlationId, onDemandCollectionFilesReadyEvent.correlationId) && + Objects.equals(this.domain, onDemandCollectionFilesReadyEvent.domain) && + Objects.equals(this.title, onDemandCollectionFilesReadyEvent.title) && + Objects.equals(this.description, onDemandCollectionFilesReadyEvent.description) && + Objects.equals(this.priority, onDemandCollectionFilesReadyEvent.priority) && + Objects.equals(this.timeOcurred, onDemandCollectionFilesReadyEvent.timeOcurred); + } + + @Override + public int hashCode() { + return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesReadyEvent {\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/OnDemandCollectionFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java index 4260cae..871a85f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.OnDemandCollection; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * The event data structure @@ -23,63 +16,64 @@ import javax.annotation.Generated; @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 OnDemandCollectionFilesReadyEventPayload { - private OnDemandCollection onDemandCollection; + private OnDemandCollection onDemandCollection; - public OnDemandCollectionFilesReadyEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } + public OnDemandCollectionFilesReadyEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; + return this; + } - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } + /** + * Get onDemandCollection + * + * @return onDemandCollection + */ + @Valid + @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("onDemandCollection") + public OnDemandCollection getOnDemandCollection() { + return onDemandCollection; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setOnDemandCollection(OnDemandCollection onDemandCollection) { + this.onDemandCollection = onDemandCollection; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnDemandCollectionFilesReadyEventPayload onDemandCollectionFilesReadyEventPayload = (OnDemandCollectionFilesReadyEventPayload) o; + return Objects.equals(this.onDemandCollection, onDemandCollectionFilesReadyEventPayload.onDemandCollection); } - OnDemandCollectionFilesReadyEventPayload onDemandCollectionFilesReadyEventPayload = (OnDemandCollectionFilesReadyEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionFilesReadyEventPayload.onDemandCollection); - } - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } + @Override + public int hashCode() { + return Objects.hash(onDemandCollection); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesReadyEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionFilesReadyEventPayload {\n"); + sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java index ce5b7ea..57a790b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java @@ -1,40 +1,21 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** - * Skipped properties: id,href + * Skipped properties: id,href */ @Schema(name = "OnDemandCollection_Update", description = " Skipped properties: id,href") @@ -42,592 +23,615 @@ import javax.annotation.Generated; @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 OnDemandCollectionUpdate { - private String consumingApplicationId; + private String consumingApplicationId; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; - private String jobId; + private String jobId; - private Integer jobPriority; + private Integer jobPriority; - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; - private String outputFormat; + private String outputFormat; - private String producingApplicationId; + private String producingApplicationId; - private AdministrativeState adminState; + private AdministrativeState adminState; - private TimePeriod collectionPeriod; + private TimePeriod collectionPeriod; - private ExecutionStateType executionState; + private ExecutionStateType executionState; - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); + @Valid + private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - private Granularity granulatiry; + private Granularity granulatiry; - private MonitoredClassCriteria monitoredClassCriteria; + private MonitoredClassCriteria monitoredClassCriteria; - private MonitoredInstancesCriteria monitoredInstancesCriteria; + private MonitoredInstancesCriteria monitoredInstancesCriteria; - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - private ScheduleDefinition scheduleDefinition; + private ScheduleDefinition scheduleDefinition; - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); + @Valid + private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - private String atBaseType; + private String atBaseType; - private URI atSchemaLocation; + private URI atSchemaLocation; + + private String atType; + + public OnDemandCollectionUpdate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public OnDemandCollectionUpdate(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } - private String atType; + public OnDemandCollectionUpdate consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * Get consumingApplicationId + * + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public OnDemandCollectionUpdate creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public OnDemandCollectionUpdate jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public OnDemandCollectionUpdate jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } - public OnDemandCollectionUpdate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public OnDemandCollectionUpdate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionUpdate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * Get consumingApplicationId - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public OnDemandCollectionUpdate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public OnDemandCollectionUpdate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public OnDemandCollectionUpdate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public OnDemandCollectionUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public OnDemandCollectionUpdate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public OnDemandCollectionUpdate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * Get producingApplicationId - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public OnDemandCollectionUpdate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public OnDemandCollectionUpdate collectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - return this; - } - - /** - * Get collectionPeriod - * @return collectionPeriod - */ - @Valid - @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionPeriod") - public TimePeriod getCollectionPeriod() { - return collectionPeriod; - } - - public void setCollectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - } - - public OnDemandCollectionUpdate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public OnDemandCollectionUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public OnDemandCollectionUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * @return fileTransferData - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionUpdate granulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - return this; - } - - /** - * Get granulatiry - * @return granulatiry - */ - @Valid - @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granulatiry") - public Granularity getGranulatiry() { - return granulatiry; - } - - public void setGranulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - } - - public OnDemandCollectionUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public OnDemandCollectionUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public OnDemandCollectionUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public OnDemandCollectionUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public OnDemandCollectionUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public OnDemandCollectionUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public OnDemandCollectionUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public OnDemandCollectionUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public OnDemandCollectionUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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; - } - OnDemandCollectionUpdate onDemandCollectionUpdate = (OnDemandCollectionUpdate) o; - return Objects.equals(this.consumingApplicationId, onDemandCollectionUpdate.consumingApplicationId) && - Objects.equals(this.creationTime, onDemandCollectionUpdate.creationTime) && - Objects.equals(this.jobId, onDemandCollectionUpdate.jobId) && - Objects.equals(this.jobPriority, onDemandCollectionUpdate.jobPriority) && - Objects.equals(this.lastModifiedTime, onDemandCollectionUpdate.lastModifiedTime) && - Objects.equals(this.outputFormat, onDemandCollectionUpdate.outputFormat) && - Objects.equals(this.producingApplicationId, onDemandCollectionUpdate.producingApplicationId) && - Objects.equals(this.adminState, onDemandCollectionUpdate.adminState) && - Objects.equals(this.collectionPeriod, onDemandCollectionUpdate.collectionPeriod) && - Objects.equals(this.executionState, onDemandCollectionUpdate.executionState) && - Objects.equals(this.fileTransferData, onDemandCollectionUpdate.fileTransferData) && - Objects.equals(this.granulatiry, onDemandCollectionUpdate.granulatiry) && - Objects.equals(this.monitoredClassCriteria, onDemandCollectionUpdate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionUpdate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionUpdate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionUpdate.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, onDemandCollectionUpdate.scheduleDefinition) && - Objects.equals(this.trackingRecord, onDemandCollectionUpdate.trackingRecord) && - Objects.equals(this.atBaseType, onDemandCollectionUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, onDemandCollectionUpdate.atSchemaLocation) && - Objects.equals(this.atType, onDemandCollectionUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionUpdate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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 "); - } + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * + * @return jobPriority + */ + + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public OnDemandCollectionUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public OnDemandCollectionUpdate outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public OnDemandCollectionUpdate producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * Get producingApplicationId + * + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public OnDemandCollectionUpdate adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public OnDemandCollectionUpdate collectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + return this; + } + + /** + * Get collectionPeriod + * + * @return collectionPeriod + */ + @Valid + @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionPeriod") + public TimePeriod getCollectionPeriod() { + return collectionPeriod; + } + + public void setCollectionPeriod(TimePeriod collectionPeriod) { + this.collectionPeriod = collectionPeriod; + } + + public OnDemandCollectionUpdate executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public OnDemandCollectionUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public OnDemandCollectionUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * + * @return fileTransferData + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("fileTransferData") + public List<@Valid FileTransferData> getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public OnDemandCollectionUpdate granulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + return this; + } + + /** + * Get granulatiry + * + * @return granulatiry + */ + @Valid + @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granulatiry") + public Granularity getGranulatiry() { + return granulatiry; + } + + public void setGranulatiry(Granularity granulatiry) { + this.granulatiry = granulatiry; + } + + public OnDemandCollectionUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + public OnDemandCollectionUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public OnDemandCollectionUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public OnDemandCollectionUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public OnDemandCollectionUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public OnDemandCollectionUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public OnDemandCollectionUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + /** + * Get scheduleDefinition + * + * @return scheduleDefinition + */ + @Valid + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public ScheduleDefinition getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + public OnDemandCollectionUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public OnDemandCollectionUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * + * @return trackingRecord + */ + @Valid + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List<@Valid TrackingRecord> getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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; + } + OnDemandCollectionUpdate onDemandCollectionUpdate = (OnDemandCollectionUpdate) o; + return Objects.equals(this.consumingApplicationId, onDemandCollectionUpdate.consumingApplicationId) && + Objects.equals(this.creationTime, onDemandCollectionUpdate.creationTime) && + Objects.equals(this.jobId, onDemandCollectionUpdate.jobId) && + Objects.equals(this.jobPriority, onDemandCollectionUpdate.jobPriority) && + Objects.equals(this.lastModifiedTime, onDemandCollectionUpdate.lastModifiedTime) && + Objects.equals(this.outputFormat, onDemandCollectionUpdate.outputFormat) && + Objects.equals(this.producingApplicationId, onDemandCollectionUpdate.producingApplicationId) && + Objects.equals(this.adminState, onDemandCollectionUpdate.adminState) && + Objects.equals(this.collectionPeriod, onDemandCollectionUpdate.collectionPeriod) && + Objects.equals(this.executionState, onDemandCollectionUpdate.executionState) && + Objects.equals(this.fileTransferData, onDemandCollectionUpdate.fileTransferData) && + Objects.equals(this.granulatiry, onDemandCollectionUpdate.granulatiry) && + Objects.equals(this.monitoredClassCriteria, onDemandCollectionUpdate.monitoredClassCriteria) && + Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionUpdate.monitoredInstancesCriteria) && + Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionUpdate.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionUpdate.performanceIndicatorSpecification) && + Objects.equals(this.scheduleDefinition, onDemandCollectionUpdate.scheduleDefinition) && + Objects.equals(this.trackingRecord, onDemandCollectionUpdate.trackingRecord) && + Objects.equals(this.atBaseType, onDemandCollectionUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, onDemandCollectionUpdate.atSchemaLocation) && + Objects.equals(this.atType, onDemandCollectionUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnDemandCollectionUpdate {\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java index b803297..93fd28b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java @@ -1,62 +1,51 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Enumeration of supported packing/packaging. All extensions allowed. */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public enum PackingEnumType { - - NO_PACKING("NO_PACKING"), - - GZIP("GZIP"), - - TAR("TAR"), - - VENDOR_EXT("VENDOR_EXT"), - - MINOR_EXT("MINOR_EXT"); - - private String value; - - PackingEnumType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static PackingEnumType fromValue(String value) { - for (PackingEnumType b : PackingEnumType.values()) { - if (b.value.equals(value)) { - return b; - } + + NO_PACKING("NO_PACKING"), + + GZIP("GZIP"), + + TAR("TAR"), + + VENDOR_EXT("VENDOR_EXT"), + + MINOR_EXT("MINOR_EXT"); + + private String value; + + PackingEnumType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PackingEnumType fromValue(String value) { + for (PackingEnumType b : PackingEnumType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 6102c16..5302495 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -1,20 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.PackingEnumType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.util.Objects; /** * Specify if the output file(s) are to be packed. @@ -24,63 +16,64 @@ import javax.annotation.Generated; @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 PackingType { - private PackingEnumType packingEnumType; + private PackingEnumType packingEnumType; - public PackingType packingEnumType(PackingEnumType packingEnumType) { - this.packingEnumType = packingEnumType; - return this; - } - - /** - * Get packingEnumType - * @return packingEnumType - */ - @Valid - @Schema(name = "packingEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("packingEnumType") - public PackingEnumType getPackingEnumType() { - return packingEnumType; - } + public PackingType packingEnumType(PackingEnumType packingEnumType) { + this.packingEnumType = packingEnumType; + return this; + } - public void setPackingEnumType(PackingEnumType packingEnumType) { - this.packingEnumType = packingEnumType; - } + /** + * Get packingEnumType + * + * @return packingEnumType + */ + @Valid + @Schema(name = "packingEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingEnumType") + public PackingEnumType getPackingEnumType() { + return packingEnumType; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setPackingEnumType(PackingEnumType packingEnumType) { + this.packingEnumType = packingEnumType; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PackingType packingType = (PackingType) o; + return Objects.equals(this.packingEnumType, packingType.packingEnumType); } - PackingType packingType = (PackingType) o; - return Objects.equals(this.packingEnumType, packingType.packingEnumType); - } - @Override - public int hashCode() { - return Objects.hash(packingEnumType); - } + @Override + public int hashCode() { + return Objects.hash(packingEnumType); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PackingType {\n"); - sb.append(" packingEnumType: ").append(toIndentedString(packingEnumType)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackingType {\n"); + sb.append(" packingEnumType: ").append(toIndentedString(packingEnumType)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index b8b8794..8f95362 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -1,23 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorGroupSpecification @@ -26,228 +18,237 @@ import javax.annotation.Generated; @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 PerformanceIndicatorGroupSpecification { - private String id; - - private URI href; - - private String name; - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorGroupSpecification() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorGroupSpecification(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.name = name; - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification name(String name) { - this.name = name; - return this; - } - - /** - * Name of Group specification - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorGroupSpecification performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public PerformanceIndicatorGroupSpecification addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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; - } - PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecification = (PerformanceIndicatorGroupSpecification) o; - return Objects.equals(this.id, performanceIndicatorGroupSpecification.id) && - Objects.equals(this.href, performanceIndicatorGroupSpecification.href) && - Objects.equals(this.name, performanceIndicatorGroupSpecification.name) && - Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecification.performanceIndicatorSpecification) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecification.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecification.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorGroupSpecification.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorGroupSpecification {\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(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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 "); - } + private String id; + + private URI href; + + private String name; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorGroupSpecification() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecification(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.name = name; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification name(String name) { + this.name = name; + return this; + } + + /** + * Name of Group specification + * + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecification performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecification addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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; + } + PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecification = (PerformanceIndicatorGroupSpecification) o; + return Objects.equals(this.id, performanceIndicatorGroupSpecification.id) && + Objects.equals(this.href, performanceIndicatorGroupSpecification.href) && + Objects.equals(this.name, performanceIndicatorGroupSpecification.name) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecification.performanceIndicatorSpecification) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecification.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecification.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorGroupSpecification.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecification {\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(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java index 13d7320..e7165b2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java @@ -1,27 +1,19 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** - * Skipped properties: id,href + * Skipped properties: id,href */ @Schema(name = "PerformanceIndicatorGroupSpecification_Create", description = " Skipped properties: id,href") @@ -29,180 +21,187 @@ import javax.annotation.Generated; @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 PerformanceIndicatorGroupSpecificationCreate { - private String name; - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorGroupSpecificationCreate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorGroupSpecificationCreate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.name = name; - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationCreate name(String name) { - this.name = name; - return this; - } - - /** - * Name of Group specification - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorGroupSpecificationCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public PerformanceIndicatorGroupSpecificationCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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; - } - PerformanceIndicatorGroupSpecificationCreate performanceIndicatorGroupSpecificationCreate = (PerformanceIndicatorGroupSpecificationCreate) o; - return Objects.equals(this.name, performanceIndicatorGroupSpecificationCreate.name) && - Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationCreate.performanceIndicatorSpecification) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationCreate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorGroupSpecificationCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorGroupSpecificationCreate {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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 "); - } + private String name; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorGroupSpecificationCreate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationCreate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.name = name; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationCreate name(String name) { + this.name = name; + return this; + } + + /** + * Name of Group specification + * + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecificationCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecificationCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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; + } + PerformanceIndicatorGroupSpecificationCreate performanceIndicatorGroupSpecificationCreate = (PerformanceIndicatorGroupSpecificationCreate) o; + return Objects.equals(this.name, performanceIndicatorGroupSpecificationCreate.name) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationCreate.performanceIndicatorSpecification) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationCreate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorGroupSpecificationCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationCreate {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java index a8ae2a5..1370cad 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java @@ -1,27 +1,19 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** - * Skipped properties: id,href + * Skipped properties: id,href */ @Schema(name = "PerformanceIndicatorGroupSpecification_Update", description = " Skipped properties: id,href") @@ -29,180 +21,187 @@ import javax.annotation.Generated; @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 PerformanceIndicatorGroupSpecificationUpdate { - private String name; - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorGroupSpecificationUpdate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorGroupSpecificationUpdate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.name = name; - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationUpdate name(String name) { - this.name = name; - return this; - } - - /** - * Name of Group specification - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public PerformanceIndicatorGroupSpecificationUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * @return performanceIndicatorSpecification - */ - @NotNull @Valid @Size(min = 1) - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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; - } - PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorGroupSpecificationUpdate = (PerformanceIndicatorGroupSpecificationUpdate) o; - return Objects.equals(this.name, performanceIndicatorGroupSpecificationUpdate.name) && - Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationUpdate.performanceIndicatorSpecification) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationUpdate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorGroupSpecificationUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorGroupSpecificationUpdate {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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 "); - } + private String name; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorGroupSpecificationUpdate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationUpdate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.name = name; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationUpdate name(String name) { + this.name = name; + return this; + } + + /** + * Name of Group specification + * + * @return name + */ + @NotNull + @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecificationUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * + * @return performanceIndicatorSpecification + */ + @NotNull + @Valid + @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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; + } + PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorGroupSpecificationUpdate = (PerformanceIndicatorGroupSpecificationUpdate) o; + return Objects.equals(this.name, performanceIndicatorGroupSpecificationUpdate.name) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationUpdate.performanceIndicatorSpecification) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationUpdate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorGroupSpecificationUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationUpdate {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index 11ef976..e486854 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -1,20 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * Type of relationship such as aggregation, migration, substitution, dependency, exclusivity @@ -24,267 +17,277 @@ import javax.annotation.Generated; @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 PerformanceIndicatorSpecRelationship { - private String id; - - private String href; - - private String name; - - private String relationshipType; - - private String role; - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecRelationship() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorSpecRelationship(String relationshipType, TimePeriod validFor) { - this.relationshipType = relationshipType; - this.validFor = validFor; - } - - public PerformanceIndicatorSpecRelationship id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the target specification - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecRelationship href(String href) { - this.href = href; - return this; - } - - /** - * Hyperlink reference to the target specification - * @return href - */ - - @Schema(name = "href", description = "Hyperlink reference to the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PerformanceIndicatorSpecRelationship name(String name) { - this.name = name; - return this; - } - - /** - * Name of the targetcharacteristic - * @return name - */ - - @Schema(name = "name", description = "Name of the targetcharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecRelationship relationshipType(String relationshipType) { - this.relationshipType = relationshipType; - return this; - } - - /** - * Get relationshipType - * @return relationshipType - */ - @NotNull - @Schema(name = "relationshipType", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("relationshipType") - public String getRelationshipType() { - return relationshipType; - } - - public void setRelationshipType(String relationshipType) { - this.relationshipType = relationshipType; - } - - public PerformanceIndicatorSpecRelationship role(String role) { - this.role = role; - return this; - } - - /** - * The association role for this service specification - * @return role - */ - - @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("role") - public String getRole() { - return role; - } - - public void setRole(String role) { - this.role = role; - } - - public PerformanceIndicatorSpecRelationship validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * @return validFor - */ - @NotNull @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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; - } - PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationship = (PerformanceIndicatorSpecRelationship) o; - return Objects.equals(this.id, performanceIndicatorSpecRelationship.id) && - Objects.equals(this.href, performanceIndicatorSpecRelationship.href) && - Objects.equals(this.name, performanceIndicatorSpecRelationship.name) && - Objects.equals(this.relationshipType, performanceIndicatorSpecRelationship.relationshipType) && - Objects.equals(this.role, performanceIndicatorSpecRelationship.role) && - Objects.equals(this.validFor, performanceIndicatorSpecRelationship.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationship.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecRelationship.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, name, relationshipType, role, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); - sb.append(" role: ").append(toIndentedString(role)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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 "); - } + private String id; + + private String href; + + private String name; + + private String relationshipType; + + private String role; + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecRelationship(String relationshipType, TimePeriod validFor) { + this.relationshipType = relationshipType; + this.validFor = validFor; + } + + public PerformanceIndicatorSpecRelationship id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the target specification + * + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecRelationship href(String href) { + this.href = href; + return this; + } + + /** + * Hyperlink reference to the target specification + * + * @return href + */ + + @Schema(name = "href", description = "Hyperlink reference to the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PerformanceIndicatorSpecRelationship name(String name) { + this.name = name; + return this; + } + + /** + * Name of the targetcharacteristic + * + * @return name + */ + + @Schema(name = "name", description = "Name of the targetcharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecRelationship relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * Get relationshipType + * + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("relationshipType") + public String getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(String relationshipType) { + this.relationshipType = relationshipType; + } + + public PerformanceIndicatorSpecRelationship role(String role) { + this.role = role; + return this; + } + + /** + * The association role for this service specification + * + * @return role + */ + + @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public PerformanceIndicatorSpecRelationship validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * + * @return validFor + */ + @NotNull + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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; + } + PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationship = (PerformanceIndicatorSpecRelationship) o; + return Objects.equals(this.id, performanceIndicatorSpecRelationship.id) && + Objects.equals(this.href, performanceIndicatorSpecRelationship.href) && + Objects.equals(this.name, performanceIndicatorSpecRelationship.name) && + Objects.equals(this.relationshipType, performanceIndicatorSpecRelationship.relationshipType) && + Objects.equals(this.role, performanceIndicatorSpecRelationship.role) && + Objects.equals(this.validFor, performanceIndicatorSpecRelationship.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationship.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecRelationship.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, name, relationshipType, role, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 4e3d91d..0aef7e3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -1,27 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. @@ -31,432 +19,448 @@ import javax.annotation.Generated; @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 PerformanceIndicatorSpecification { - private String id; + private String id; + + private URI href; + + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecification id(String id) { + this.id = id; + return this; + } + + /** + * A unique identifier for the PerformanceIndicatorSpecification. + * + * @return id + */ + + @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecification derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecification description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecification indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecification indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecification name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } - private URI href; + public PerformanceIndicatorSpecification perspective(String perspective) { + this.perspective = perspective; + return this; + } - private String derivationAlgorithm; + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * + * @return perspective + */ - private String derivationMethod; + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } - private String description; + public void setPerspective(String perspective) { + this.perspective = perspective; + } - private String indicatorCategory; + public PerformanceIndicatorSpecification collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } - private String indicatorUnit; + /** + * Get collectionType + * + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } - private String name; + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } - private String perspective; + public PerformanceIndicatorSpecification indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } - private CollectionType collectionType; + /** + * Get indicatorType + * + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } - private IndicatorType indicatorType; + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecification performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecification addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecification id(String id) { - this.id = id; - return this; - } - - /** - * A unique identifier for the PerformanceIndicatorSpecification. - * @return id - */ - - @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecification derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecification description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecification indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecification indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecification name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecification perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecification collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecification indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecification performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecification addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecification validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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; - } - PerformanceIndicatorSpecification performanceIndicatorSpecification = (PerformanceIndicatorSpecification) o; - return Objects.equals(this.id, performanceIndicatorSpecification.id) && - Objects.equals(this.href, performanceIndicatorSpecification.href) && - Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecification.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecification.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecification.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecification.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecification.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecification.name) && - Objects.equals(this.perspective, performanceIndicatorSpecification.perspective) && - Objects.equals(this.collectionType, performanceIndicatorSpecification.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecification.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecification.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecification.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecification.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecification.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecification.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecification {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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 "); - } + public PerformanceIndicatorSpecification validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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; + } + PerformanceIndicatorSpecification performanceIndicatorSpecification = (PerformanceIndicatorSpecification) o; + return Objects.equals(this.id, performanceIndicatorSpecification.id) && + Objects.equals(this.href, performanceIndicatorSpecification.href) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecification.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecification.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecification.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecification.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecification.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecification.name) && + Objects.equals(this.perspective, performanceIndicatorSpecification.perspective) && + Objects.equals(this.collectionType, performanceIndicatorSpecification.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecification.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecification.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecification.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecification.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecification.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecification.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecification {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java index 7af4f06..525b1e2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java @@ -1,28 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href @@ -33,384 +21,398 @@ import javax.annotation.Generated; @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 PerformanceIndicatorSpecificationCreate { - private String derivationAlgorithm; + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecificationCreate derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationCreate derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationCreate description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationCreate indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationCreate indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationCreate name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationCreate perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationCreate collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationCreate indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationCreate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationCreate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } - private String derivationMethod; - - private String description; + /** + * Get performanceIndicatorSpecRelationship + * + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } - private String indicatorCategory; - - private String indicatorUnit; + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } - private String name; - - private String perspective; + public PerformanceIndicatorSpecificationCreate validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } - private CollectionType collectionType; - - private IndicatorType indicatorType; - - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecificationCreate derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecificationCreate derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecificationCreate description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecificationCreate indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecificationCreate indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecificationCreate name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecificationCreate perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecificationCreate collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecificationCreate indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecificationCreate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecificationCreate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecificationCreate validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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; - } - PerformanceIndicatorSpecificationCreate performanceIndicatorSpecificationCreate = (PerformanceIndicatorSpecificationCreate) o; - return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationCreate.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecificationCreate.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecificationCreate.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationCreate.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationCreate.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecificationCreate.name) && - Objects.equals(this.perspective, performanceIndicatorSpecificationCreate.perspective) && - Objects.equals(this.collectionType, performanceIndicatorSpecificationCreate.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecificationCreate.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationCreate.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecificationCreate.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationCreate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationCreate {\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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 "); - } + /** + * Get validFor + * + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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; + } + PerformanceIndicatorSpecificationCreate performanceIndicatorSpecificationCreate = (PerformanceIndicatorSpecificationCreate) o; + return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationCreate.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationCreate.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecificationCreate.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationCreate.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationCreate.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecificationCreate.name) && + Objects.equals(this.perspective, performanceIndicatorSpecificationCreate.perspective) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationCreate.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationCreate.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationCreate.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecificationCreate.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationCreate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationCreate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationCreate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationCreate {\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index 4687ec4..e1c1396 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -1,19 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.Objects; /** * PerformanceIndicatorSpecification reference: A PerformanceIndicatorSpecification is a detailed description of a tangible or intangible object made available externally in the form of a PerformanceIndicatorSpecification to customers or other parties playing a party role. @@ -23,242 +17,250 @@ import javax.annotation.Generated; @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 PerformanceIndicatorSpecificationRef { - private String id; - - private URI href; - - private String name; - - private String version; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - private String atReferredType; - - public PerformanceIndicatorSpecificationRef() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorSpecificationRef(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef version(String version) { - this.version = version; - return this; - } - - /** - * Version of the performance indicator specification - * @return version - */ - - @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("version") - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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; + private String id; + + private URI href; + + private String name; + + private String version; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + private String atReferredType; + + public PerformanceIndicatorSpecificationRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationRef(String id) { + this.id = id; } - if (o == null || getClass() != o.getClass()) { - return false; + + public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef version(String version) { + this.version = version; + return this; } - PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationRef = (PerformanceIndicatorSpecificationRef) o; - return Objects.equals(this.id, performanceIndicatorSpecificationRef.id) && - Objects.equals(this.href, performanceIndicatorSpecificationRef.href) && - Objects.equals(this.name, performanceIndicatorSpecificationRef.name) && - Objects.equals(this.version, performanceIndicatorSpecificationRef.version) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRef.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRef.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationRef.atType) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRef.atReferredType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, name, version, atBaseType, atSchemaLocation, atType, atReferredType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationRef {\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(" version: ").append(toIndentedString(version)).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"; + + /** + * Version of the performance indicator specification + * + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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; + } + PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationRef = (PerformanceIndicatorSpecificationRef) o; + return Objects.equals(this.id, performanceIndicatorSpecificationRef.id) && + Objects.equals(this.href, performanceIndicatorSpecificationRef.href) && + Objects.equals(this.name, performanceIndicatorSpecificationRef.name) && + Objects.equals(this.version, performanceIndicatorSpecificationRef.version) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRef.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRef.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationRef.atType) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRef.atReferredType); + } + + @Override + public int hashCode() { + return Objects.hash(id, href, name, version, atBaseType, atSchemaLocation, atType, atReferredType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRef {\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(" version: ").append(toIndentedString(version)).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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index d79342c..e40d3e4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -1,27 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * 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 @@ -31,480 +19,498 @@ import javax.annotation.Generated; @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 PerformanceIndicatorSpecificationRefOrValue { - private String id; + private String id; + + private URI href; + + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private String version; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + private String atReferredType; + + public PerformanceIndicatorSpecificationRefOrValue id(String id) { + this.id = id; + return this; + } + + /** + * A unique identifier for the PerformanceIndicatorSpecification. + * + * @return id + */ + + @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationRefOrValue derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationRefOrValue description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationRefOrValue indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationRefOrValue indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationRefOrValue name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationRefOrValue perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationRefOrValue version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator specification + * + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public PerformanceIndicatorSpecificationRefOrValue collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationRefOrValue indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationRefOrValue addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + public PerformanceIndicatorSpecificationRefOrValue validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationRefOrValue atBaseType(String atBaseType) { + this.atBaseType = atBaseType; + return this; + } - private URI href; + /** + * When sub-classing, this defines the super-class + * + * @return atBaseType + */ - private String derivationAlgorithm; + @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("@baseType") + public String getAtBaseType() { + return atBaseType; + } - private String derivationMethod; + public void setAtBaseType(String atBaseType) { + this.atBaseType = atBaseType; + } - private String description; + public PerformanceIndicatorSpecificationRefOrValue atSchemaLocation(URI atSchemaLocation) { + this.atSchemaLocation = atSchemaLocation; + return this; + } - private String indicatorCategory; + /** + * 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; + } - private String indicatorUnit; + public PerformanceIndicatorSpecificationRefOrValue atType(String atType) { + this.atType = atType; + return this; + } - private String name; + /** + * When sub-classing, this defines the sub-class Extensible name + * + * @return atType + */ - private String perspective; + @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; + } - private String version; + public void setAtType(String atType) { + this.atType = atType; + } - private CollectionType collectionType; + public PerformanceIndicatorSpecificationRefOrValue atReferredType(String atReferredType) { + this.atReferredType = atReferredType; + return this; + } - private IndicatorType indicatorType; + /** + * The actual type of the target instance when needed for disambiguation. + * + * @return atReferredType + */ - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + @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; + } - private TimePeriod validFor; + public void setAtReferredType(String atReferredType) { + this.atReferredType = atReferredType; + } - private String atBaseType; - - private URI atSchemaLocation; + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationRefOrValue = (PerformanceIndicatorSpecificationRefOrValue) o; + return Objects.equals(this.id, performanceIndicatorSpecificationRefOrValue.id) && + Objects.equals(this.href, performanceIndicatorSpecificationRefOrValue.href) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationRefOrValue.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationRefOrValue.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecificationRefOrValue.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationRefOrValue.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationRefOrValue.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecificationRefOrValue.name) && + Objects.equals(this.perspective, performanceIndicatorSpecificationRefOrValue.perspective) && + Objects.equals(this.version, performanceIndicatorSpecificationRefOrValue.version) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationRefOrValue.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationRefOrValue.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationRefOrValue.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecificationRefOrValue.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefOrValue.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefOrValue.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationRefOrValue.atType) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefOrValue.atReferredType); + } - private String atType; - - private String atReferredType; + @Override + public int hashCode() { + return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, version, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType, atReferredType); + } - public PerformanceIndicatorSpecificationRefOrValue id(String id) { - this.id = id; - return this; - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRefOrValue {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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(); + } - /** - * A unique identifier for the PerformanceIndicatorSpecification. - * @return id - */ - - @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecificationRefOrValue derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecificationRefOrValue description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecificationRefOrValue indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecificationRefOrValue indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecificationRefOrValue name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecificationRefOrValue perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecificationRefOrValue version(String version) { - this.version = version; - return this; - } - - /** - * Version of the performance indicator specification - * @return version - */ - - @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("version") - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public PerformanceIndicatorSpecificationRefOrValue collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecificationRefOrValue indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecificationRefOrValue addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecificationRefOrValue validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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; - } - PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationRefOrValue = (PerformanceIndicatorSpecificationRefOrValue) o; - return Objects.equals(this.id, performanceIndicatorSpecificationRefOrValue.id) && - Objects.equals(this.href, performanceIndicatorSpecificationRefOrValue.href) && - Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationRefOrValue.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecificationRefOrValue.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecificationRefOrValue.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationRefOrValue.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationRefOrValue.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecificationRefOrValue.name) && - Objects.equals(this.perspective, performanceIndicatorSpecificationRefOrValue.perspective) && - Objects.equals(this.version, performanceIndicatorSpecificationRefOrValue.version) && - Objects.equals(this.collectionType, performanceIndicatorSpecificationRefOrValue.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecificationRefOrValue.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationRefOrValue.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecificationRefOrValue.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefOrValue.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefOrValue.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationRefOrValue.atType) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefOrValue.atReferredType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, version, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType, atReferredType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationRefOrValue {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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 "); - } + /** + * 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/PerformanceIndicatorSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java index 19130b9..0d3a913 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java @@ -1,28 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.net.URI; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href @@ -33,384 +21,398 @@ import javax.annotation.Generated; @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 PerformanceIndicatorSpecificationUpdate { - private String derivationAlgorithm; + private String derivationAlgorithm; + + private String derivationMethod; + + private String description; + + private String indicatorCategory; + + private String indicatorUnit; + + private String name; + + private String perspective; + + private CollectionType collectionType; + + private IndicatorType indicatorType; + + @Valid + private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); + + private TimePeriod validFor; + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public PerformanceIndicatorSpecificationUpdate derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationUpdate derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationUpdate description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationUpdate indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationUpdate indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationUpdate name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationUpdate perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationUpdate collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationUpdate indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationUpdate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } - private String derivationMethod; - - private String description; + /** + * Get performanceIndicatorSpecRelationship + * + * @return performanceIndicatorSpecRelationship + */ + @Valid + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } - private String indicatorCategory; - - private String indicatorUnit; + public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } - private String name; - - private String perspective; + public PerformanceIndicatorSpecificationUpdate validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } - private CollectionType collectionType; - - private IndicatorType indicatorType; - - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecificationUpdate derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecificationUpdate derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecificationUpdate description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecificationUpdate indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecificationUpdate indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecificationUpdate name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecificationUpdate perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecificationUpdate collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecificationUpdate indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecificationUpdate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecificationUpdate validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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; - } - PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecificationUpdate = (PerformanceIndicatorSpecificationUpdate) o; - return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationUpdate.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecificationUpdate.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecificationUpdate.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationUpdate.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationUpdate.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecificationUpdate.name) && - Objects.equals(this.perspective, performanceIndicatorSpecificationUpdate.perspective) && - Objects.equals(this.collectionType, performanceIndicatorSpecificationUpdate.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecificationUpdate.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationUpdate.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecificationUpdate.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationUpdate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationUpdate {\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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 "); - } + /** + * Get validFor + * + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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; + } + PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecificationUpdate = (PerformanceIndicatorSpecificationUpdate) o; + return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationUpdate.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationUpdate.derivationMethod) && + Objects.equals(this.description, performanceIndicatorSpecificationUpdate.description) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationUpdate.indicatorCategory) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationUpdate.indicatorUnit) && + Objects.equals(this.name, performanceIndicatorSpecificationUpdate.name) && + Objects.equals(this.perspective, performanceIndicatorSpecificationUpdate.perspective) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationUpdate.collectionType) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationUpdate.indicatorType) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationUpdate.performanceIndicatorSpecRelationship) && + Objects.equals(this.validFor, performanceIndicatorSpecificationUpdate.validFor) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationUpdate.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationUpdate.atSchemaLocation) && + Objects.equals(this.atType, performanceIndicatorSpecificationUpdate.atType); + } + + @Override + public int hashCode() { + return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationUpdate {\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java index 983e91a..1fd17d5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -1,18 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ProtocolTransferData @@ -21,63 +13,64 @@ import javax.annotation.Generated; @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 ProtocolTransferData { - private String transportProtocol; + private String transportProtocol; - public ProtocolTransferData transportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - return this; - } + public ProtocolTransferData transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } - /** - * Get transportProtocol - * @return transportProtocol - */ - - @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("transportProtocol") - public String getTransportProtocol() { - return transportProtocol; - } + /** + * Get transportProtocol + * + * @return transportProtocol + */ - public void setTransportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - } + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; } - if (o == null || getClass() != o.getClass()) { - return false; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProtocolTransferData protocolTransferData = (ProtocolTransferData) o; + return Objects.equals(this.transportProtocol, protocolTransferData.transportProtocol); } - ProtocolTransferData protocolTransferData = (ProtocolTransferData) o; - return Objects.equals(this.transportProtocol, protocolTransferData.transportProtocol); - } - @Override - public int hashCode() { - return Objects.hash(transportProtocol); - } + @Override + public int hashCode() { + return Objects.hash(transportProtocol); + } - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProtocolTransferData {\n"); - sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).append("\n"); - sb.append("}"); - return sb.toString(); - } + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProtocolTransferData {\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).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"; + /** + * 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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java index 8f675ae..bc1954d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java @@ -1,66 +1,55 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Possible values for the reporting period */ @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public enum ReportingPeriod { - - R_1MN("r_1mn"), - - R_5MN("r_5mn"), - - R_15MN("r_15mn"), - - R_30MN("r_30mn"), - - R_1H("r_1h"), - - R_24H("r_24h"), - - NA("na"); - - private String value; - - ReportingPeriod(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ReportingPeriod fromValue(String value) { - for (ReportingPeriod b : ReportingPeriod.values()) { - if (b.value.equals(value)) { - return b; - } + + R_1MN("r_1mn"), + + R_5MN("r_5mn"), + + R_15MN("r_15mn"), + + R_30MN("r_30mn"), + + R_1H("r_1h"), + + R_24H("r_24h"), + + NA("na"); + + private String value; + + ReportingPeriod(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReportingPeriod fromValue(String value) { + for (ReportingPeriod b : ReportingPeriod.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index 5f94485..a42007c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -1,26 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrence; -import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinition; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * The schedule definition for running jobs. @@ -30,266 +21,275 @@ import javax.annotation.Generated; @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 ScheduleDefinition { - private String recurringFrequency; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionEndTime; - - private String scheduleDefinitionHourRange; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionStartTime; - - private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; - - @Valid - private List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public ScheduleDefinition recurringFrequency(String recurringFrequency) { - this.recurringFrequency = recurringFrequency; - return this; - } - - /** - * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour - * @return recurringFrequency - */ - - @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("recurringFrequency") - public String getRecurringFrequency() { - return recurringFrequency; - } - - public void setRecurringFrequency(String recurringFrequency) { - this.recurringFrequency = recurringFrequency; - } - - public ScheduleDefinition scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { - this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; - return this; - } - - /** - * The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. - * @return scheduleDefinitionEndTime - */ - @Valid - @Schema(name = "scheduleDefinitionEndTime", description = "The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionEndTime") - public OffsetDateTime getScheduleDefinitionEndTime() { - return scheduleDefinitionEndTime; - } - - public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { - this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; - } - - public ScheduleDefinition scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { - this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; - return this; - } - - /** - * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. - * @return scheduleDefinitionHourRange - */ - - @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionHourRange") - public String getScheduleDefinitionHourRange() { - return scheduleDefinitionHourRange; - } - - public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { - this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; - } - - public ScheduleDefinition scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { - this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; - return this; - } - - /** - * The Start time of the Schedule Definition - * @return scheduleDefinitionStartTime - */ - @Valid - @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionStartTime") - public OffsetDateTime getScheduleDefinitionStartTime() { - return scheduleDefinitionStartTime; - } - - public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { - this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; - } - - public ScheduleDefinition monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { - this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; - return this; - } - - /** - * Get monthlyScheduleDayOfWeekDefinition - * @return monthlyScheduleDayOfWeekDefinition - */ - @Valid - @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("MonthlyScheduleDayOfWeekDefinition") - public MonthlyScheduleDayOfWeekDefinition getMonthlyScheduleDayOfWeekDefinition() { - return monthlyScheduleDayOfWeekDefinition; - } - - public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { - this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; - } - - public ScheduleDefinition weeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { - this.weeklyScheduledDefinition = weeklyScheduledDefinition; - return this; - } - - public ScheduleDefinition addWeeklyScheduledDefinitionItem(DayOfWeekRecurrence weeklyScheduledDefinitionItem) { - if (this.weeklyScheduledDefinition == null) { - this.weeklyScheduledDefinition = new ArrayList<>(); - } - this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); - return this; - } - - /** - * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. - * @return weeklyScheduledDefinition - */ - @Valid - @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("WeeklyScheduledDefinition") - public List<@Valid DayOfWeekRecurrence> getWeeklyScheduledDefinition() { - return weeklyScheduledDefinition; - } - - public void setWeeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { - this.weeklyScheduledDefinition = weeklyScheduledDefinition; - } - - public ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition 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; - } - ScheduleDefinition scheduleDefinition = (ScheduleDefinition) o; - return Objects.equals(this.recurringFrequency, scheduleDefinition.recurringFrequency) && - Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinition.scheduleDefinitionEndTime) && - Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinition.scheduleDefinitionHourRange) && - Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinition.scheduleDefinitionStartTime) && - Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinition.monthlyScheduleDayOfWeekDefinition) && - Objects.equals(this.weeklyScheduledDefinition, scheduleDefinition.weeklyScheduledDefinition) && - Objects.equals(this.atBaseType, scheduleDefinition.atBaseType) && - Objects.equals(this.atSchemaLocation, scheduleDefinition.atSchemaLocation) && - Objects.equals(this.atType, scheduleDefinition.atType); - } - - @Override - public int hashCode() { - return Objects.hash(recurringFrequency, scheduleDefinitionEndTime, scheduleDefinitionHourRange, scheduleDefinitionStartTime, monthlyScheduleDayOfWeekDefinition, weeklyScheduledDefinition, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ScheduleDefinition {\n"); - sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); - sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); - sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); - sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); - sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).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 "); - } + private String recurringFrequency; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionEndTime; + + private String scheduleDefinitionHourRange; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionStartTime; + + private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; + + @Valid + private List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public ScheduleDefinition recurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + return this; + } + + /** + * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour + * + * @return recurringFrequency + */ + + @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringFrequency") + public String getRecurringFrequency() { + return recurringFrequency; + } + + public void setRecurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + } + + public ScheduleDefinition scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + return this; + } + + /** + * The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. + * + * @return scheduleDefinitionEndTime + */ + @Valid + @Schema(name = "scheduleDefinitionEndTime", description = "The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionEndTime") + public OffsetDateTime getScheduleDefinitionEndTime() { + return scheduleDefinitionEndTime; + } + + public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + } + + public ScheduleDefinition scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + return this; + } + + /** + * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. + * + * @return scheduleDefinitionHourRange + */ + + @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionHourRange") + public String getScheduleDefinitionHourRange() { + return scheduleDefinitionHourRange; + } + + public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + } + + public ScheduleDefinition scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + return this; + } + + /** + * The Start time of the Schedule Definition + * + * @return scheduleDefinitionStartTime + */ + @Valid + @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionStartTime") + public OffsetDateTime getScheduleDefinitionStartTime() { + return scheduleDefinitionStartTime; + } + + public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + } + + public ScheduleDefinition monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + return this; + } + + /** + * Get monthlyScheduleDayOfWeekDefinition + * + * @return monthlyScheduleDayOfWeekDefinition + */ + @Valid + @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") + public MonthlyScheduleDayOfWeekDefinition getMonthlyScheduleDayOfWeekDefinition() { + return monthlyScheduleDayOfWeekDefinition; + } + + public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + } + + public ScheduleDefinition weeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + return this; + } + + public ScheduleDefinition addWeeklyScheduledDefinitionItem(DayOfWeekRecurrence weeklyScheduledDefinitionItem) { + if (this.weeklyScheduledDefinition == null) { + this.weeklyScheduledDefinition = new ArrayList<>(); + } + this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); + return this; + } + + /** + * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. + * + * @return weeklyScheduledDefinition + */ + @Valid + @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("WeeklyScheduledDefinition") + public List<@Valid DayOfWeekRecurrence> getWeeklyScheduledDefinition() { + return weeklyScheduledDefinition; + } + + public void setWeeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + } + + public ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition 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; + } + ScheduleDefinition scheduleDefinition = (ScheduleDefinition) o; + return Objects.equals(this.recurringFrequency, scheduleDefinition.recurringFrequency) && + Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinition.scheduleDefinitionEndTime) && + Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinition.scheduleDefinitionHourRange) && + Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinition.scheduleDefinitionStartTime) && + Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinition.monthlyScheduleDayOfWeekDefinition) && + Objects.equals(this.weeklyScheduledDefinition, scheduleDefinition.weeklyScheduledDefinition) && + Objects.equals(this.atBaseType, scheduleDefinition.atBaseType) && + Objects.equals(this.atSchemaLocation, scheduleDefinition.atSchemaLocation) && + Objects.equals(this.atType, scheduleDefinition.atType); + } + + @Override + public int hashCode() { + return Objects.hash(recurringFrequency, scheduleDefinitionEndTime, scheduleDefinitionHourRange, scheduleDefinitionStartTime, monthlyScheduleDayOfWeekDefinition, weeklyScheduledDefinition, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleDefinition {\n"); + sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); + sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); + sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); + sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); + sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); + sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).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/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index 9199f75..b9c7ab2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -1,20 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; +import java.time.OffsetDateTime; +import java.util.Objects; /** * A period of time, either as a deadline (endDateTime only) a startDateTime only, or both @@ -24,89 +18,91 @@ import javax.annotation.Generated; @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 TimePeriod { - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime endDateTime; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime startDateTime; - - public TimePeriod endDateTime(OffsetDateTime endDateTime) { - this.endDateTime = endDateTime; - return this; - } - - /** - * End of the time period, using IETC-RFC-3339 format - * @return endDateTime - */ - @Valid - @Schema(name = "endDateTime", example = "1985-04-12T23:20:50.520Z", description = "End of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("endDateTime") - public OffsetDateTime getEndDateTime() { - return endDateTime; - } - - public void setEndDateTime(OffsetDateTime endDateTime) { - this.endDateTime = endDateTime; - } - - public TimePeriod startDateTime(OffsetDateTime startDateTime) { - this.startDateTime = startDateTime; - return this; - } - - /** - * Start of the time period, using IETC-RFC-3339 format - * @return startDateTime - */ - @Valid - @Schema(name = "startDateTime", example = "1985-04-12T23:20:50.520Z", description = "Start of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("startDateTime") - public OffsetDateTime getStartDateTime() { - return startDateTime; - } - - public void setStartDateTime(OffsetDateTime startDateTime) { - this.startDateTime = startDateTime; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endDateTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startDateTime; + + public TimePeriod endDateTime(OffsetDateTime endDateTime) { + this.endDateTime = endDateTime; + return this; + } + + /** + * End of the time period, using IETC-RFC-3339 format + * + * @return endDateTime + */ + @Valid + @Schema(name = "endDateTime", example = "1985-04-12T23:20:50.520Z", description = "End of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("endDateTime") + public OffsetDateTime getEndDateTime() { + return endDateTime; + } + + public void setEndDateTime(OffsetDateTime endDateTime) { + this.endDateTime = endDateTime; + } + + public TimePeriod startDateTime(OffsetDateTime startDateTime) { + this.startDateTime = startDateTime; + return this; + } + + /** + * Start of the time period, using IETC-RFC-3339 format + * + * @return startDateTime + */ + @Valid + @Schema(name = "startDateTime", example = "1985-04-12T23:20:50.520Z", description = "Start of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("startDateTime") + public OffsetDateTime getStartDateTime() { + return startDateTime; } - if (o == null || getClass() != o.getClass()) { - return false; + + public void setStartDateTime(OffsetDateTime startDateTime) { + this.startDateTime = startDateTime; } - TimePeriod timePeriod = (TimePeriod) o; - return Objects.equals(this.endDateTime, timePeriod.endDateTime) && - Objects.equals(this.startDateTime, timePeriod.startDateTime); - } - - @Override - public int hashCode() { - return Objects.hash(endDateTime, startDateTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TimePeriod {\n"); - sb.append(" endDateTime: ").append(toIndentedString(endDateTime)).append("\n"); - sb.append(" startDateTime: ").append(toIndentedString(startDateTime)).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"; + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TimePeriod timePeriod = (TimePeriod) o; + return Objects.equals(this.endDateTime, timePeriod.endDateTime) && + Objects.equals(this.startDateTime, timePeriod.startDateTime); + } + + @Override + public int hashCode() { + return Objects.hash(endDateTime, startDateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TimePeriod {\n"); + sb.append(" endDateTime: ").append(toIndentedString(endDateTime)).append("\n"); + sb.append(" startDateTime: ").append(toIndentedString(startDateTime)).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 "); } - return o.toString().replace("\n", "\n "); - } } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index 0c613cb..009fc04 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -1,25 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; +import io.swagger.v3.oas.annotations.media.Schema; +import org.springframework.format.annotation.DateTimeFormat; + +import javax.annotation.Generated; +import javax.validation.Valid; +import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; -import javax.annotation.Generated; +import java.util.Objects; /** * Tracking records allow the tracking of modifications on the problem. The tracking records should not be embedded in the problem to allow retrieving the problem without the tracking records @@ -29,265 +21,274 @@ import javax.annotation.Generated; @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 TrackingRecord { - private String id; - - private String description; - - private String systemId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime time; - - private String user; - - @Valid - private List<@Valid Characteristic> characteristic = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public TrackingRecord id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the TrackingRecord - * @return id - */ - - @Schema(name = "id", description = "Identifier of the TrackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public TrackingRecord description(String description) { - this.description = description; - return this; - } - - /** - * Describes the action being done, such as: ack, clear - * @return description - */ - - @Schema(name = "description", example = "", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public TrackingRecord systemId(String systemId) { - this.systemId = systemId; - return this; - } - - /** - * Describes the system Id from which the action was done - * @return systemId - */ - - @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("systemId") - public String getSystemId() { - return systemId; - } - - public void setSystemId(String systemId) { - this.systemId = systemId; - } - - public TrackingRecord time(OffsetDateTime time) { - this.time = time; - return this; - } - - /** - * Describes the time at which the action was done - * @return time - */ - @Valid - @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("time") - public OffsetDateTime getTime() { - return time; - } - - public void setTime(OffsetDateTime time) { - this.time = time; - } - - public TrackingRecord user(String user) { - this.user = user; - return this; - } - - /** - * Describes the user doing the action - * @return user - */ - - @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("user") - public String getUser() { - return user; - } - - public void setUser(String user) { - this.user = user; - } - - public TrackingRecord characteristic(List<@Valid Characteristic> characteristic) { - this.characteristic = characteristic; - return this; - } - - public TrackingRecord addCharacteristicItem(Characteristic characteristicItem) { - if (this.characteristic == null) { - this.characteristic = new ArrayList<>(); - } - this.characteristic.add(characteristicItem); - return this; - } - - /** - * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces - * @return characteristic - */ - @Valid - @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("characteristic") - public List<@Valid Characteristic> getCharacteristic() { - return characteristic; - } - - public void setCharacteristic(List<@Valid Characteristic> characteristic) { - this.characteristic = characteristic; - } - - public TrackingRecord 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 TrackingRecord 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 TrackingRecord 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; - } - TrackingRecord trackingRecord = (TrackingRecord) o; - return Objects.equals(this.id, trackingRecord.id) && - Objects.equals(this.description, trackingRecord.description) && - Objects.equals(this.systemId, trackingRecord.systemId) && - Objects.equals(this.time, trackingRecord.time) && - Objects.equals(this.user, trackingRecord.user) && - Objects.equals(this.characteristic, trackingRecord.characteristic) && - Objects.equals(this.atBaseType, trackingRecord.atBaseType) && - Objects.equals(this.atSchemaLocation, trackingRecord.atSchemaLocation) && - Objects.equals(this.atType, trackingRecord.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, description, systemId, time, user, characteristic, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TrackingRecord {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); - sb.append(" time: ").append(toIndentedString(time)).append("\n"); - sb.append(" user: ").append(toIndentedString(user)).append("\n"); - sb.append(" characteristic: ").append(toIndentedString(characteristic)).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 "); - } + private String id; + + private String description; + + private String systemId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime time; + + private String user; + + @Valid + private List<@Valid Characteristic> characteristic = new ArrayList<>(); + + private String atBaseType; + + private URI atSchemaLocation; + + private String atType; + + public TrackingRecord id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the TrackingRecord + * + * @return id + */ + + @Schema(name = "id", description = "Identifier of the TrackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public TrackingRecord description(String description) { + this.description = description; + return this; + } + + /** + * Describes the action being done, such as: ack, clear + * + * @return description + */ + + @Schema(name = "description", example = "", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TrackingRecord systemId(String systemId) { + this.systemId = systemId; + return this; + } + + /** + * Describes the system Id from which the action was done + * + * @return systemId + */ + + @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("systemId") + public String getSystemId() { + return systemId; + } + + public void setSystemId(String systemId) { + this.systemId = systemId; + } + + public TrackingRecord time(OffsetDateTime time) { + this.time = time; + return this; + } + + /** + * Describes the time at which the action was done + * + * @return time + */ + @Valid + @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + public void setTime(OffsetDateTime time) { + this.time = time; + } + + public TrackingRecord user(String user) { + this.user = user; + return this; + } + + /** + * Describes the user doing the action + * + * @return user + */ + + @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("user") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public TrackingRecord characteristic(List<@Valid Characteristic> characteristic) { + this.characteristic = characteristic; + return this; + } + + public TrackingRecord addCharacteristicItem(Characteristic characteristicItem) { + if (this.characteristic == null) { + this.characteristic = new ArrayList<>(); + } + this.characteristic.add(characteristicItem); + return this; + } + + /** + * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces + * + * @return characteristic + */ + @Valid + @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristic") + public List<@Valid Characteristic> getCharacteristic() { + return characteristic; + } + + public void setCharacteristic(List<@Valid Characteristic> characteristic) { + this.characteristic = characteristic; + } + + public TrackingRecord 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 TrackingRecord 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 TrackingRecord 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; + } + TrackingRecord trackingRecord = (TrackingRecord) o; + return Objects.equals(this.id, trackingRecord.id) && + Objects.equals(this.description, trackingRecord.description) && + Objects.equals(this.systemId, trackingRecord.systemId) && + Objects.equals(this.time, trackingRecord.time) && + Objects.equals(this.user, trackingRecord.user) && + Objects.equals(this.characteristic, trackingRecord.characteristic) && + Objects.equals(this.atBaseType, trackingRecord.atBaseType) && + Objects.equals(this.atSchemaLocation, trackingRecord.atSchemaLocation) && + Objects.equals(this.atType, trackingRecord.atType); + } + + @Override + public int hashCode() { + return Objects.hash(id, description, systemId, time, user, characteristic, atBaseType, atSchemaLocation, atType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrackingRecord {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" characteristic: ").append(toIndentedString(characteristic)).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 "); + } } -- GitLab From 55d3c63f8d7cad1cdd678353263aa01c8af883e4 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Mon, 29 Apr 2024 12:54:47 +0300 Subject: [PATCH 04/19] Added the correct imports. No errors after this --- .../org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java | 3 +-- src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java | 3 +-- src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Error.java | 3 +-- .../java/org/etsi/osl/tmf/pm628/model/EventSubscription.java | 2 +- .../org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java | 2 +- src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java | 3 +-- .../java/org/etsi/osl/tmf/pm628/model/FileTransferData.java | 3 +-- .../java/org/etsi/osl/tmf/pm628/model/ManagementJob.java | 5 +++-- .../etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java | 5 +++-- .../MeasurementCollectionJobAttributeValueChangeEvent.java | 3 +-- ...urementCollectionJobAttributeValueChangeEventPayload.java | 3 +-- .../osl/tmf/pm628/model/MeasurementCollectionJobCreate.java | 5 +++-- .../tmf/pm628/model/MeasurementCollectionJobCreateEvent.java | 3 +-- .../model/MeasurementCollectionJobCreateEventPayload.java | 3 +-- .../tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java | 3 +-- .../model/MeasurementCollectionJobDeleteEventPayload.java | 3 +-- .../MeasurementCollectionJobExecutionStateChangeEvent.java | 3 +-- ...urementCollectionJobExecutionStateChangeEventPayload.java | 3 +-- .../MeasurementCollectionJobFilesPreparationErrorEvent.java | 3 +-- ...rementCollectionJobFilesPreparationErrorEventPayload.java | 3 +-- .../pm628/model/MeasurementCollectionJobFilesReadyEvent.java | 3 +-- .../MeasurementCollectionJobFilesReadyEventPayload.java | 3 +-- .../osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java | 5 +++-- .../java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java | 5 +++-- .../org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java | 3 +-- .../etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java | 3 +-- .../tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java | 3 +-- .../org/etsi/osl/tmf/pm628/model/OnDemandCollection.java | 5 +++-- .../model/OnDemandCollectionAttributeValueChangeEvent.java | 3 +-- .../OnDemandCollectionAttributeValueChangeEventPayload.java | 3 +-- .../etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java | 5 +++-- .../osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java | 3 +-- .../pm628/model/OnDemandCollectionCreateEventPayload.java | 3 +-- .../osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java | 3 +-- .../pm628/model/OnDemandCollectionDeleteEventPayload.java | 3 +-- .../model/OnDemandCollectionExecutionStateChangeEvent.java | 3 +-- .../OnDemandCollectionExecutionStateChangeEventPayload.java | 3 +-- .../model/OnDemandCollectionFilesPreparationErrorEvent.java | 3 +-- .../OnDemandCollectionFilesPreparationErrorEventPayload.java | 3 +-- .../tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java | 3 +-- .../model/OnDemandCollectionFilesReadyEventPayload.java | 3 +-- .../etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java | 5 +++-- src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java | 3 +-- .../pm628/model/PerformanceIndicatorGroupSpecification.java | 5 +++-- .../model/PerformanceIndicatorGroupSpecificationCreate.java | 5 +++-- .../model/PerformanceIndicatorGroupSpecificationUpdate.java | 5 +++-- .../pm628/model/PerformanceIndicatorSpecRelationship.java | 4 ++-- .../tmf/pm628/model/PerformanceIndicatorSpecification.java | 3 +-- .../pm628/model/PerformanceIndicatorSpecificationCreate.java | 3 +-- .../pm628/model/PerformanceIndicatorSpecificationRef.java | 4 ++-- .../model/PerformanceIndicatorSpecificationRefOrValue.java | 3 +-- .../pm628/model/PerformanceIndicatorSpecificationUpdate.java | 3 +-- .../org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java | 3 +-- src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java | 3 +-- .../java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java | 3 +-- 56 files changed, 81 insertions(+), 110 deletions(-) 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 index 7254842..36d99c3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java index 71a11ab..fbad928 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java index d8595d2..7da76ba 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -2,10 +2,10 @@ 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 javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java index c66eaad..1cea0e4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -2,11 +2,10 @@ 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 javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java index 6e891d4..87d8267 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java @@ -2,9 +2,9 @@ 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 javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java index 59aa234..b2f5e53 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java @@ -2,9 +2,9 @@ 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 javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java index c7b31a0..a9075c1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index bd11298..7f1ff23 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index 565d11a..3371345 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -2,11 +2,12 @@ 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 jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index 157e970..057acc3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -2,11 +2,12 @@ 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 jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java index 8c49f06..d837fb3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java index 4aa1fbb..d3da388 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java index 892fd64..4177293 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java @@ -3,11 +3,12 @@ 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 jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java index dfbb9bc..e106861 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java index 897a894..1312f38 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java index 5c1f10c..7d79bd6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java index 35da59c..8ccfcd3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java index aec8ca2..715bfe1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java index fff1402..0282996 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java index ef0ff2e..75e2e2c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java index af745fa..7d65ce0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java index df5911b..acdf5ab 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java index 0b3f745..06066cd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java index 60aaa19..8bca70a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java @@ -3,11 +3,12 @@ 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 jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index 42f3b2e..440a13b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -2,11 +2,12 @@ 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 jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index b283c7d..722481f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index e55cd48..d74981f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index 65ea5e5..52193b7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java index ac4401a..7dfa857 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java @@ -2,11 +2,12 @@ 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 jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java index 1298c46..d29c68c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java index 1640784..3ee0696 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java index c9a910a..0ff1a60 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java @@ -3,11 +3,12 @@ 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 jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java index a3bdac7..d1deb05 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java index 91980c0..07ad76f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java index 0b654ac..8d0a723 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java index c59fcf3..95d0a06 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java index b51b0b9..96a668f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java index d9b4db1..ab8e553 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java index e1437aa..fa3d18b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java index 5741949..044648f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java index 529c98b..27322a8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java index 871a85f..9e671c0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java index 57a790b..2e859df 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java @@ -3,11 +3,12 @@ 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 jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 5302495..d8b3064 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index 8f95362..4fa1a9e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -2,10 +2,11 @@ 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 jakarta.validation.constraints.Size; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java index e7165b2..5131c82 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java @@ -3,10 +3,11 @@ 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 jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java index 1370cad..e80d40a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java @@ -3,10 +3,11 @@ 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 jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index e486854..417d17c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -2,10 +2,10 @@ 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 javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 0aef7e3..903bc33 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java index 525b1e2..ec33a71 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java @@ -3,10 +3,9 @@ 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 javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index e1c1396..b0687fd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -2,10 +2,10 @@ 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 javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index e40d3e4..4abb583 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -2,10 +2,9 @@ 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 javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java index 0d3a913..9fd5fb2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java @@ -3,10 +3,9 @@ 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 javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index a42007c..317681e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index b9c7ab2..b31e345 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.time.OffsetDateTime; import java.util.Objects; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index 009fc04..bf7a197 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -2,11 +2,10 @@ 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.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; import java.net.URI; import java.time.OffsetDateTime; import java.util.ArrayList; -- GitLab From cf8ad8ab7878da5477b0e3a8b12edb6a44442be0 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Mon, 29 Apr 2024 13:01:43 +0300 Subject: [PATCH 05/19] Added new common models. Fixed 1 import. --- .../osl/tmf/common/model/Addressable.java | 104 +++++++ .../org/etsi/osl/tmf/common/model/Entity.java | 179 ++++++++++++ .../etsi/osl/tmf/common/model/EntityRef.java | 241 ++++++++++++++++ .../org/etsi/osl/tmf/common/model/Error.java | 267 ++++++++++++++++++ .../tmf/pm628/model/DayOfMonthRecurrence.java | 4 +- 5 files changed, 793 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/etsi/osl/tmf/common/model/Addressable.java create mode 100644 src/main/java/org/etsi/osl/tmf/common/model/Entity.java create mode 100644 src/main/java/org/etsi/osl/tmf/common/model/EntityRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/common/model/Error.java 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 0000000..6b3ab2d --- /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 0000000..ad2a081 --- /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 0000000..b3d5ffe --- /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 0000000..7c868d3 --- /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/pm628/model/DayOfMonthRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java index 58538d5..db9a1fb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -5,8 +5,8 @@ import io.swagger.v3.oas.annotations.media.Schema; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; + import java.net.URI; import java.time.OffsetDateTime; import java.util.Objects; -- GitLab From dddaa5d808d95524ece980744abc5053cd56c63b Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Wed, 15 May 2024 10:19:23 +0300 Subject: [PATCH 06/19] Deleted model from old swagger --- .../etsi/osl/tmf/pm628/model/Addressable.java | 104 --- .../tmf/pm628/model/AdministrativeState.java | 45 -- .../osl/tmf/pm628/model/Characteristic.java | 278 ------- .../model/CharacteristicRelationship.java | 204 ------ .../osl/tmf/pm628/model/CollectionType.java | 51 -- .../tmf/pm628/model/CompressionEnumType.java | 49 -- .../osl/tmf/pm628/model/CompressionType.java | 78 -- .../tmf/pm628/model/DayOfMonthRecurrence.java | 157 ---- .../tmf/pm628/model/DayOfWeekRecurrence.java | 156 ---- .../etsi/osl/tmf/pm628/model/Duration.java | 102 --- .../org/etsi/osl/tmf/pm628/model/Entity.java | 179 ----- .../etsi/osl/tmf/pm628/model/EntityRef.java | 241 ------ .../org/etsi/osl/tmf/pm628/model/Error.java | 267 ------- .../tmf/pm628/model/EventSubscription.java | 140 ---- .../pm628/model/EventSubscriptionInput.java | 114 --- .../tmf/pm628/model/ExecutionStateType.java | 55 -- .../etsi/osl/tmf/pm628/model/Extensible.java | 129 ---- .../osl/tmf/pm628/model/FileTransferData.java | 278 ------- .../etsi/osl/tmf/pm628/model/Granularity.java | 59 -- .../osl/tmf/pm628/model/IndicatorType.java | 49 -- .../osl/tmf/pm628/model/ManagementJob.java | 408 ----------- .../pm628/model/MeasurementCollectionJob.java | 686 ------------------ ...ollectionJobAttributeValueChangeEvent.java | 332 --------- ...onJobAttributeValueChangeEventPayload.java | 78 -- .../model/MeasurementCollectionJobCreate.java | 638 ---------------- .../MeasurementCollectionJobCreateEvent.java | 307 -------- ...rementCollectionJobCreateEventPayload.java | 78 -- .../MeasurementCollectionJobDeleteEvent.java | 307 -------- ...rementCollectionJobDeleteEventPayload.java | 78 -- ...ollectionJobExecutionStateChangeEvent.java | 307 -------- ...onJobExecutionStateChangeEventPayload.java | 78 -- ...llectionJobFilesPreparationErrorEvent.java | 307 -------- ...nJobFilesPreparationErrorEventPayload.java | 78 -- ...asurementCollectionJobFilesReadyEvent.java | 307 -------- ...ntCollectionJobFilesReadyEventPayload.java | 78 -- .../model/MeasurementCollectionJobUpdate.java | 638 ---------------- .../osl/tmf/pm628/model/MeasurementJob.java | 636 ---------------- .../pm628/model/MonitoredClassCriteria.java | 179 ----- .../model/MonitoredInstancesCriteria.java | 129 ---- .../MonthlyScheduleDayOfWeekDefinition.java | 189 ----- .../tmf/pm628/model/OnDemandCollection.java | 685 ----------------- ...ndCollectionAttributeValueChangeEvent.java | 332 --------- ...ctionAttributeValueChangeEventPayload.java | 78 -- .../pm628/model/OnDemandCollectionCreate.java | 638 ---------------- .../model/OnDemandCollectionCreateEvent.java | 307 -------- .../OnDemandCollectionCreateEventPayload.java | 78 -- .../model/OnDemandCollectionDeleteEvent.java | 307 -------- .../OnDemandCollectionDeleteEventPayload.java | 78 -- ...ndCollectionExecutionStateChangeEvent.java | 307 -------- ...ctionExecutionStateChangeEventPayload.java | 78 -- ...dCollectionFilesPreparationErrorEvent.java | 307 -------- ...tionFilesPreparationErrorEventPayload.java | 78 -- .../OnDemandCollectionFilesReadyEvent.java | 307 -------- ...emandCollectionFilesReadyEventPayload.java | 78 -- .../pm628/model/OnDemandCollectionUpdate.java | 638 ---------------- .../osl/tmf/pm628/model/PackingEnumType.java | 51 -- .../etsi/osl/tmf/pm628/model/PackingType.java | 78 -- ...erformanceIndicatorGroupSpecification.java | 255 ------- ...anceIndicatorGroupSpecificationCreate.java | 208 ------ ...anceIndicatorGroupSpecificationUpdate.java | 208 ------ .../PerformanceIndicatorSpecRelationship.java | 293 -------- .../PerformanceIndicatorSpecification.java | 465 ------------ ...rformanceIndicatorSpecificationCreate.java | 417 ----------- .../PerformanceIndicatorSpecificationRef.java | 266 ------- ...manceIndicatorSpecificationRefOrValue.java | 515 ------------- ...rformanceIndicatorSpecificationUpdate.java | 417 ----------- .../tmf/pm628/model/ProtocolTransferData.java | 76 -- .../osl/tmf/pm628/model/ReportingPeriod.java | 55 -- .../tmf/pm628/model/ScheduleDefinition.java | 294 -------- .../etsi/osl/tmf/pm628/model/TimePeriod.java | 107 --- .../osl/tmf/pm628/model/TrackingRecord.java | 293 -------- 71 files changed, 16867 deletions(-) delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Error.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java delete mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java deleted file mode 100644 index 1427899..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java +++ /dev/null @@ -1,104 +0,0 @@ -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 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/pm628/model/AdministrativeState.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java deleted file mode 100644 index e6de1eb..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java +++ /dev/null @@ -1,45 +0,0 @@ -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-04-25T11:17:58.147516734Z[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/Characteristic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java deleted file mode 100644 index 7994c01..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ /dev/null @@ -1,278 +0,0 @@ -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.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Describes a given characteristic of an object or entity through a name/value pair. - */ - -@Schema(name = "Characteristic", description = "Describes a given characteristic of an object or entity through a name/value pair.") -@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 Characteristic { - - private String id; - - private String name; - - private String valueType; - - @Valid - private List<@Valid CharacteristicRelationship> characteristicRelationship = new ArrayList<>(); - - private Object value; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public Characteristic() { - super(); - } - - /** - * Constructor with only required parameters - */ - public Characteristic(String name, Object value) { - this.name = name; - this.value = value; - } - - public Characteristic id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the characteristic - * - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public Characteristic name(String name) { - this.name = name; - return this; - } - - /** - * Name of the characteristic - * - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - 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<@Valid CharacteristicRelationship> 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; - } - - /** - * Get characteristicRelationship - * - * @return characteristicRelationship - */ - @Valid - @Schema(name = "characteristicRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("characteristicRelationship") - public List<@Valid CharacteristicRelationship> getCharacteristicRelationship() { - return characteristicRelationship; - } - - public void setCharacteristicRelationship(List<@Valid CharacteristicRelationship> characteristicRelationship) { - this.characteristicRelationship = characteristicRelationship; - } - - public Characteristic value(Object value) { - this.value = value; - return this; - } - - /** - * Get value - * - * @return value - */ - @NotNull - @Schema(name = "value", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("value") - public Object getValue() { - return value; - } - - public void setValue(Object value) { - this.value = value; - } - - public Characteristic 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 Characteristic 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 Characteristic 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; - } - Characteristic characteristic = (Characteristic) o; - return Objects.equals(this.id, characteristic.id) && - Objects.equals(this.name, characteristic.name) && - Objects.equals(this.valueType, characteristic.valueType) && - Objects.equals(this.characteristicRelationship, characteristic.characteristicRelationship) && - Objects.equals(this.value, characteristic.value) && - Objects.equals(this.atBaseType, characteristic.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristic.atSchemaLocation) && - Objects.equals(this.atType, characteristic.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, valueType, characteristicRelationship, value, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Characteristic {\n"); - sb.append(" id: ").append(toIndentedString(id)).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(" value: ").append(toIndentedString(value)).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/pm628/model/CharacteristicRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java deleted file mode 100644 index b01516b..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ /dev/null @@ -1,204 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.Objects; - -/** - * Another Characteristic that is related to the current Characteristic; - */ - -@Schema(name = "CharacteristicRelationship", description = "Another Characteristic that is related to the current Characteristic;") -@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 CharacteristicRelationship { - - private String id; - - private URI href; - - private String relationshipType; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public CharacteristicRelationship id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the characteristic - * - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public CharacteristicRelationship 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 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; - } - - public CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship 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; - } - CharacteristicRelationship characteristicRelationship = (CharacteristicRelationship) o; - return Objects.equals(this.id, characteristicRelationship.id) && - Objects.equals(this.href, characteristicRelationship.href) && - Objects.equals(this.relationshipType, characteristicRelationship.relationshipType) && - Objects.equals(this.atBaseType, characteristicRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicRelationship.atSchemaLocation) && - Objects.equals(this.atType, characteristicRelationship.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, relationshipType, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class CharacteristicRelationship {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).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/pm628/model/CollectionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java deleted file mode 100644 index c77dee4..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java +++ /dev/null @@ -1,51 +0,0 @@ -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-04-25T11:17:58.147516734Z[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 deleted file mode 100644 index c059fe6..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java +++ /dev/null @@ -1,49 +0,0 @@ -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-04-25T11:17:58.147516734Z[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 deleted file mode 100644 index cd05309..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ /dev/null @@ -1,78 +0,0 @@ -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 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-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public class CompressionType { - - 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/DayOfMonthRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java deleted file mode 100644 index db9a1fb..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ /dev/null @@ -1,157 +0,0 @@ -package org.etsi.osl.tmf.pm628.model; - -import com.fasterxml.jackson.annotation.JsonProperty; -import io.swagger.v3.oas.annotations.media.Schema; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import jakarta.validation.Valid; - -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * DayOfMonthRecurrence - */ - -@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 DayOfMonthRecurrence { - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - 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 OffsetDateTime getDates() { - return dates; - } - - public void setDates(OffsetDateTime dates) { - this.dates = dates; - } - - public DayOfMonthRecurrence 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 DayOfMonthRecurrence 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 DayOfMonthRecurrence 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; - } - DayOfMonthRecurrence dayOfMonthRecurrence = (DayOfMonthRecurrence) o; - return Objects.equals(this.dates, dayOfMonthRecurrence.dates) && - Objects.equals(this.atBaseType, dayOfMonthRecurrence.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfMonthRecurrence.atSchemaLocation) && - Objects.equals(this.atType, dayOfMonthRecurrence.atType); - } - - @Override - public int hashCode() { - return Objects.hash(dates, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DayOfMonthRecurrence {\n"); - sb.append(" dates: ").append(toIndentedString(dates)).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/pm628/model/DayOfWeekRecurrence.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java deleted file mode 100644 index 36d99c3..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ /dev/null @@ -1,156 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * DayOfWeekRecurrence - */ - -@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 DayOfWeekRecurrence { - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public DayOfWeekRecurrence 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; - } - - public DayOfWeekRecurrence 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 DayOfWeekRecurrence 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 DayOfWeekRecurrence 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; - } - DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o; - return Objects.equals(this.dates, dayOfWeekRecurrence.dates) && - Objects.equals(this.atBaseType, dayOfWeekRecurrence.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfWeekRecurrence.atSchemaLocation) && - Objects.equals(this.atType, dayOfWeekRecurrence.atType); - } - - @Override - public int hashCode() { - return Objects.hash(dates, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class DayOfWeekRecurrence {\n"); - sb.append(" dates: ").append(toIndentedString(dates)).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/pm628/model/Duration.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java deleted file mode 100644 index 20ee028..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ /dev/null @@ -1,102 +0,0 @@ -package org.etsi.osl.tmf.pm628.model; - -import com.fasterxml.jackson.annotation.JsonProperty; -import io.swagger.v3.oas.annotations.media.Schema; - -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-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public class Duration { - - private Integer amount; - - 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 "); - } -} - diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java deleted file mode 100644 index fbad928..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java +++ /dev/null @@ -1,179 +0,0 @@ -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 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/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java deleted file mode 100644 index 7da76ba..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java +++ /dev/null @@ -1,241 +0,0 @@ -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.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/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java deleted file mode 100644 index 1cea0e4..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java +++ /dev/null @@ -1,267 +0,0 @@ -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.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/pm628/model/EventSubscription.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java deleted file mode 100644 index 87d8267..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscription.java +++ /dev/null @@ -1,140 +0,0 @@ -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; - -/** - * Sets the communication endpoint address the service instance must use to deliver notification information - */ - -@Schema(name = "EventSubscription", description = "Sets the communication endpoint address the service instance must use to deliver notification information") -@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 EventSubscription { - - private String id; - - private String callback; - - private String query; - - public EventSubscription() { - super(); - } - - /** - * Constructor with only required parameters - */ - public EventSubscription(String id, String callback) { - this.id = id; - this.callback = callback; - } - - public EventSubscription id(String id) { - this.id = id; - return this; - } - - /** - * Id of the listener - * - * @return id - */ - @NotNull - @Schema(name = "id", description = "Id of the listener", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - 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 - */ - @NotNull - @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("callback") - 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("query") - public String getQuery() { - return query; - } - - public void setQuery(String query) { - this.query = query; - } - - @Override - public boolean equals(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(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/EventSubscriptionInput.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java deleted file mode 100644 index b2f5e53..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EventSubscriptionInput.java +++ /dev/null @@ -1,114 +0,0 @@ -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; - -/** - * Sets the communication endpoint address the service instance must use to deliver notification information - */ - -@Schema(name = "EventSubscriptionInput", description = "Sets the communication endpoint address the service instance must use to deliver notification information") -@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 EventSubscriptionInput { - - private String callback; - - private String query; - - public EventSubscriptionInput() { - super(); - } - - /** - * Constructor with only required parameters - */ - public EventSubscriptionInput(String callback) { - this.callback = callback; - } - - public EventSubscriptionInput callback(String callback) { - this.callback = callback; - return this; - } - - /** - * The callback being registered. - * - * @return callback - */ - @NotNull - @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("callback") - 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(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("query") - public String getQuery() { - return query; - } - - public void setQuery(String query) { - this.query = query; - } - - @Override - public boolean equals(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(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/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java deleted file mode 100644 index 1e5b56d..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.etsi.osl.tmf.pm628.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -import javax.annotation.Generated; - -/** - * Possible values for the state of the execution - */ - -@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public enum ExecutionStateType { - - ACKNOWLEDGED("acknowledged"), - - REJECTED("rejected"), - - PENDING("pending"), - - INPROGRESS("inProgress"), - - CANCELLED("cancelled"), - - COMPLETED("completed"), - - FAILED("failed"); - - private String value; - - ExecutionStateType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ExecutionStateType fromValue(String value) { - for (ExecutionStateType b : ExecutionStateType.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/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java deleted file mode 100644 index a9075c1..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java +++ /dev/null @@ -1,129 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.Objects; - -/** - * Base Extensible schema for use in TMForum Open-APIs - */ - -@Schema(name = "Extensible", description = "Base Extensible 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 Extensible { - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public Extensible 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 Extensible 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 Extensible 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; - } - Extensible extensible = (Extensible) o; - return Objects.equals(this.atBaseType, extensible.atBaseType) && - Objects.equals(this.atSchemaLocation, extensible.atSchemaLocation) && - Objects.equals(this.atType, extensible.atType); - } - - @Override - public int hashCode() { - return Objects.hash(atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Extensible {\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/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java deleted file mode 100644 index 7f1ff23..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ /dev/null @@ -1,278 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.Objects; - -/** - * FileTransferData - */ - -@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 FileTransferData { - - private String fileFormat; - - private URI fileLocation; - - private String transportProtocol; - - private CompressionType compressionType; - - private PackingType packingType; - - private Duration retentionPeriod; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public FileTransferData fileFormat(String fileFormat) { - this.fileFormat = fileFormat; - return this; - } - - /** - * Get fileFormat - * - * @return fileFormat - */ - - @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fileFormat") - public String getFileFormat() { - return fileFormat; - } - - public void setFileFormat(String fileFormat) { - this.fileFormat = fileFormat; - } - - public FileTransferData fileLocation(URI fileLocation) { - this.fileLocation = fileLocation; - return this; - } - - /** - * Get fileLocation - * - * @return fileLocation - */ - @Valid - @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fileLocation") - public URI getFileLocation() { - return fileLocation; - } - - public void setFileLocation(URI fileLocation) { - this.fileLocation = fileLocation; - } - - public FileTransferData transportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - return this; - } - - /** - * Get transportProtocol - * - * @return transportProtocol - */ - - @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("transportProtocol") - public String getTransportProtocol() { - return transportProtocol; - } - - public void setTransportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - } - - public FileTransferData compressionType(CompressionType compressionType) { - this.compressionType = compressionType; - return this; - } - - /** - * Get compressionType - * - * @return compressionType - */ - @Valid - @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("compressionType") - public CompressionType getCompressionType() { - return compressionType; - } - - public void setCompressionType(CompressionType compressionType) { - this.compressionType = compressionType; - } - - public FileTransferData packingType(PackingType packingType) { - this.packingType = packingType; - return this; - } - - /** - * Get packingType - * - * @return packingType - */ - @Valid - @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("packingType") - public PackingType getPackingType() { - return packingType; - } - - public void setPackingType(PackingType packingType) { - this.packingType = packingType; - } - - public FileTransferData retentionPeriod(Duration retentionPeriod) { - this.retentionPeriod = retentionPeriod; - return this; - } - - /** - * Get retentionPeriod - * - * @return retentionPeriod - */ - @Valid - @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("retentionPeriod") - public Duration getRetentionPeriod() { - return retentionPeriod; - } - - public void setRetentionPeriod(Duration retentionPeriod) { - this.retentionPeriod = retentionPeriod; - } - - public FileTransferData 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 FileTransferData 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 FileTransferData 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; - } - FileTransferData fileTransferData = (FileTransferData) o; - return Objects.equals(this.fileFormat, fileTransferData.fileFormat) && - Objects.equals(this.fileLocation, fileTransferData.fileLocation) && - Objects.equals(this.transportProtocol, fileTransferData.transportProtocol) && - Objects.equals(this.compressionType, fileTransferData.compressionType) && - Objects.equals(this.packingType, fileTransferData.packingType) && - Objects.equals(this.retentionPeriod, fileTransferData.retentionPeriod) && - Objects.equals(this.atBaseType, fileTransferData.atBaseType) && - Objects.equals(this.atSchemaLocation, fileTransferData.atSchemaLocation) && - Objects.equals(this.atType, fileTransferData.atType); - } - - @Override - public int hashCode() { - return Objects.hash(fileFormat, fileLocation, transportProtocol, compressionType, packingType, retentionPeriod, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class FileTransferData {\n"); - sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); - sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); - sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).append("\n"); - sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); - sb.append(" packingType: ").append(toIndentedString(packingType)).append("\n"); - sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).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/pm628/model/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java deleted file mode 100644 index 692a026..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.etsi.osl.tmf.pm628.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -import javax.annotation.Generated; - -/** - * Sampling rate of the collection or production of performance indicators. - */ - -@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public enum Granularity { - - G_1MN("g_1mn"), - - G_5MN("g_5mn"), - - G_15MN("g_15mn"), - - G_30MN("g_30mn"), - - G_1H("g_1h"), - - G_24H("g_24h"), - - G_1M("g_1m"), - - G_1Y("g_1y"), - - NA("na"); - - private String value; - - Granularity(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static Granularity fromValue(String value) { - for (Granularity b : Granularity.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/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java deleted file mode 100644 index 175c3fd..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java +++ /dev/null @@ -1,49 +0,0 @@ -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 Indicator Type - */ - -@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public enum IndicatorType { - - STRING("string"), - - INT("int"), - - FLOAT("float"), - - DOUBLE("double"); - - private String value; - - IndicatorType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static IndicatorType fromValue(String value) { - for (IndicatorType b : IndicatorType.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/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java deleted file mode 100644 index 3371345..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ /dev/null @@ -1,408 +0,0 @@ -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 jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * ManagementJob - */ - -@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 ManagementJob { - - private String id; - - private URI href; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private AdministrativeState adminState; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private ScheduleDefinition scheduleDefinition; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public ManagementJob() { - super(); - } - - /** - * Constructor with only required parameters - */ - public ManagementJob(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public ManagementJob 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 ManagementJob 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 ManagementJob creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public ManagementJob jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public ManagementJob jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public ManagementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public ManagementJob adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public ManagementJob executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public ManagementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public ManagementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public ManagementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public ManagementJob 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 ManagementJob 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 ManagementJob 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; - } - ManagementJob managementJob = (ManagementJob) o; - return Objects.equals(this.id, managementJob.id) && - Objects.equals(this.href, managementJob.href) && - Objects.equals(this.creationTime, managementJob.creationTime) && - Objects.equals(this.jobId, managementJob.jobId) && - Objects.equals(this.jobPriority, managementJob.jobPriority) && - Objects.equals(this.lastModifiedTime, managementJob.lastModifiedTime) && - Objects.equals(this.adminState, managementJob.adminState) && - Objects.equals(this.executionState, managementJob.executionState) && - Objects.equals(this.fileTransferData, managementJob.fileTransferData) && - Objects.equals(this.scheduleDefinition, managementJob.scheduleDefinition) && - Objects.equals(this.atBaseType, managementJob.atBaseType) && - Objects.equals(this.atSchemaLocation, managementJob.atSchemaLocation) && - Objects.equals(this.atType, managementJob.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, creationTime, jobId, jobPriority, lastModifiedTime, adminState, executionState, fileTransferData, scheduleDefinition, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ManagementJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java deleted file mode 100644 index 057acc3..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ /dev/null @@ -1,686 +0,0 @@ -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 jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. - */ - -@Schema(name = "MeasurementCollectionJob", description = "Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job.") -@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 MeasurementCollectionJob { - - private String id; - - private URI href; - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String outputFormat; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granularity; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ReportingPeriod reportingPeriod; - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MeasurementCollectionJob() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementCollectionJob(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJob 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 MeasurementCollectionJob 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 MeasurementCollectionJob consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementCollectionJob creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementCollectionJob jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementCollectionJob jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementCollectionJob lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementCollectionJob outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public MeasurementCollectionJob producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementCollectionJob adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementCollectionJob executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementCollectionJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementCollectionJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJob granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementCollectionJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementCollectionJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementCollectionJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementCollectionJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementCollectionJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementCollectionJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementCollectionJob reportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - return this; - } - - /** - * Get reportingPeriod - * - * @return reportingPeriod - */ - @Valid - @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("reportingPeriod") - public ReportingPeriod getReportingPeriod() { - return reportingPeriod; - } - - public void setReportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - } - - public MeasurementCollectionJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementCollectionJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementCollectionJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementCollectionJob 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 MeasurementCollectionJob 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 MeasurementCollectionJob 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; - } - MeasurementCollectionJob measurementCollectionJob = (MeasurementCollectionJob) o; - return Objects.equals(this.id, measurementCollectionJob.id) && - Objects.equals(this.href, measurementCollectionJob.href) && - Objects.equals(this.consumingApplicationId, measurementCollectionJob.consumingApplicationId) && - Objects.equals(this.creationTime, measurementCollectionJob.creationTime) && - Objects.equals(this.jobId, measurementCollectionJob.jobId) && - Objects.equals(this.jobPriority, measurementCollectionJob.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementCollectionJob.lastModifiedTime) && - Objects.equals(this.outputFormat, measurementCollectionJob.outputFormat) && - Objects.equals(this.producingApplicationId, measurementCollectionJob.producingApplicationId) && - Objects.equals(this.adminState, measurementCollectionJob.adminState) && - Objects.equals(this.executionState, measurementCollectionJob.executionState) && - Objects.equals(this.fileTransferData, measurementCollectionJob.fileTransferData) && - Objects.equals(this.granularity, measurementCollectionJob.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementCollectionJob.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJob.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJob.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJob.performanceIndicatorSpecification) && - Objects.equals(this.reportingPeriod, measurementCollectionJob.reportingPeriod) && - Objects.equals(this.scheduleDefinition, measurementCollectionJob.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementCollectionJob.trackingRecord) && - Objects.equals(this.atBaseType, measurementCollectionJob.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementCollectionJob.atSchemaLocation) && - Objects.equals(this.atType, measurementCollectionJob.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java deleted file mode 100644 index d837fb3..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ /dev/null @@ -1,332 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "MeasurementCollectionJobAttributeValueChangeEvent", description = "The notification data structure") -@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 MeasurementCollectionJobAttributeValueChangeEvent { - - 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; - - private String fieldPath; - - private MeasurementCollectionJobAttributeValueChangeEventPayload event; - - public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("timeOcurred") - public OffsetDateTime getTimeOcurred() { - return timeOcurred; - } - - public void setTimeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - } - - public MeasurementCollectionJobAttributeValueChangeEvent fieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return this; - } - - /** - * The path identifying the object field concerned by this notification. - * - * @return fieldPath - */ - - @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fieldPath") - public String getFieldPath() { - return fieldPath; - } - - public void setFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - } - - public MeasurementCollectionJobAttributeValueChangeEvent event(MeasurementCollectionJobAttributeValueChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobAttributeValueChangeEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobAttributeValueChangeEventPayload event) { - this.event = event; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobAttributeValueChangeEvent measurementCollectionJobAttributeValueChangeEvent = (MeasurementCollectionJobAttributeValueChangeEvent) o; - return Objects.equals(this.eventId, measurementCollectionJobAttributeValueChangeEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobAttributeValueChangeEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobAttributeValueChangeEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobAttributeValueChangeEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobAttributeValueChangeEvent.domain) && - Objects.equals(this.title, measurementCollectionJobAttributeValueChangeEvent.title) && - Objects.equals(this.description, measurementCollectionJobAttributeValueChangeEvent.description) && - Objects.equals(this.priority, measurementCollectionJobAttributeValueChangeEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobAttributeValueChangeEvent.timeOcurred) && - Objects.equals(this.fieldPath, measurementCollectionJobAttributeValueChangeEvent.fieldPath) && - Objects.equals(this.event, measurementCollectionJobAttributeValueChangeEvent.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 MeasurementCollectionJobAttributeValueChangeEvent {\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(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/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java deleted file mode 100644 index d3da388..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "MeasurementCollectionJobAttributeValueChangeEventPayload", description = "The event data structure") -@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 MeasurementCollectionJobAttributeValueChangeEventPayload { - - private MeasurementCollectionJob measurementCollectionJob; - - public MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } - - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJobAttributeValueChangeEventPayload = (MeasurementCollectionJobAttributeValueChangeEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobAttributeValueChangeEventPayload.measurementCollectionJob); - } - - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobAttributeValueChangeEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java deleted file mode 100644 index 4177293..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreate.java +++ /dev/null @@ -1,638 +0,0 @@ -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 jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href - */ - -@Schema(name = "MeasurementCollectionJob_Create", description = "Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href") -@JsonTypeName("MeasurementCollectionJob_Create") -@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 MeasurementCollectionJobCreate { - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String outputFormat; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granularity; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ReportingPeriod reportingPeriod; - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MeasurementCollectionJobCreate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementCollectionJobCreate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobCreate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementCollectionJobCreate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementCollectionJobCreate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementCollectionJobCreate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementCollectionJobCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementCollectionJobCreate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public MeasurementCollectionJobCreate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementCollectionJobCreate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementCollectionJobCreate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementCollectionJobCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementCollectionJobCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobCreate granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementCollectionJobCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementCollectionJobCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementCollectionJobCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementCollectionJobCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementCollectionJobCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementCollectionJobCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementCollectionJobCreate reportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - return this; - } - - /** - * Get reportingPeriod - * - * @return reportingPeriod - */ - @Valid - @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("reportingPeriod") - public ReportingPeriod getReportingPeriod() { - return reportingPeriod; - } - - public void setReportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - } - - public MeasurementCollectionJobCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementCollectionJobCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementCollectionJobCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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 MeasurementCollectionJobCreate 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; - } - MeasurementCollectionJobCreate measurementCollectionJobCreate = (MeasurementCollectionJobCreate) o; - return Objects.equals(this.consumingApplicationId, measurementCollectionJobCreate.consumingApplicationId) && - Objects.equals(this.creationTime, measurementCollectionJobCreate.creationTime) && - Objects.equals(this.jobId, measurementCollectionJobCreate.jobId) && - Objects.equals(this.jobPriority, measurementCollectionJobCreate.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementCollectionJobCreate.lastModifiedTime) && - Objects.equals(this.outputFormat, measurementCollectionJobCreate.outputFormat) && - Objects.equals(this.producingApplicationId, measurementCollectionJobCreate.producingApplicationId) && - Objects.equals(this.adminState, measurementCollectionJobCreate.adminState) && - Objects.equals(this.executionState, measurementCollectionJobCreate.executionState) && - Objects.equals(this.fileTransferData, measurementCollectionJobCreate.fileTransferData) && - Objects.equals(this.granularity, measurementCollectionJobCreate.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementCollectionJobCreate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobCreate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobCreate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobCreate.performanceIndicatorSpecification) && - Objects.equals(this.reportingPeriod, measurementCollectionJobCreate.reportingPeriod) && - Objects.equals(this.scheduleDefinition, measurementCollectionJobCreate.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementCollectionJobCreate.trackingRecord) && - Objects.equals(this.atBaseType, measurementCollectionJobCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementCollectionJobCreate.atSchemaLocation) && - Objects.equals(this.atType, measurementCollectionJobCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobCreate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java deleted file mode 100644 index e106861..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "MeasurementCollectionJobCreateEvent", description = "The notification data structure") -@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 MeasurementCollectionJobCreateEvent { - - private MeasurementCollectionJobCreateEventPayload 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 MeasurementCollectionJobCreateEvent event(MeasurementCollectionJobCreateEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobCreateEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobCreateEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobCreateEvent measurementCollectionJobCreateEvent = (MeasurementCollectionJobCreateEvent) o; - return Objects.equals(this.event, measurementCollectionJobCreateEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobCreateEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobCreateEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobCreateEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobCreateEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobCreateEvent.domain) && - Objects.equals(this.title, measurementCollectionJobCreateEvent.title) && - Objects.equals(this.description, measurementCollectionJobCreateEvent.description) && - Objects.equals(this.priority, measurementCollectionJobCreateEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobCreateEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobCreateEvent {\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/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java deleted file mode 100644 index 1312f38..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "MeasurementCollectionJobCreateEventPayload", description = "The event data structure") -@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 MeasurementCollectionJobCreateEventPayload { - - private MeasurementCollectionJob measurementCollectionJob; - - public MeasurementCollectionJobCreateEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } - - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobCreateEventPayload measurementCollectionJobCreateEventPayload = (MeasurementCollectionJobCreateEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobCreateEventPayload.measurementCollectionJob); - } - - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobCreateEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java deleted file mode 100644 index 7d79bd6..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "MeasurementCollectionJobDeleteEvent", description = "The notification data structure") -@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 MeasurementCollectionJobDeleteEvent { - - private MeasurementCollectionJobDeleteEventPayload 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 MeasurementCollectionJobDeleteEvent event(MeasurementCollectionJobDeleteEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobDeleteEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobDeleteEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobDeleteEvent measurementCollectionJobDeleteEvent = (MeasurementCollectionJobDeleteEvent) o; - return Objects.equals(this.event, measurementCollectionJobDeleteEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobDeleteEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobDeleteEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobDeleteEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobDeleteEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobDeleteEvent.domain) && - Objects.equals(this.title, measurementCollectionJobDeleteEvent.title) && - Objects.equals(this.description, measurementCollectionJobDeleteEvent.description) && - Objects.equals(this.priority, measurementCollectionJobDeleteEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobDeleteEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobDeleteEvent {\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/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java deleted file mode 100644 index 8ccfcd3..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "MeasurementCollectionJobDeleteEventPayload", description = "The event data structure") -@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 MeasurementCollectionJobDeleteEventPayload { - - private MeasurementCollectionJob measurementCollectionJob; - - public MeasurementCollectionJobDeleteEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } - - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobDeleteEventPayload measurementCollectionJobDeleteEventPayload = (MeasurementCollectionJobDeleteEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobDeleteEventPayload.measurementCollectionJob); - } - - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobDeleteEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java deleted file mode 100644 index 715bfe1..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "MeasurementCollectionJobExecutionStateChangeEvent", description = "The notification data structure") -@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 MeasurementCollectionJobExecutionStateChangeEvent { - - private MeasurementCollectionJobExecutionStateChangeEventPayload 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 MeasurementCollectionJobExecutionStateChangeEvent event(MeasurementCollectionJobExecutionStateChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobExecutionStateChangeEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobExecutionStateChangeEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobExecutionStateChangeEvent measurementCollectionJobExecutionStateChangeEvent = (MeasurementCollectionJobExecutionStateChangeEvent) o; - return Objects.equals(this.event, measurementCollectionJobExecutionStateChangeEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobExecutionStateChangeEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobExecutionStateChangeEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobExecutionStateChangeEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobExecutionStateChangeEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobExecutionStateChangeEvent.domain) && - Objects.equals(this.title, measurementCollectionJobExecutionStateChangeEvent.title) && - Objects.equals(this.description, measurementCollectionJobExecutionStateChangeEvent.description) && - Objects.equals(this.priority, measurementCollectionJobExecutionStateChangeEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobExecutionStateChangeEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobExecutionStateChangeEvent {\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/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java deleted file mode 100644 index 0282996..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "MeasurementCollectionJobExecutionStateChangeEventPayload", description = "The event data structure") -@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 MeasurementCollectionJobExecutionStateChangeEventPayload { - - private MeasurementCollectionJob measurementCollectionJob; - - public MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } - - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJobExecutionStateChangeEventPayload = (MeasurementCollectionJobExecutionStateChangeEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobExecutionStateChangeEventPayload.measurementCollectionJob); - } - - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobExecutionStateChangeEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java deleted file mode 100644 index 75e2e2c..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "MeasurementCollectionJobFilesPreparationErrorEvent", description = "The notification data structure") -@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 MeasurementCollectionJobFilesPreparationErrorEvent { - - private MeasurementCollectionJobFilesPreparationErrorEventPayload 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 MeasurementCollectionJobFilesPreparationErrorEvent event(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobFilesPreparationErrorEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobFilesPreparationErrorEvent measurementCollectionJobFilesPreparationErrorEvent = (MeasurementCollectionJobFilesPreparationErrorEvent) o; - return Objects.equals(this.event, measurementCollectionJobFilesPreparationErrorEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobFilesPreparationErrorEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobFilesPreparationErrorEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobFilesPreparationErrorEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobFilesPreparationErrorEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobFilesPreparationErrorEvent.domain) && - Objects.equals(this.title, measurementCollectionJobFilesPreparationErrorEvent.title) && - Objects.equals(this.description, measurementCollectionJobFilesPreparationErrorEvent.description) && - Objects.equals(this.priority, measurementCollectionJobFilesPreparationErrorEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobFilesPreparationErrorEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesPreparationErrorEvent {\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/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java deleted file mode 100644 index 7d65ce0..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "MeasurementCollectionJobFilesPreparationErrorEventPayload", description = "The event data structure") -@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 MeasurementCollectionJobFilesPreparationErrorEventPayload { - - private MeasurementCollectionJob measurementCollectionJob; - - public MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } - - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJobFilesPreparationErrorEventPayload = (MeasurementCollectionJobFilesPreparationErrorEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesPreparationErrorEventPayload.measurementCollectionJob); - } - - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesPreparationErrorEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java deleted file mode 100644 index acdf5ab..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "MeasurementCollectionJobFilesReadyEvent", description = "The notification data structure") -@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 MeasurementCollectionJobFilesReadyEvent { - - private MeasurementCollectionJobFilesReadyEventPayload 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 MeasurementCollectionJobFilesReadyEvent event(MeasurementCollectionJobFilesReadyEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public MeasurementCollectionJobFilesReadyEventPayload getEvent() { - return event; - } - - public void setEvent(MeasurementCollectionJobFilesReadyEventPayload event) { - this.event = event; - } - - public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - MeasurementCollectionJobFilesReadyEvent measurementCollectionJobFilesReadyEvent = (MeasurementCollectionJobFilesReadyEvent) o; - return Objects.equals(this.event, measurementCollectionJobFilesReadyEvent.event) && - Objects.equals(this.eventId, measurementCollectionJobFilesReadyEvent.eventId) && - Objects.equals(this.eventTime, measurementCollectionJobFilesReadyEvent.eventTime) && - Objects.equals(this.eventType, measurementCollectionJobFilesReadyEvent.eventType) && - Objects.equals(this.correlationId, measurementCollectionJobFilesReadyEvent.correlationId) && - Objects.equals(this.domain, measurementCollectionJobFilesReadyEvent.domain) && - Objects.equals(this.title, measurementCollectionJobFilesReadyEvent.title) && - Objects.equals(this.description, measurementCollectionJobFilesReadyEvent.description) && - Objects.equals(this.priority, measurementCollectionJobFilesReadyEvent.priority) && - Objects.equals(this.timeOcurred, measurementCollectionJobFilesReadyEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesReadyEvent {\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/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java deleted file mode 100644 index 06066cd..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "MeasurementCollectionJobFilesReadyEventPayload", description = "The event data structure") -@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 MeasurementCollectionJobFilesReadyEventPayload { - - private MeasurementCollectionJob measurementCollectionJob; - - public MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - return this; - } - - /** - * Get measurementCollectionJob - * - * @return measurementCollectionJob - */ - @Valid - @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("measurementCollectionJob") - public MeasurementCollectionJob getMeasurementCollectionJob() { - return measurementCollectionJob; - } - - public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { - this.measurementCollectionJob = measurementCollectionJob; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJobFilesReadyEventPayload = (MeasurementCollectionJobFilesReadyEventPayload) o; - return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesReadyEventPayload.measurementCollectionJob); - } - - @Override - public int hashCode() { - return Objects.hash(measurementCollectionJob); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobFilesReadyEventPayload {\n"); - sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java deleted file mode 100644 index 8bca70a..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobUpdate.java +++ /dev/null @@ -1,638 +0,0 @@ -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 jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href - */ - -@Schema(name = "MeasurementCollectionJob_Update", description = "Used to control the periodic collection of performance indicators, implemented as a sub-entity of the PM Measurement Job. Skipped properties: id,href") -@JsonTypeName("MeasurementCollectionJob_Update") -@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 MeasurementCollectionJobUpdate { - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String outputFormat; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granularity; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ReportingPeriod reportingPeriod; - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MeasurementCollectionJobUpdate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementCollectionJobUpdate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobUpdate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementCollectionJobUpdate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementCollectionJobUpdate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementCollectionJobUpdate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementCollectionJobUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementCollectionJobUpdate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public MeasurementCollectionJobUpdate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementCollectionJobUpdate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementCollectionJobUpdate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementCollectionJobUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementCollectionJobUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementCollectionJobUpdate granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementCollectionJobUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementCollectionJobUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementCollectionJobUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementCollectionJobUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementCollectionJobUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementCollectionJobUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementCollectionJobUpdate reportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - return this; - } - - /** - * Get reportingPeriod - * - * @return reportingPeriod - */ - @Valid - @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("reportingPeriod") - public ReportingPeriod getReportingPeriod() { - return reportingPeriod; - } - - public void setReportingPeriod(ReportingPeriod reportingPeriod) { - this.reportingPeriod = reportingPeriod; - } - - public MeasurementCollectionJobUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementCollectionJobUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementCollectionJobUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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 MeasurementCollectionJobUpdate 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; - } - MeasurementCollectionJobUpdate measurementCollectionJobUpdate = (MeasurementCollectionJobUpdate) o; - return Objects.equals(this.consumingApplicationId, measurementCollectionJobUpdate.consumingApplicationId) && - Objects.equals(this.creationTime, measurementCollectionJobUpdate.creationTime) && - Objects.equals(this.jobId, measurementCollectionJobUpdate.jobId) && - Objects.equals(this.jobPriority, measurementCollectionJobUpdate.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementCollectionJobUpdate.lastModifiedTime) && - Objects.equals(this.outputFormat, measurementCollectionJobUpdate.outputFormat) && - Objects.equals(this.producingApplicationId, measurementCollectionJobUpdate.producingApplicationId) && - Objects.equals(this.adminState, measurementCollectionJobUpdate.adminState) && - Objects.equals(this.executionState, measurementCollectionJobUpdate.executionState) && - Objects.equals(this.fileTransferData, measurementCollectionJobUpdate.fileTransferData) && - Objects.equals(this.granularity, measurementCollectionJobUpdate.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementCollectionJobUpdate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementCollectionJobUpdate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementCollectionJobUpdate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementCollectionJobUpdate.performanceIndicatorSpecification) && - Objects.equals(this.reportingPeriod, measurementCollectionJobUpdate.reportingPeriod) && - Objects.equals(this.scheduleDefinition, measurementCollectionJobUpdate.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementCollectionJobUpdate.trackingRecord) && - Objects.equals(this.atBaseType, measurementCollectionJobUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementCollectionJobUpdate.atSchemaLocation) && - Objects.equals(this.atType, measurementCollectionJobUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, reportingPeriod, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementCollectionJobUpdate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java deleted file mode 100644 index 440a13b..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ /dev/null @@ -1,636 +0,0 @@ -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 jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * A PM measurement job is the administrative entity defined by a client application to perform a periodic activity related to PM data. The PM activities may be production of measurements, collection of measurements or PM objective monitoring (scheduled evaluation of thresholds). - */ - -@Schema(name = "MeasurementJob", description = "A PM measurement job is the administrative entity defined by a client application to perform a periodic activity related to PM data. The PM activities may be production of measurements, collection of measurements or PM objective monitoring (scheduled evaluation of thresholds).") -@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 MeasurementJob { - - private String id; - - private URI href; - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granularity; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MeasurementJob() { - super(); - } - - /** - * Constructor with only required parameters - */ - public MeasurementJob(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementJob 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 MeasurementJob 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 MeasurementJob consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * The identifier of the application that consumes performance indicators. - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public MeasurementJob creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public MeasurementJob jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public MeasurementJob jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public MeasurementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public MeasurementJob producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * The identifier of the application that produces performance indicators. - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public MeasurementJob adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public MeasurementJob executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public MeasurementJob fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public MeasurementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public MeasurementJob granularity(Granularity granularity) { - this.granularity = granularity; - return this; - } - - /** - * Get granularity - * - * @return granularity - */ - @Valid - @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granularity") - public Granularity getGranularity() { - return granularity; - } - - public void setGranularity(Granularity granularity) { - this.granularity = granularity; - } - - public MeasurementJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public MeasurementJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public MeasurementJob performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public MeasurementJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public MeasurementJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public MeasurementJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public MeasurementJob scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public MeasurementJob trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public MeasurementJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public MeasurementJob 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 MeasurementJob 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 MeasurementJob 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; - } - MeasurementJob measurementJob = (MeasurementJob) o; - return Objects.equals(this.id, measurementJob.id) && - Objects.equals(this.href, measurementJob.href) && - Objects.equals(this.consumingApplicationId, measurementJob.consumingApplicationId) && - Objects.equals(this.creationTime, measurementJob.creationTime) && - Objects.equals(this.jobId, measurementJob.jobId) && - Objects.equals(this.jobPriority, measurementJob.jobPriority) && - Objects.equals(this.lastModifiedTime, measurementJob.lastModifiedTime) && - Objects.equals(this.producingApplicationId, measurementJob.producingApplicationId) && - Objects.equals(this.adminState, measurementJob.adminState) && - Objects.equals(this.executionState, measurementJob.executionState) && - Objects.equals(this.fileTransferData, measurementJob.fileTransferData) && - Objects.equals(this.granularity, measurementJob.granularity) && - Objects.equals(this.monitoredClassCriteria, measurementJob.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, measurementJob.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, measurementJob.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, measurementJob.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, measurementJob.scheduleDefinition) && - Objects.equals(this.trackingRecord, measurementJob.trackingRecord) && - Objects.equals(this.atBaseType, measurementJob.atBaseType) && - Objects.equals(this.atSchemaLocation, measurementJob.atSchemaLocation) && - Objects.equals(this.atType, measurementJob.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, producingApplicationId, adminState, executionState, fileTransferData, granularity, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MeasurementJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java deleted file mode 100644 index 722481f..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ /dev/null @@ -1,179 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.Objects; - -/** - * Specifies a monitored object class (a string) in conjunction with a filter object. - */ - -@Schema(name = "MonitoredClassCriteria", description = "Specifies a monitored object class (a string) in conjunction with a filter object.") -@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 MonitoredClassCriteria { - - private String monitoredObjectClass; - - private String objectInstanceFilter; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MonitoredClassCriteria monitoredObjectClass(String monitoredObjectClass) { - this.monitoredObjectClass = monitoredObjectClass; - return this; - } - - /** - * A monitored object class for specifying the set of instances that are referenced by a PM query. - * - * @return monitoredObjectClass - */ - - @Schema(name = "monitoredObjectClass", description = "A monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredObjectClass") - public String getMonitoredObjectClass() { - return monitoredObjectClass; - } - - public void setMonitoredObjectClass(String monitoredObjectClass) { - this.monitoredObjectClass = monitoredObjectClass; - } - - public MonitoredClassCriteria objectInstanceFilter(String objectInstanceFilter) { - this.objectInstanceFilter = objectInstanceFilter; - return this; - } - - /** - * A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query. - * - * @return objectInstanceFilter - */ - - @Schema(name = "objectInstanceFilter", description = "A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("objectInstanceFilter") - public String getObjectInstanceFilter() { - return objectInstanceFilter; - } - - public void setObjectInstanceFilter(String objectInstanceFilter) { - this.objectInstanceFilter = objectInstanceFilter; - } - - public MonitoredClassCriteria 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 MonitoredClassCriteria 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 MonitoredClassCriteria 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; - } - MonitoredClassCriteria monitoredClassCriteria = (MonitoredClassCriteria) o; - return Objects.equals(this.monitoredObjectClass, monitoredClassCriteria.monitoredObjectClass) && - Objects.equals(this.objectInstanceFilter, monitoredClassCriteria.objectInstanceFilter) && - Objects.equals(this.atBaseType, monitoredClassCriteria.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredClassCriteria.atSchemaLocation) && - Objects.equals(this.atType, monitoredClassCriteria.atType); - } - - @Override - public int hashCode() { - return Objects.hash(monitoredObjectClass, objectInstanceFilter, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MonitoredClassCriteria {\n"); - sb.append(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); - sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).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/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java deleted file mode 100644 index d74981f..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ /dev/null @@ -1,129 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.Objects; - -/** - * List of monitored instances - */ - -@Schema(name = "MonitoredInstancesCriteria", description = "List of monitored instances") -@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 MonitoredInstancesCriteria { - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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; - } - MonitoredInstancesCriteria monitoredInstancesCriteria = (MonitoredInstancesCriteria) o; - return Objects.equals(this.atBaseType, monitoredInstancesCriteria.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredInstancesCriteria.atSchemaLocation) && - Objects.equals(this.atType, monitoredInstancesCriteria.atType); - } - - @Override - public int hashCode() { - return Objects.hash(atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MonitoredInstancesCriteria {\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/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java deleted file mode 100644 index 52193b7..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ /dev/null @@ -1,189 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * MonthlyScheduleDayOfWeekDefinition - */ - -@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 MonthlyScheduleDayOfWeekDefinition { - - private String recurringDaySequence; - - @Valid - private List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public MonthlyScheduleDayOfWeekDefinition recurringDaySequence(String recurringDaySequence) { - this.recurringDaySequence = recurringDaySequence; - return this; - } - - /** - * Get recurringDaySequence - * - * @return recurringDaySequence - */ - - @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("recurringDaySequence") - public String getRecurringDaySequence() { - return recurringDaySequence; - } - - public void setRecurringDaySequence(String recurringDaySequence) { - this.recurringDaySequence = recurringDaySequence; - } - - public MonthlyScheduleDayOfWeekDefinition dayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { - this.dayOfMonthRecurrence = dayOfMonthRecurrence; - return this; - } - - public MonthlyScheduleDayOfWeekDefinition addDayOfMonthRecurrenceItem(DayOfMonthRecurrence dayOfMonthRecurrenceItem) { - if (this.dayOfMonthRecurrence == null) { - this.dayOfMonthRecurrence = new ArrayList<>(); - } - this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); - return this; - } - - /** - * Get dayOfMonthRecurrence - * - * @return dayOfMonthRecurrence - */ - @Valid - @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("dayOfMonthRecurrence") - public List<@Valid DayOfMonthRecurrence> getDayOfMonthRecurrence() { - return dayOfMonthRecurrence; - } - - public void setDayOfMonthRecurrence(List<@Valid DayOfMonthRecurrence> dayOfMonthRecurrence) { - this.dayOfMonthRecurrence = dayOfMonthRecurrence; - } - - public MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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; - } - MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition = (MonthlyScheduleDayOfWeekDefinition) o; - return Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinition.recurringDaySequence) && - Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinition.dayOfMonthRecurrence) && - Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinition.atBaseType) && - Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinition.atSchemaLocation) && - Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinition.atType); - } - - @Override - public int hashCode() { - return Objects.hash(recurringDaySequence, dayOfMonthRecurrence, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class MonthlyScheduleDayOfWeekDefinition {\n"); - sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); - sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).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/pm628/model/OnDemandCollection.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java deleted file mode 100644 index 7dfa857..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollection.java +++ /dev/null @@ -1,685 +0,0 @@ -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 jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * OnDemandCollection - */ - -@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 OnDemandCollection { - - private String id; - - private URI href; - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String outputFormat; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private TimePeriod collectionPeriod; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granulatiry; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public OnDemandCollection() { - super(); - } - - /** - * Constructor with only required parameters - */ - public OnDemandCollection(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollection 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 OnDemandCollection 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 OnDemandCollection consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * Get consumingApplicationId - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public OnDemandCollection creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public OnDemandCollection jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public OnDemandCollection jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public OnDemandCollection lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public OnDemandCollection outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public OnDemandCollection producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * Get producingApplicationId - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public OnDemandCollection adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public OnDemandCollection collectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - return this; - } - - /** - * Get collectionPeriod - * - * @return collectionPeriod - */ - @Valid - @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionPeriod") - public TimePeriod getCollectionPeriod() { - return collectionPeriod; - } - - public void setCollectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - } - - public OnDemandCollection executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public OnDemandCollection fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public OnDemandCollection addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollection granulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - return this; - } - - /** - * Get granulatiry - * - * @return granulatiry - */ - @Valid - @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granulatiry") - public Granularity getGranulatiry() { - return granulatiry; - } - - public void setGranulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - } - - public OnDemandCollection monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public OnDemandCollection monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public OnDemandCollection performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public OnDemandCollection addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public OnDemandCollection performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public OnDemandCollection addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public OnDemandCollection scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public OnDemandCollection trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public OnDemandCollection addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public OnDemandCollection 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 OnDemandCollection 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 OnDemandCollection 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; - } - OnDemandCollection onDemandCollection = (OnDemandCollection) o; - return Objects.equals(this.id, onDemandCollection.id) && - Objects.equals(this.href, onDemandCollection.href) && - Objects.equals(this.consumingApplicationId, onDemandCollection.consumingApplicationId) && - Objects.equals(this.creationTime, onDemandCollection.creationTime) && - Objects.equals(this.jobId, onDemandCollection.jobId) && - Objects.equals(this.jobPriority, onDemandCollection.jobPriority) && - Objects.equals(this.lastModifiedTime, onDemandCollection.lastModifiedTime) && - Objects.equals(this.outputFormat, onDemandCollection.outputFormat) && - Objects.equals(this.producingApplicationId, onDemandCollection.producingApplicationId) && - Objects.equals(this.adminState, onDemandCollection.adminState) && - Objects.equals(this.collectionPeriod, onDemandCollection.collectionPeriod) && - Objects.equals(this.executionState, onDemandCollection.executionState) && - Objects.equals(this.fileTransferData, onDemandCollection.fileTransferData) && - Objects.equals(this.granulatiry, onDemandCollection.granulatiry) && - Objects.equals(this.monitoredClassCriteria, onDemandCollection.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, onDemandCollection.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollection.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, onDemandCollection.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, onDemandCollection.scheduleDefinition) && - Objects.equals(this.trackingRecord, onDemandCollection.trackingRecord) && - Objects.equals(this.atBaseType, onDemandCollection.atBaseType) && - Objects.equals(this.atSchemaLocation, onDemandCollection.atSchemaLocation) && - Objects.equals(this.atType, onDemandCollection.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollection {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java deleted file mode 100644 index d29c68c..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEvent.java +++ /dev/null @@ -1,332 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "OnDemandCollectionAttributeValueChangeEvent", description = "The notification data structure") -@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 OnDemandCollectionAttributeValueChangeEvent { - - 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; - - private String fieldPath; - - private OnDemandCollectionAttributeValueChangeEventPayload event; - - public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionAttributeValueChangeEvent 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 OnDemandCollectionAttributeValueChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("timeOcurred") - public OffsetDateTime getTimeOcurred() { - return timeOcurred; - } - - public void setTimeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - } - - public OnDemandCollectionAttributeValueChangeEvent fieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return this; - } - - /** - * The path identifying the object field concerned by this notification. - * - * @return fieldPath - */ - - @Schema(name = "fieldPath", description = "The path identifying the object field concerned by this notification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fieldPath") - public String getFieldPath() { - return fieldPath; - } - - public void setFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - } - - public OnDemandCollectionAttributeValueChangeEvent event(OnDemandCollectionAttributeValueChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionAttributeValueChangeEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionAttributeValueChangeEventPayload event) { - this.event = event; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionAttributeValueChangeEvent onDemandCollectionAttributeValueChangeEvent = (OnDemandCollectionAttributeValueChangeEvent) o; - return Objects.equals(this.eventId, onDemandCollectionAttributeValueChangeEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionAttributeValueChangeEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionAttributeValueChangeEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionAttributeValueChangeEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionAttributeValueChangeEvent.domain) && - Objects.equals(this.title, onDemandCollectionAttributeValueChangeEvent.title) && - Objects.equals(this.description, onDemandCollectionAttributeValueChangeEvent.description) && - Objects.equals(this.priority, onDemandCollectionAttributeValueChangeEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionAttributeValueChangeEvent.timeOcurred) && - Objects.equals(this.fieldPath, onDemandCollectionAttributeValueChangeEvent.fieldPath) && - Objects.equals(this.event, onDemandCollectionAttributeValueChangeEvent.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 OnDemandCollectionAttributeValueChangeEvent {\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(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/OnDemandCollectionAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java deleted file mode 100644 index 3ee0696..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionAttributeValueChangeEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "OnDemandCollectionAttributeValueChangeEventPayload", description = "The event data structure") -@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 OnDemandCollectionAttributeValueChangeEventPayload { - - private OnDemandCollection onDemandCollection; - - public OnDemandCollectionAttributeValueChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } - - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionAttributeValueChangeEventPayload onDemandCollectionAttributeValueChangeEventPayload = (OnDemandCollectionAttributeValueChangeEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionAttributeValueChangeEventPayload.onDemandCollection); - } - - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionAttributeValueChangeEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java deleted file mode 100644 index 0ff1a60..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreate.java +++ /dev/null @@ -1,638 +0,0 @@ -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 jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Skipped properties: id,href - */ - -@Schema(name = "OnDemandCollection_Create", description = " Skipped properties: id,href") -@JsonTypeName("OnDemandCollection_Create") -@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 OnDemandCollectionCreate { - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String outputFormat; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private TimePeriod collectionPeriod; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granulatiry; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public OnDemandCollectionCreate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public OnDemandCollectionCreate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionCreate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * Get consumingApplicationId - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public OnDemandCollectionCreate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public OnDemandCollectionCreate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public OnDemandCollectionCreate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public OnDemandCollectionCreate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public OnDemandCollectionCreate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public OnDemandCollectionCreate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * Get producingApplicationId - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public OnDemandCollectionCreate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public OnDemandCollectionCreate collectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - return this; - } - - /** - * Get collectionPeriod - * - * @return collectionPeriod - */ - @Valid - @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionPeriod") - public TimePeriod getCollectionPeriod() { - return collectionPeriod; - } - - public void setCollectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - } - - public OnDemandCollectionCreate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public OnDemandCollectionCreate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public OnDemandCollectionCreate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionCreate granulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - return this; - } - - /** - * Get granulatiry - * - * @return granulatiry - */ - @Valid - @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granulatiry") - public Granularity getGranulatiry() { - return granulatiry; - } - - public void setGranulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - } - - public OnDemandCollectionCreate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public OnDemandCollectionCreate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public OnDemandCollectionCreate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public OnDemandCollectionCreate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public OnDemandCollectionCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public OnDemandCollectionCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public OnDemandCollectionCreate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public OnDemandCollectionCreate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public OnDemandCollectionCreate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public OnDemandCollectionCreate 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 OnDemandCollectionCreate 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 OnDemandCollectionCreate 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; - } - OnDemandCollectionCreate onDemandCollectionCreate = (OnDemandCollectionCreate) o; - return Objects.equals(this.consumingApplicationId, onDemandCollectionCreate.consumingApplicationId) && - Objects.equals(this.creationTime, onDemandCollectionCreate.creationTime) && - Objects.equals(this.jobId, onDemandCollectionCreate.jobId) && - Objects.equals(this.jobPriority, onDemandCollectionCreate.jobPriority) && - Objects.equals(this.lastModifiedTime, onDemandCollectionCreate.lastModifiedTime) && - Objects.equals(this.outputFormat, onDemandCollectionCreate.outputFormat) && - Objects.equals(this.producingApplicationId, onDemandCollectionCreate.producingApplicationId) && - Objects.equals(this.adminState, onDemandCollectionCreate.adminState) && - Objects.equals(this.collectionPeriod, onDemandCollectionCreate.collectionPeriod) && - Objects.equals(this.executionState, onDemandCollectionCreate.executionState) && - Objects.equals(this.fileTransferData, onDemandCollectionCreate.fileTransferData) && - Objects.equals(this.granulatiry, onDemandCollectionCreate.granulatiry) && - Objects.equals(this.monitoredClassCriteria, onDemandCollectionCreate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionCreate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionCreate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionCreate.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, onDemandCollectionCreate.scheduleDefinition) && - Objects.equals(this.trackingRecord, onDemandCollectionCreate.trackingRecord) && - Objects.equals(this.atBaseType, onDemandCollectionCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, onDemandCollectionCreate.atSchemaLocation) && - Objects.equals(this.atType, onDemandCollectionCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionCreate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/OnDemandCollectionCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java deleted file mode 100644 index d1deb05..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "OnDemandCollectionCreateEvent", description = "The notification data structure") -@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 OnDemandCollectionCreateEvent { - - private OnDemandCollectionCreateEventPayload 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 OnDemandCollectionCreateEvent event(OnDemandCollectionCreateEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionCreateEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionCreateEventPayload event) { - this.event = event; - } - - public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionCreateEvent 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 OnDemandCollectionCreateEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionCreateEvent onDemandCollectionCreateEvent = (OnDemandCollectionCreateEvent) o; - return Objects.equals(this.event, onDemandCollectionCreateEvent.event) && - Objects.equals(this.eventId, onDemandCollectionCreateEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionCreateEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionCreateEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionCreateEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionCreateEvent.domain) && - Objects.equals(this.title, onDemandCollectionCreateEvent.title) && - Objects.equals(this.description, onDemandCollectionCreateEvent.description) && - Objects.equals(this.priority, onDemandCollectionCreateEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionCreateEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionCreateEvent {\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/OnDemandCollectionCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java deleted file mode 100644 index 07ad76f..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionCreateEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "OnDemandCollectionCreateEventPayload", description = "The event data structure") -@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 OnDemandCollectionCreateEventPayload { - - private OnDemandCollection onDemandCollection; - - public OnDemandCollectionCreateEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } - - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionCreateEventPayload onDemandCollectionCreateEventPayload = (OnDemandCollectionCreateEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionCreateEventPayload.onDemandCollection); - } - - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionCreateEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java deleted file mode 100644 index 8d0a723..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "OnDemandCollectionDeleteEvent", description = "The notification data structure") -@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 OnDemandCollectionDeleteEvent { - - private OnDemandCollectionDeleteEventPayload 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 OnDemandCollectionDeleteEvent event(OnDemandCollectionDeleteEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionDeleteEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionDeleteEventPayload event) { - this.event = event; - } - - public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionDeleteEvent 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 OnDemandCollectionDeleteEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionDeleteEvent onDemandCollectionDeleteEvent = (OnDemandCollectionDeleteEvent) o; - return Objects.equals(this.event, onDemandCollectionDeleteEvent.event) && - Objects.equals(this.eventId, onDemandCollectionDeleteEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionDeleteEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionDeleteEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionDeleteEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionDeleteEvent.domain) && - Objects.equals(this.title, onDemandCollectionDeleteEvent.title) && - Objects.equals(this.description, onDemandCollectionDeleteEvent.description) && - Objects.equals(this.priority, onDemandCollectionDeleteEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionDeleteEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionDeleteEvent {\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/OnDemandCollectionDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java deleted file mode 100644 index 95d0a06..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionDeleteEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "OnDemandCollectionDeleteEventPayload", description = "The event data structure") -@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 OnDemandCollectionDeleteEventPayload { - - private OnDemandCollection onDemandCollection; - - public OnDemandCollectionDeleteEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } - - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionDeleteEventPayload onDemandCollectionDeleteEventPayload = (OnDemandCollectionDeleteEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionDeleteEventPayload.onDemandCollection); - } - - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionDeleteEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java deleted file mode 100644 index 96a668f..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "OnDemandCollectionExecutionStateChangeEvent", description = "The notification data structure") -@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 OnDemandCollectionExecutionStateChangeEvent { - - private OnDemandCollectionExecutionStateChangeEventPayload 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 OnDemandCollectionExecutionStateChangeEvent event(OnDemandCollectionExecutionStateChangeEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionExecutionStateChangeEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionExecutionStateChangeEventPayload event) { - this.event = event; - } - - public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionExecutionStateChangeEvent 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 OnDemandCollectionExecutionStateChangeEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionExecutionStateChangeEvent onDemandCollectionExecutionStateChangeEvent = (OnDemandCollectionExecutionStateChangeEvent) o; - return Objects.equals(this.event, onDemandCollectionExecutionStateChangeEvent.event) && - Objects.equals(this.eventId, onDemandCollectionExecutionStateChangeEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionExecutionStateChangeEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionExecutionStateChangeEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionExecutionStateChangeEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionExecutionStateChangeEvent.domain) && - Objects.equals(this.title, onDemandCollectionExecutionStateChangeEvent.title) && - Objects.equals(this.description, onDemandCollectionExecutionStateChangeEvent.description) && - Objects.equals(this.priority, onDemandCollectionExecutionStateChangeEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionExecutionStateChangeEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionExecutionStateChangeEvent {\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/OnDemandCollectionExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java deleted file mode 100644 index ab8e553..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionExecutionStateChangeEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "OnDemandCollectionExecutionStateChangeEventPayload", description = "The event data structure") -@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 OnDemandCollectionExecutionStateChangeEventPayload { - - private OnDemandCollection onDemandCollection; - - public OnDemandCollectionExecutionStateChangeEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } - - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionExecutionStateChangeEventPayload onDemandCollectionExecutionStateChangeEventPayload = (OnDemandCollectionExecutionStateChangeEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionExecutionStateChangeEventPayload.onDemandCollection); - } - - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionExecutionStateChangeEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java deleted file mode 100644 index fa3d18b..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "OnDemandCollectionFilesPreparationErrorEvent", description = "The notification data structure") -@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 OnDemandCollectionFilesPreparationErrorEvent { - - private OnDemandCollectionFilesPreparationErrorEventPayload 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 OnDemandCollectionFilesPreparationErrorEvent event(OnDemandCollectionFilesPreparationErrorEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionFilesPreparationErrorEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionFilesPreparationErrorEventPayload event) { - this.event = event; - } - - public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionFilesPreparationErrorEvent 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 OnDemandCollectionFilesPreparationErrorEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionFilesPreparationErrorEvent onDemandCollectionFilesPreparationErrorEvent = (OnDemandCollectionFilesPreparationErrorEvent) o; - return Objects.equals(this.event, onDemandCollectionFilesPreparationErrorEvent.event) && - Objects.equals(this.eventId, onDemandCollectionFilesPreparationErrorEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionFilesPreparationErrorEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionFilesPreparationErrorEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionFilesPreparationErrorEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionFilesPreparationErrorEvent.domain) && - Objects.equals(this.title, onDemandCollectionFilesPreparationErrorEvent.title) && - Objects.equals(this.description, onDemandCollectionFilesPreparationErrorEvent.description) && - Objects.equals(this.priority, onDemandCollectionFilesPreparationErrorEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionFilesPreparationErrorEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesPreparationErrorEvent {\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/OnDemandCollectionFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java deleted file mode 100644 index 044648f..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesPreparationErrorEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "OnDemandCollectionFilesPreparationErrorEventPayload", description = "The event data structure") -@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 OnDemandCollectionFilesPreparationErrorEventPayload { - - private OnDemandCollection onDemandCollection; - - public OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } - - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionFilesPreparationErrorEventPayload onDemandCollectionFilesPreparationErrorEventPayload = (OnDemandCollectionFilesPreparationErrorEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionFilesPreparationErrorEventPayload.onDemandCollection); - } - - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesPreparationErrorEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java deleted file mode 100644 index 27322a8..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEvent.java +++ /dev/null @@ -1,307 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * The notification data structure - */ - -@Schema(name = "OnDemandCollectionFilesReadyEvent", description = "The notification data structure") -@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 OnDemandCollectionFilesReadyEvent { - - private OnDemandCollectionFilesReadyEventPayload 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 OnDemandCollectionFilesReadyEvent event(OnDemandCollectionFilesReadyEventPayload event) { - this.event = event; - return this; - } - - /** - * Get event - * - * @return event - */ - @Valid - @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("event") - public OnDemandCollectionFilesReadyEventPayload getEvent() { - return event; - } - - public void setEvent(OnDemandCollectionFilesReadyEventPayload event) { - this.event = event; - } - - public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent description(String description) { - this.description = description; - return this; - } - - /** - * An explnatory of the event. - * - * @return description - */ - - @Schema(name = "description", description = "An explnatory of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public OnDemandCollectionFilesReadyEvent 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 OnDemandCollectionFilesReadyEvent timeOcurred(OffsetDateTime timeOcurred) { - this.timeOcurred = timeOcurred; - return this; - } - - /** - * The time the event occured. - * - * @return timeOcurred - */ - @Valid - @Schema(name = "timeOcurred", description = "The time the event occured.", 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; - } - OnDemandCollectionFilesReadyEvent onDemandCollectionFilesReadyEvent = (OnDemandCollectionFilesReadyEvent) o; - return Objects.equals(this.event, onDemandCollectionFilesReadyEvent.event) && - Objects.equals(this.eventId, onDemandCollectionFilesReadyEvent.eventId) && - Objects.equals(this.eventTime, onDemandCollectionFilesReadyEvent.eventTime) && - Objects.equals(this.eventType, onDemandCollectionFilesReadyEvent.eventType) && - Objects.equals(this.correlationId, onDemandCollectionFilesReadyEvent.correlationId) && - Objects.equals(this.domain, onDemandCollectionFilesReadyEvent.domain) && - Objects.equals(this.title, onDemandCollectionFilesReadyEvent.title) && - Objects.equals(this.description, onDemandCollectionFilesReadyEvent.description) && - Objects.equals(this.priority, onDemandCollectionFilesReadyEvent.priority) && - Objects.equals(this.timeOcurred, onDemandCollectionFilesReadyEvent.timeOcurred); - } - - @Override - public int hashCode() { - return Objects.hash(event, eventId, eventTime, eventType, correlationId, domain, title, description, priority, timeOcurred); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesReadyEvent {\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/OnDemandCollectionFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java deleted file mode 100644 index 9e671c0..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionFilesReadyEventPayload.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * The event data structure - */ - -@Schema(name = "OnDemandCollectionFilesReadyEventPayload", description = "The event data structure") -@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 OnDemandCollectionFilesReadyEventPayload { - - private OnDemandCollection onDemandCollection; - - public OnDemandCollectionFilesReadyEventPayload onDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - return this; - } - - /** - * Get onDemandCollection - * - * @return onDemandCollection - */ - @Valid - @Schema(name = "onDemandCollection", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("onDemandCollection") - public OnDemandCollection getOnDemandCollection() { - return onDemandCollection; - } - - public void setOnDemandCollection(OnDemandCollection onDemandCollection) { - this.onDemandCollection = onDemandCollection; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OnDemandCollectionFilesReadyEventPayload onDemandCollectionFilesReadyEventPayload = (OnDemandCollectionFilesReadyEventPayload) o; - return Objects.equals(this.onDemandCollection, onDemandCollectionFilesReadyEventPayload.onDemandCollection); - } - - @Override - public int hashCode() { - return Objects.hash(onDemandCollection); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionFilesReadyEventPayload {\n"); - sb.append(" onDemandCollection: ").append(toIndentedString(onDemandCollection)).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/OnDemandCollectionUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java deleted file mode 100644 index 2e859df..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OnDemandCollectionUpdate.java +++ /dev/null @@ -1,638 +0,0 @@ -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 jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import org.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Skipped properties: id,href - */ - -@Schema(name = "OnDemandCollection_Update", description = " Skipped properties: id,href") -@JsonTypeName("OnDemandCollection_Update") -@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 OnDemandCollectionUpdate { - - private String consumingApplicationId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime creationTime; - - private String jobId; - - private Integer jobPriority; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime lastModifiedTime; - - private String outputFormat; - - private String producingApplicationId; - - private AdministrativeState adminState; - - private TimePeriod collectionPeriod; - - private ExecutionStateType executionState; - - @Valid - private List<@Valid FileTransferData> fileTransferData = new ArrayList<>(); - - private Granularity granulatiry; - - private MonitoredClassCriteria monitoredClassCriteria; - - private MonitoredInstancesCriteria monitoredInstancesCriteria; - - @Valid - private List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification = new ArrayList<>(); - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); - - private ScheduleDefinition scheduleDefinition; - - @Valid - private List<@Valid TrackingRecord> trackingRecord = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public OnDemandCollectionUpdate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public OnDemandCollectionUpdate(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionUpdate consumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - return this; - } - - /** - * Get consumingApplicationId - * - * @return consumingApplicationId - */ - - @Schema(name = "consumingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("consumingApplicationId") - public String getConsumingApplicationId() { - return consumingApplicationId; - } - - public void setConsumingApplicationId(String consumingApplicationId) { - this.consumingApplicationId = consumingApplicationId; - } - - public OnDemandCollectionUpdate creationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - return this; - } - - /** - * The measurement job creation time. - * - * @return creationTime - */ - @Valid - @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("creationTime") - public OffsetDateTime getCreationTime() { - return creationTime; - } - - public void setCreationTime(OffsetDateTime creationTime) { - this.creationTime = creationTime; - } - - public OnDemandCollectionUpdate jobId(String jobId) { - this.jobId = jobId; - return this; - } - - /** - * The ID of the management job. - * - * @return jobId - */ - - @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobId") - public String getJobId() { - return jobId; - } - - public void setJobId(String jobId) { - this.jobId = jobId; - } - - public OnDemandCollectionUpdate jobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - return this; - } - - /** - * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. - * - * @return jobPriority - */ - - @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("jobPriority") - public Integer getJobPriority() { - return jobPriority; - } - - public void setJobPriority(Integer jobPriority) { - this.jobPriority = jobPriority; - } - - public OnDemandCollectionUpdate lastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - return this; - } - - /** - * The last time that a measurement job was modified. - * - * @return lastModifiedTime - */ - @Valid - @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("lastModifiedTime") - public OffsetDateTime getLastModifiedTime() { - return lastModifiedTime; - } - - public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { - this.lastModifiedTime = lastModifiedTime; - } - - public OnDemandCollectionUpdate outputFormat(String outputFormat) { - this.outputFormat = outputFormat; - return this; - } - - /** - * Get outputFormat - * - * @return outputFormat - */ - - @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("outputFormat") - public String getOutputFormat() { - return outputFormat; - } - - public void setOutputFormat(String outputFormat) { - this.outputFormat = outputFormat; - } - - public OnDemandCollectionUpdate producingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - return this; - } - - /** - * Get producingApplicationId - * - * @return producingApplicationId - */ - - @Schema(name = "producingApplicationId", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("producingApplicationId") - public String getProducingApplicationId() { - return producingApplicationId; - } - - public void setProducingApplicationId(String producingApplicationId) { - this.producingApplicationId = producingApplicationId; - } - - public OnDemandCollectionUpdate adminState(AdministrativeState adminState) { - this.adminState = adminState; - return this; - } - - /** - * Get adminState - * - * @return adminState - */ - @Valid - @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("adminState") - public AdministrativeState getAdminState() { - return adminState; - } - - public void setAdminState(AdministrativeState adminState) { - this.adminState = adminState; - } - - public OnDemandCollectionUpdate collectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - return this; - } - - /** - * Get collectionPeriod - * - * @return collectionPeriod - */ - @Valid - @Schema(name = "collectionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionPeriod") - public TimePeriod getCollectionPeriod() { - return collectionPeriod; - } - - public void setCollectionPeriod(TimePeriod collectionPeriod) { - this.collectionPeriod = collectionPeriod; - } - - public OnDemandCollectionUpdate executionState(ExecutionStateType executionState) { - this.executionState = executionState; - return this; - } - - /** - * Get executionState - * - * @return executionState - */ - @Valid - @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("executionState") - public ExecutionStateType getExecutionState() { - return executionState; - } - - public void setExecutionState(ExecutionStateType executionState) { - this.executionState = executionState; - } - - public OnDemandCollectionUpdate fileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - return this; - } - - public OnDemandCollectionUpdate addFileTransferDataItem(FileTransferData fileTransferDataItem) { - if (this.fileTransferData == null) { - this.fileTransferData = new ArrayList<>(); - } - this.fileTransferData.add(fileTransferDataItem); - return this; - } - - /** - * Get fileTransferData - * - * @return fileTransferData - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("fileTransferData") - public List<@Valid FileTransferData> getFileTransferData() { - return fileTransferData; - } - - public void setFileTransferData(List<@Valid FileTransferData> fileTransferData) { - this.fileTransferData = fileTransferData; - } - - public OnDemandCollectionUpdate granulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - return this; - } - - /** - * Get granulatiry - * - * @return granulatiry - */ - @Valid - @Schema(name = "granulatiry", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("granulatiry") - public Granularity getGranulatiry() { - return granulatiry; - } - - public void setGranulatiry(Granularity granulatiry) { - this.granulatiry = granulatiry; - } - - public OnDemandCollectionUpdate monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - return this; - } - - /** - * Get monitoredClassCriteria - * - * @return monitoredClassCriteria - */ - @Valid - @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredClassCriteria") - public MonitoredClassCriteria getMonitoredClassCriteria() { - return monitoredClassCriteria; - } - - public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { - this.monitoredClassCriteria = monitoredClassCriteria; - } - - public OnDemandCollectionUpdate monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - return this; - } - - /** - * Get monitoredInstancesCriteria - * - * @return monitoredInstancesCriteria - */ - @Valid - @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monitoredInstancesCriteria") - public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { - return monitoredInstancesCriteria; - } - - public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { - this.monitoredInstancesCriteria = monitoredInstancesCriteria; - } - - public OnDemandCollectionUpdate performanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - return this; - } - - public OnDemandCollectionUpdate addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { - if (this.performanceIndicatorGroupSpecification == null) { - this.performanceIndicatorGroupSpecification = new ArrayList<>(); - } - this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorGroupSpecification - * - * @return performanceIndicatorGroupSpecification - */ - @Valid - @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorGroupSpecification") - public List<@Valid PerformanceIndicatorGroupSpecification> getPerformanceIndicatorGroupSpecification() { - return performanceIndicatorGroupSpecification; - } - - public void setPerformanceIndicatorGroupSpecification(List<@Valid PerformanceIndicatorGroupSpecification> performanceIndicatorGroupSpecification) { - this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; - } - - public OnDemandCollectionUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public OnDemandCollectionUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @Valid - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public OnDemandCollectionUpdate scheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - return this; - } - - /** - * Get scheduleDefinition - * - * @return scheduleDefinition - */ - @Valid - @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinition") - public ScheduleDefinition getScheduleDefinition() { - return scheduleDefinition; - } - - public void setScheduleDefinition(ScheduleDefinition scheduleDefinition) { - this.scheduleDefinition = scheduleDefinition; - } - - public OnDemandCollectionUpdate trackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - return this; - } - - public OnDemandCollectionUpdate addTrackingRecordItem(TrackingRecord trackingRecordItem) { - if (this.trackingRecord == null) { - this.trackingRecord = new ArrayList<>(); - } - this.trackingRecord.add(trackingRecordItem); - return this; - } - - /** - * Get trackingRecord - * - * @return trackingRecord - */ - @Valid - @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("trackingRecord") - public List<@Valid TrackingRecord> getTrackingRecord() { - return trackingRecord; - } - - public void setTrackingRecord(List<@Valid TrackingRecord> trackingRecord) { - this.trackingRecord = trackingRecord; - } - - public OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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 OnDemandCollectionUpdate 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; - } - OnDemandCollectionUpdate onDemandCollectionUpdate = (OnDemandCollectionUpdate) o; - return Objects.equals(this.consumingApplicationId, onDemandCollectionUpdate.consumingApplicationId) && - Objects.equals(this.creationTime, onDemandCollectionUpdate.creationTime) && - Objects.equals(this.jobId, onDemandCollectionUpdate.jobId) && - Objects.equals(this.jobPriority, onDemandCollectionUpdate.jobPriority) && - Objects.equals(this.lastModifiedTime, onDemandCollectionUpdate.lastModifiedTime) && - Objects.equals(this.outputFormat, onDemandCollectionUpdate.outputFormat) && - Objects.equals(this.producingApplicationId, onDemandCollectionUpdate.producingApplicationId) && - Objects.equals(this.adminState, onDemandCollectionUpdate.adminState) && - Objects.equals(this.collectionPeriod, onDemandCollectionUpdate.collectionPeriod) && - Objects.equals(this.executionState, onDemandCollectionUpdate.executionState) && - Objects.equals(this.fileTransferData, onDemandCollectionUpdate.fileTransferData) && - Objects.equals(this.granulatiry, onDemandCollectionUpdate.granulatiry) && - Objects.equals(this.monitoredClassCriteria, onDemandCollectionUpdate.monitoredClassCriteria) && - Objects.equals(this.monitoredInstancesCriteria, onDemandCollectionUpdate.monitoredInstancesCriteria) && - Objects.equals(this.performanceIndicatorGroupSpecification, onDemandCollectionUpdate.performanceIndicatorGroupSpecification) && - Objects.equals(this.performanceIndicatorSpecification, onDemandCollectionUpdate.performanceIndicatorSpecification) && - Objects.equals(this.scheduleDefinition, onDemandCollectionUpdate.scheduleDefinition) && - Objects.equals(this.trackingRecord, onDemandCollectionUpdate.trackingRecord) && - Objects.equals(this.atBaseType, onDemandCollectionUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, onDemandCollectionUpdate.atSchemaLocation) && - Objects.equals(this.atType, onDemandCollectionUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(consumingApplicationId, creationTime, jobId, jobPriority, lastModifiedTime, outputFormat, producingApplicationId, adminState, collectionPeriod, executionState, fileTransferData, granulatiry, monitoredClassCriteria, monitoredInstancesCriteria, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, scheduleDefinition, trackingRecord, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class OnDemandCollectionUpdate {\n"); - sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); - sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); - sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); - sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); - sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); - sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); - sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); - sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); - sb.append(" collectionPeriod: ").append(toIndentedString(collectionPeriod)).append("\n"); - sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); - sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); - sb.append(" granulatiry: ").append(toIndentedString(granulatiry)).append("\n"); - sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).append("\n"); - sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); - sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); - sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); - sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/pm628/model/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java deleted file mode 100644 index 93fd28b..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java +++ /dev/null @@ -1,51 +0,0 @@ -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 packing/packaging. All extensions allowed. - */ - -@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public enum PackingEnumType { - - NO_PACKING("NO_PACKING"), - - GZIP("GZIP"), - - TAR("TAR"), - - VENDOR_EXT("VENDOR_EXT"), - - MINOR_EXT("MINOR_EXT"); - - private String value; - - PackingEnumType(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static PackingEnumType fromValue(String value) { - for (PackingEnumType b : PackingEnumType.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/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java deleted file mode 100644 index d8b3064..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ /dev/null @@ -1,78 +0,0 @@ -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 javax.annotation.Generated; -import java.util.Objects; - -/** - * Specify if the output file(s) are to be packed. - */ - -@Schema(name = "PackingType", description = "Specify if the output file(s) are to be packed.") -@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 PackingType { - - private PackingEnumType packingEnumType; - - public PackingType packingEnumType(PackingEnumType packingEnumType) { - this.packingEnumType = packingEnumType; - return this; - } - - /** - * Get packingEnumType - * - * @return packingEnumType - */ - @Valid - @Schema(name = "packingEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("packingEnumType") - public PackingEnumType getPackingEnumType() { - return packingEnumType; - } - - public void setPackingEnumType(PackingEnumType packingEnumType) { - this.packingEnumType = packingEnumType; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PackingType packingType = (PackingType) o; - return Objects.equals(this.packingEnumType, packingType.packingEnumType); - } - - @Override - public int hashCode() { - return Objects.hash(packingEnumType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PackingType {\n"); - sb.append(" packingEnumType: ").append(toIndentedString(packingEnumType)).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/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java deleted file mode 100644 index 4fa1a9e..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ /dev/null @@ -1,255 +0,0 @@ -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 jakarta.validation.constraints.Size; - -import javax.annotation.Generated; -import java.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * PerformanceIndicatorGroupSpecification - */ - -@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 PerformanceIndicatorGroupSpecification { - - private String id; - - private URI href; - - private String name; - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorGroupSpecification() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorGroupSpecification(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.name = name; - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification name(String name) { - this.name = name; - return this; - } - - /** - * Name of Group specification - * - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorGroupSpecification performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public PerformanceIndicatorGroupSpecification addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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; - } - PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecification = (PerformanceIndicatorGroupSpecification) o; - return Objects.equals(this.id, performanceIndicatorGroupSpecification.id) && - Objects.equals(this.href, performanceIndicatorGroupSpecification.href) && - Objects.equals(this.name, performanceIndicatorGroupSpecification.name) && - Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecification.performanceIndicatorSpecification) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecification.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecification.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorGroupSpecification.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorGroupSpecification {\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(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java deleted file mode 100644 index 5131c82..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationCreate.java +++ /dev/null @@ -1,208 +0,0 @@ -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 jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; - -import javax.annotation.Generated; -import java.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Skipped properties: id,href - */ - -@Schema(name = "PerformanceIndicatorGroupSpecification_Create", description = " Skipped properties: id,href") -@JsonTypeName("PerformanceIndicatorGroupSpecification_Create") -@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 PerformanceIndicatorGroupSpecificationCreate { - - private String name; - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorGroupSpecificationCreate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorGroupSpecificationCreate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.name = name; - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationCreate name(String name) { - this.name = name; - return this; - } - - /** - * Name of Group specification - * - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorGroupSpecificationCreate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public PerformanceIndicatorGroupSpecificationCreate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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 PerformanceIndicatorGroupSpecificationCreate 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; - } - PerformanceIndicatorGroupSpecificationCreate performanceIndicatorGroupSpecificationCreate = (PerformanceIndicatorGroupSpecificationCreate) o; - return Objects.equals(this.name, performanceIndicatorGroupSpecificationCreate.name) && - Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationCreate.performanceIndicatorSpecification) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationCreate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorGroupSpecificationCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorGroupSpecificationCreate {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java deleted file mode 100644 index e80d40a..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationUpdate.java +++ /dev/null @@ -1,208 +0,0 @@ -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 jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; - -import javax.annotation.Generated; -import java.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Skipped properties: id,href - */ - -@Schema(name = "PerformanceIndicatorGroupSpecification_Update", description = " Skipped properties: id,href") -@JsonTypeName("PerformanceIndicatorGroupSpecification_Update") -@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 PerformanceIndicatorGroupSpecificationUpdate { - - private String name; - - @Valid - private List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorGroupSpecificationUpdate() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorGroupSpecificationUpdate(String name, List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.name = name; - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationUpdate name(String name) { - this.name = name; - return this; - } - - /** - * Name of Group specification - * - * @return name - */ - @NotNull - @Schema(name = "name", description = "Name of Group specification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - return this; - } - - public PerformanceIndicatorGroupSpecificationUpdate addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationItem) { - if (this.performanceIndicatorSpecification == null) { - this.performanceIndicatorSpecification = new ArrayList<>(); - } - this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); - return this; - } - - /** - * Get performanceIndicatorSpecification - * - * @return performanceIndicatorSpecification - */ - @NotNull - @Valid - @Size(min = 1) - @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("performanceIndicatorSpecification") - public List<@Valid PerformanceIndicatorSpecificationRef> getPerformanceIndicatorSpecification() { - return performanceIndicatorSpecification; - } - - public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRef> performanceIndicatorSpecification) { - this.performanceIndicatorSpecification = performanceIndicatorSpecification; - } - - public PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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 PerformanceIndicatorGroupSpecificationUpdate 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; - } - PerformanceIndicatorGroupSpecificationUpdate performanceIndicatorGroupSpecificationUpdate = (PerformanceIndicatorGroupSpecificationUpdate) o; - return Objects.equals(this.name, performanceIndicatorGroupSpecificationUpdate.name) && - Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationUpdate.performanceIndicatorSpecification) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationUpdate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorGroupSpecificationUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(name, performanceIndicatorSpecification, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorGroupSpecificationUpdate {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java deleted file mode 100644 index 417d17c..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ /dev/null @@ -1,293 +0,0 @@ -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.net.URI; -import java.util.Objects; - -/** - * Type of relationship such as aggregation, migration, substitution, dependency, exclusivity - */ - -@Schema(name = "PerformanceIndicatorSpecRelationship", description = "Type of relationship such as aggregation, migration, substitution, dependency, exclusivity") -@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 PerformanceIndicatorSpecRelationship { - - private String id; - - private String href; - - private String name; - - private String relationshipType; - - private String role; - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecRelationship() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorSpecRelationship(String relationshipType, TimePeriod validFor) { - this.relationshipType = relationshipType; - this.validFor = validFor; - } - - public PerformanceIndicatorSpecRelationship id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the target specification - * - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecRelationship href(String href) { - this.href = href; - return this; - } - - /** - * Hyperlink reference to the target specification - * - * @return href - */ - - @Schema(name = "href", description = "Hyperlink reference to the target specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PerformanceIndicatorSpecRelationship name(String name) { - this.name = name; - return this; - } - - /** - * Name of the targetcharacteristic - * - * @return name - */ - - @Schema(name = "name", description = "Name of the targetcharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecRelationship relationshipType(String relationshipType) { - this.relationshipType = relationshipType; - return this; - } - - /** - * Get relationshipType - * - * @return relationshipType - */ - @NotNull - @Schema(name = "relationshipType", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("relationshipType") - public String getRelationshipType() { - return relationshipType; - } - - public void setRelationshipType(String relationshipType) { - this.relationshipType = relationshipType; - } - - public PerformanceIndicatorSpecRelationship role(String role) { - this.role = role; - return this; - } - - /** - * The association role for this service specification - * - * @return role - */ - - @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("role") - public String getRole() { - return role; - } - - public void setRole(String role) { - this.role = role; - } - - public PerformanceIndicatorSpecRelationship validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * - * @return validFor - */ - @NotNull - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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; - } - PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationship = (PerformanceIndicatorSpecRelationship) o; - return Objects.equals(this.id, performanceIndicatorSpecRelationship.id) && - Objects.equals(this.href, performanceIndicatorSpecRelationship.href) && - Objects.equals(this.name, performanceIndicatorSpecRelationship.name) && - Objects.equals(this.relationshipType, performanceIndicatorSpecRelationship.relationshipType) && - Objects.equals(this.role, performanceIndicatorSpecRelationship.role) && - Objects.equals(this.validFor, performanceIndicatorSpecRelationship.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationship.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecRelationship.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, name, relationshipType, role, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); - sb.append(" role: ").append(toIndentedString(role)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java deleted file mode 100644 index 903bc33..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ /dev/null @@ -1,465 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. - */ - -@Schema(name = "PerformanceIndicatorSpecification", description = "Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units.") -@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 PerformanceIndicatorSpecification { - - private String id; - - private URI href; - - private String derivationAlgorithm; - - private String derivationMethod; - - private String description; - - private String indicatorCategory; - - private String indicatorUnit; - - private String name; - - private String perspective; - - private CollectionType collectionType; - - private IndicatorType indicatorType; - - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecification id(String id) { - this.id = id; - return this; - } - - /** - * A unique identifier for the PerformanceIndicatorSpecification. - * - * @return id - */ - - @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecification derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecification description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecification indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecification indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecification name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecification perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecification collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecification indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecification performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecification addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecification validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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; - } - PerformanceIndicatorSpecification performanceIndicatorSpecification = (PerformanceIndicatorSpecification) o; - return Objects.equals(this.id, performanceIndicatorSpecification.id) && - Objects.equals(this.href, performanceIndicatorSpecification.href) && - Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecification.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecification.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecification.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecification.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecification.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecification.name) && - Objects.equals(this.perspective, performanceIndicatorSpecification.perspective) && - Objects.equals(this.collectionType, performanceIndicatorSpecification.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecification.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecification.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecification.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecification.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecification.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecification.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecification {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationCreate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java deleted file mode 100644 index ec33a71..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationCreate.java +++ /dev/null @@ -1,417 +0,0 @@ -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.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href - */ - -@Schema(name = "PerformanceIndicatorSpecification_Create", description = "Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href") -@JsonTypeName("PerformanceIndicatorSpecification_Create") -@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 PerformanceIndicatorSpecificationCreate { - - private String derivationAlgorithm; - - private String derivationMethod; - - private String description; - - private String indicatorCategory; - - private String indicatorUnit; - - private String name; - - private String perspective; - - private CollectionType collectionType; - - private IndicatorType indicatorType; - - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecificationCreate derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecificationCreate derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecificationCreate description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecificationCreate indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecificationCreate indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecificationCreate name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecificationCreate perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecificationCreate collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecificationCreate indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecificationCreate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecificationCreate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecificationCreate validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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 PerformanceIndicatorSpecificationCreate 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; - } - PerformanceIndicatorSpecificationCreate performanceIndicatorSpecificationCreate = (PerformanceIndicatorSpecificationCreate) o; - return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationCreate.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecificationCreate.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecificationCreate.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationCreate.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationCreate.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecificationCreate.name) && - Objects.equals(this.perspective, performanceIndicatorSpecificationCreate.perspective) && - Objects.equals(this.collectionType, performanceIndicatorSpecificationCreate.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecificationCreate.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationCreate.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecificationCreate.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationCreate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationCreate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationCreate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationCreate {\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java deleted file mode 100644 index b0687fd..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ /dev/null @@ -1,266 +0,0 @@ -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.net.URI; -import java.util.Objects; - -/** - * PerformanceIndicatorSpecification reference: A PerformanceIndicatorSpecification is a detailed description of a tangible or intangible object made available externally in the form of a PerformanceIndicatorSpecification to customers or other parties playing a party role. - */ - -@Schema(name = "PerformanceIndicatorSpecificationRef", description = "PerformanceIndicatorSpecification reference: A PerformanceIndicatorSpecification is a detailed description of a tangible or intangible object made available externally in the form of a PerformanceIndicatorSpecification to customers or other parties playing a party role.") -@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 PerformanceIndicatorSpecificationRef { - - private String id; - - private URI href; - - private String name; - - private String version; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - private String atReferredType; - - public PerformanceIndicatorSpecificationRef() { - super(); - } - - /** - * Constructor with only required parameters - */ - public PerformanceIndicatorSpecificationRef(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef version(String version) { - this.version = version; - return this; - } - - /** - * Version of the performance indicator specification - * - * @return version - */ - - @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("version") - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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; - } - PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationRef = (PerformanceIndicatorSpecificationRef) o; - return Objects.equals(this.id, performanceIndicatorSpecificationRef.id) && - Objects.equals(this.href, performanceIndicatorSpecificationRef.href) && - Objects.equals(this.name, performanceIndicatorSpecificationRef.name) && - Objects.equals(this.version, performanceIndicatorSpecificationRef.version) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRef.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRef.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationRef.atType) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRef.atReferredType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, name, version, atBaseType, atSchemaLocation, atType, atReferredType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationRef {\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(" version: ").append(toIndentedString(version)).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/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java deleted file mode 100644 index 4abb583..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ /dev/null @@ -1,515 +0,0 @@ -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 javax.annotation.Generated; -import java.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * 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(name = "PerformanceIndicatorSpecificationRefOrValue", 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") -@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 PerformanceIndicatorSpecificationRefOrValue { - - private String id; - - private URI href; - - private String derivationAlgorithm; - - private String derivationMethod; - - private String description; - - private String indicatorCategory; - - private String indicatorUnit; - - private String name; - - private String perspective; - - private String version; - - private CollectionType collectionType; - - private IndicatorType indicatorType; - - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - private String atReferredType; - - public PerformanceIndicatorSpecificationRefOrValue id(String id) { - this.id = id; - return this; - } - - /** - * A unique identifier for the PerformanceIndicatorSpecification. - * - * @return id - */ - - @Schema(name = "id", description = "A unique identifier for the PerformanceIndicatorSpecification.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecificationRefOrValue derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecificationRefOrValue description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecificationRefOrValue indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecificationRefOrValue indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecificationRefOrValue name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecificationRefOrValue perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecificationRefOrValue version(String version) { - this.version = version; - return this; - } - - /** - * Version of the performance indicator specification - * - * @return version - */ - - @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("version") - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - public PerformanceIndicatorSpecificationRefOrValue collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecificationRefOrValue indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecificationRefOrValue addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecificationRefOrValue validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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 PerformanceIndicatorSpecificationRefOrValue 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; - } - PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationRefOrValue = (PerformanceIndicatorSpecificationRefOrValue) o; - return Objects.equals(this.id, performanceIndicatorSpecificationRefOrValue.id) && - Objects.equals(this.href, performanceIndicatorSpecificationRefOrValue.href) && - Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationRefOrValue.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecificationRefOrValue.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecificationRefOrValue.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationRefOrValue.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationRefOrValue.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecificationRefOrValue.name) && - Objects.equals(this.perspective, performanceIndicatorSpecificationRefOrValue.perspective) && - Objects.equals(this.version, performanceIndicatorSpecificationRefOrValue.version) && - Objects.equals(this.collectionType, performanceIndicatorSpecificationRefOrValue.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecificationRefOrValue.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationRefOrValue.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecificationRefOrValue.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefOrValue.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefOrValue.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationRefOrValue.atType) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefOrValue.atReferredType); - } - - @Override - public int hashCode() { - return Objects.hash(id, href, derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, version, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType, atReferredType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationRefOrValue {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/PerformanceIndicatorSpecificationUpdate.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java deleted file mode 100644 index 9fd5fb2..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationUpdate.java +++ /dev/null @@ -1,417 +0,0 @@ -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.net.URI; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href - */ - -@Schema(name = "PerformanceIndicatorSpecification_Update", description = "Holds the definition of the requested Performance indicator including: its name, value type, collection type, description and units. Skipped properties: id,href") -@JsonTypeName("PerformanceIndicatorSpecification_Update") -@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 PerformanceIndicatorSpecificationUpdate { - - private String derivationAlgorithm; - - private String derivationMethod; - - private String description; - - private String indicatorCategory; - - private String indicatorUnit; - - private String name; - - private String perspective; - - private CollectionType collectionType; - - private IndicatorType indicatorType; - - @Valid - private List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship = new ArrayList<>(); - - private TimePeriod validFor; - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public PerformanceIndicatorSpecificationUpdate derivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - return this; - } - - /** - * A step-by-step procedure used to calculate the value of PerformanceIndicator. - * - * @return derivationAlgorithm - */ - - @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationAlgorithm") - public String getDerivationAlgorithm() { - return derivationAlgorithm; - } - - public void setDerivationAlgorithm(String derivationAlgorithm) { - this.derivationAlgorithm = derivationAlgorithm; - } - - public PerformanceIndicatorSpecificationUpdate derivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - return this; - } - - /** - * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. - * - * @return derivationMethod - */ - - @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("derivationMethod") - public String getDerivationMethod() { - return derivationMethod; - } - - public void setDerivationMethod(String derivationMethod) { - this.derivationMethod = derivationMethod; - } - - public PerformanceIndicatorSpecificationUpdate description(String description) { - this.description = description; - return this; - } - - /** - * A narrative that explains in detail what the PerformanceIndicatorSpecification is. - * - * @return description - */ - - @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PerformanceIndicatorSpecificationUpdate indicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - return this; - } - - /** - * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. - * - * @return indicatorCategory - */ - - @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorCategory") - public String getIndicatorCategory() { - return indicatorCategory; - } - - public void setIndicatorCategory(String indicatorCategory) { - this.indicatorCategory = indicatorCategory; - } - - public PerformanceIndicatorSpecificationUpdate indicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - return this; - } - - /** - * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. - * - * @return indicatorUnit - */ - - @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorUnit") - public String getIndicatorUnit() { - return indicatorUnit; - } - - public void setIndicatorUnit(String indicatorUnit) { - this.indicatorUnit = indicatorUnit; - } - - public PerformanceIndicatorSpecificationUpdate name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PerformanceIndicatorSpecificationUpdate perspective(String perspective) { - this.perspective = perspective; - return this; - } - - /** - * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. - * - * @return perspective - */ - - @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("perspective") - public String getPerspective() { - return perspective; - } - - public void setPerspective(String perspective) { - this.perspective = perspective; - } - - public PerformanceIndicatorSpecificationUpdate collectionType(CollectionType collectionType) { - this.collectionType = collectionType; - return this; - } - - /** - * Get collectionType - * - * @return collectionType - */ - @Valid - @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("collectionType") - public CollectionType getCollectionType() { - return collectionType; - } - - public void setCollectionType(CollectionType collectionType) { - this.collectionType = collectionType; - } - - public PerformanceIndicatorSpecificationUpdate indicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - return this; - } - - /** - * Get indicatorType - * - * @return indicatorType - */ - @Valid - @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("indicatorType") - public IndicatorType getIndicatorType() { - return indicatorType; - } - - public void setIndicatorType(IndicatorType indicatorType) { - this.indicatorType = indicatorType; - } - - public PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - return this; - } - - public PerformanceIndicatorSpecificationUpdate addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { - if (this.performanceIndicatorSpecRelationship == null) { - this.performanceIndicatorSpecRelationship = new ArrayList<>(); - } - this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); - return this; - } - - /** - * Get performanceIndicatorSpecRelationship - * - * @return performanceIndicatorSpecRelationship - */ - @Valid - @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("performanceIndicatorSpecRelationship") - public List<@Valid PerformanceIndicatorSpecRelationship> getPerformanceIndicatorSpecRelationship() { - return performanceIndicatorSpecRelationship; - } - - public void setPerformanceIndicatorSpecRelationship(List<@Valid PerformanceIndicatorSpecRelationship> performanceIndicatorSpecRelationship) { - this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; - } - - public PerformanceIndicatorSpecificationUpdate validFor(TimePeriod validFor) { - this.validFor = validFor; - return this; - } - - /** - * Get validFor - * - * @return validFor - */ - @Valid - @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("validFor") - public TimePeriod getValidFor() { - return validFor; - } - - public void setValidFor(TimePeriod validFor) { - this.validFor = validFor; - } - - public PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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 PerformanceIndicatorSpecificationUpdate 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; - } - PerformanceIndicatorSpecificationUpdate performanceIndicatorSpecificationUpdate = (PerformanceIndicatorSpecificationUpdate) o; - return Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationUpdate.derivationAlgorithm) && - Objects.equals(this.derivationMethod, performanceIndicatorSpecificationUpdate.derivationMethod) && - Objects.equals(this.description, performanceIndicatorSpecificationUpdate.description) && - Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationUpdate.indicatorCategory) && - Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationUpdate.indicatorUnit) && - Objects.equals(this.name, performanceIndicatorSpecificationUpdate.name) && - Objects.equals(this.perspective, performanceIndicatorSpecificationUpdate.perspective) && - Objects.equals(this.collectionType, performanceIndicatorSpecificationUpdate.collectionType) && - Objects.equals(this.indicatorType, performanceIndicatorSpecificationUpdate.indicatorType) && - Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationUpdate.performanceIndicatorSpecRelationship) && - Objects.equals(this.validFor, performanceIndicatorSpecificationUpdate.validFor) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationUpdate.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationUpdate.atSchemaLocation) && - Objects.equals(this.atType, performanceIndicatorSpecificationUpdate.atType); - } - - @Override - public int hashCode() { - return Objects.hash(derivationAlgorithm, derivationMethod, description, indicatorCategory, indicatorUnit, name, perspective, collectionType, indicatorType, performanceIndicatorSpecRelationship, validFor, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PerformanceIndicatorSpecificationUpdate {\n"); - sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); - sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); - sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); - sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); - sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); - sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).append("\n"); - sb.append(" validFor: ").append(toIndentedString(validFor)).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/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java deleted file mode 100644 index 1fd17d5..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ /dev/null @@ -1,76 +0,0 @@ -package org.etsi.osl.tmf.pm628.model; - -import com.fasterxml.jackson.annotation.JsonProperty; -import io.swagger.v3.oas.annotations.media.Schema; - -import javax.annotation.Generated; -import java.util.Objects; - -/** - * ProtocolTransferData - */ - -@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 ProtocolTransferData { - - private String transportProtocol; - - public ProtocolTransferData transportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - return this; - } - - /** - * Get transportProtocol - * - * @return transportProtocol - */ - - @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("transportProtocol") - public String getTransportProtocol() { - return transportProtocol; - } - - public void setTransportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ProtocolTransferData protocolTransferData = (ProtocolTransferData) o; - return Objects.equals(this.transportProtocol, protocolTransferData.transportProtocol); - } - - @Override - public int hashCode() { - return Objects.hash(transportProtocol); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ProtocolTransferData {\n"); - sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).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/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java deleted file mode 100644 index bc1954d..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java +++ /dev/null @@ -1,55 +0,0 @@ -package org.etsi.osl.tmf.pm628.model; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -import javax.annotation.Generated; - -/** - * Possible values for the reporting period - */ - -@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-25T11:17:58.147516734Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") -public enum ReportingPeriod { - - R_1MN("r_1mn"), - - R_5MN("r_5mn"), - - R_15MN("r_15mn"), - - R_30MN("r_30mn"), - - R_1H("r_1h"), - - R_24H("r_24h"), - - NA("na"); - - private String value; - - ReportingPeriod(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static ReportingPeriod fromValue(String value) { - for (ReportingPeriod b : ReportingPeriod.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/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java deleted file mode 100644 index 317681e..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ /dev/null @@ -1,294 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * The schedule definition for running jobs. - */ - -@Schema(name = "ScheduleDefinition", description = "The schedule definition for running jobs.") -@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 ScheduleDefinition { - - private String recurringFrequency; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionEndTime; - - private String scheduleDefinitionHourRange; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionStartTime; - - private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; - - @Valid - private List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public ScheduleDefinition recurringFrequency(String recurringFrequency) { - this.recurringFrequency = recurringFrequency; - return this; - } - - /** - * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour - * - * @return recurringFrequency - */ - - @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("recurringFrequency") - public String getRecurringFrequency() { - return recurringFrequency; - } - - public void setRecurringFrequency(String recurringFrequency) { - this.recurringFrequency = recurringFrequency; - } - - public ScheduleDefinition scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { - this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; - return this; - } - - /** - * The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. - * - * @return scheduleDefinitionEndTime - */ - @Valid - @Schema(name = "scheduleDefinitionEndTime", description = "The Endtime of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionEndTime") - public OffsetDateTime getScheduleDefinitionEndTime() { - return scheduleDefinitionEndTime; - } - - public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { - this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; - } - - public ScheduleDefinition scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { - this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; - return this; - } - - /** - * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. - * - * @return scheduleDefinitionHourRange - */ - - @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionHourRange") - public String getScheduleDefinitionHourRange() { - return scheduleDefinitionHourRange; - } - - public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { - this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; - } - - public ScheduleDefinition scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { - this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; - return this; - } - - /** - * The Start time of the Schedule Definition - * - * @return scheduleDefinitionStartTime - */ - @Valid - @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionStartTime") - public OffsetDateTime getScheduleDefinitionStartTime() { - return scheduleDefinitionStartTime; - } - - public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { - this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; - } - - public ScheduleDefinition monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { - this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; - return this; - } - - /** - * Get monthlyScheduleDayOfWeekDefinition - * - * @return monthlyScheduleDayOfWeekDefinition - */ - @Valid - @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("MonthlyScheduleDayOfWeekDefinition") - public MonthlyScheduleDayOfWeekDefinition getMonthlyScheduleDayOfWeekDefinition() { - return monthlyScheduleDayOfWeekDefinition; - } - - public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { - this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; - } - - public ScheduleDefinition weeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { - this.weeklyScheduledDefinition = weeklyScheduledDefinition; - return this; - } - - public ScheduleDefinition addWeeklyScheduledDefinitionItem(DayOfWeekRecurrence weeklyScheduledDefinitionItem) { - if (this.weeklyScheduledDefinition == null) { - this.weeklyScheduledDefinition = new ArrayList<>(); - } - this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); - return this; - } - - /** - * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. - * - * @return weeklyScheduledDefinition - */ - @Valid - @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("WeeklyScheduledDefinition") - public List<@Valid DayOfWeekRecurrence> getWeeklyScheduledDefinition() { - return weeklyScheduledDefinition; - } - - public void setWeeklyScheduledDefinition(List<@Valid DayOfWeekRecurrence> weeklyScheduledDefinition) { - this.weeklyScheduledDefinition = weeklyScheduledDefinition; - } - - public ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition 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; - } - ScheduleDefinition scheduleDefinition = (ScheduleDefinition) o; - return Objects.equals(this.recurringFrequency, scheduleDefinition.recurringFrequency) && - Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinition.scheduleDefinitionEndTime) && - Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinition.scheduleDefinitionHourRange) && - Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinition.scheduleDefinitionStartTime) && - Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinition.monthlyScheduleDayOfWeekDefinition) && - Objects.equals(this.weeklyScheduledDefinition, scheduleDefinition.weeklyScheduledDefinition) && - Objects.equals(this.atBaseType, scheduleDefinition.atBaseType) && - Objects.equals(this.atSchemaLocation, scheduleDefinition.atSchemaLocation) && - Objects.equals(this.atType, scheduleDefinition.atType); - } - - @Override - public int hashCode() { - return Objects.hash(recurringFrequency, scheduleDefinitionEndTime, scheduleDefinitionHourRange, scheduleDefinitionStartTime, monthlyScheduleDayOfWeekDefinition, weeklyScheduledDefinition, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ScheduleDefinition {\n"); - sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); - sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); - sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); - sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); - sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); - sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).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/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java deleted file mode 100644 index b31e345..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ /dev/null @@ -1,107 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.Objects; - -/** - * A period of time, either as a deadline (endDateTime only) a startDateTime only, or both - */ - -@Schema(name = "TimePeriod", description = "A period of time, either as a deadline (endDateTime only) a startDateTime only, or both") -@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 TimePeriod { - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime endDateTime; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime startDateTime; - - public TimePeriod endDateTime(OffsetDateTime endDateTime) { - this.endDateTime = endDateTime; - return this; - } - - /** - * End of the time period, using IETC-RFC-3339 format - * - * @return endDateTime - */ - @Valid - @Schema(name = "endDateTime", example = "1985-04-12T23:20:50.520Z", description = "End of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("endDateTime") - public OffsetDateTime getEndDateTime() { - return endDateTime; - } - - public void setEndDateTime(OffsetDateTime endDateTime) { - this.endDateTime = endDateTime; - } - - public TimePeriod startDateTime(OffsetDateTime startDateTime) { - this.startDateTime = startDateTime; - return this; - } - - /** - * Start of the time period, using IETC-RFC-3339 format - * - * @return startDateTime - */ - @Valid - @Schema(name = "startDateTime", example = "1985-04-12T23:20:50.520Z", description = "Start of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("startDateTime") - public OffsetDateTime getStartDateTime() { - return startDateTime; - } - - public void setStartDateTime(OffsetDateTime startDateTime) { - this.startDateTime = startDateTime; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TimePeriod timePeriod = (TimePeriod) o; - return Objects.equals(this.endDateTime, timePeriod.endDateTime) && - Objects.equals(this.startDateTime, timePeriod.startDateTime); - } - - @Override - public int hashCode() { - return Objects.hash(endDateTime, startDateTime); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TimePeriod {\n"); - sb.append(" endDateTime: ").append(toIndentedString(endDateTime)).append("\n"); - sb.append(" startDateTime: ").append(toIndentedString(startDateTime)).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/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java deleted file mode 100644 index bf7a197..0000000 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ /dev/null @@ -1,293 +0,0 @@ -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.springframework.format.annotation.DateTimeFormat; - -import javax.annotation.Generated; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.Objects; - -/** - * Tracking records allow the tracking of modifications on the problem. The tracking records should not be embedded in the problem to allow retrieving the problem without the tracking records - */ - -@Schema(name = "TrackingRecord", description = "Tracking records allow the tracking of modifications on the problem. The tracking records should not be embedded in the problem to allow retrieving the problem without the tracking records") -@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 TrackingRecord { - - private String id; - - private String description; - - private String systemId; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime time; - - private String user; - - @Valid - private List<@Valid Characteristic> characteristic = new ArrayList<>(); - - private String atBaseType; - - private URI atSchemaLocation; - - private String atType; - - public TrackingRecord id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the TrackingRecord - * - * @return id - */ - - @Schema(name = "id", description = "Identifier of the TrackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public TrackingRecord description(String description) { - this.description = description; - return this; - } - - /** - * Describes the action being done, such as: ack, clear - * - * @return description - */ - - @Schema(name = "description", example = "", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public TrackingRecord systemId(String systemId) { - this.systemId = systemId; - return this; - } - - /** - * Describes the system Id from which the action was done - * - * @return systemId - */ - - @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("systemId") - public String getSystemId() { - return systemId; - } - - public void setSystemId(String systemId) { - this.systemId = systemId; - } - - public TrackingRecord time(OffsetDateTime time) { - this.time = time; - return this; - } - - /** - * Describes the time at which the action was done - * - * @return time - */ - @Valid - @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("time") - public OffsetDateTime getTime() { - return time; - } - - public void setTime(OffsetDateTime time) { - this.time = time; - } - - public TrackingRecord user(String user) { - this.user = user; - return this; - } - - /** - * Describes the user doing the action - * - * @return user - */ - - @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("user") - public String getUser() { - return user; - } - - public void setUser(String user) { - this.user = user; - } - - public TrackingRecord characteristic(List<@Valid Characteristic> characteristic) { - this.characteristic = characteristic; - return this; - } - - public TrackingRecord addCharacteristicItem(Characteristic characteristicItem) { - if (this.characteristic == null) { - this.characteristic = new ArrayList<>(); - } - this.characteristic.add(characteristicItem); - return this; - } - - /** - * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces - * - * @return characteristic - */ - @Valid - @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("characteristic") - public List<@Valid Characteristic> getCharacteristic() { - return characteristic; - } - - public void setCharacteristic(List<@Valid Characteristic> characteristic) { - this.characteristic = characteristic; - } - - public TrackingRecord 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 TrackingRecord 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 TrackingRecord 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; - } - TrackingRecord trackingRecord = (TrackingRecord) o; - return Objects.equals(this.id, trackingRecord.id) && - Objects.equals(this.description, trackingRecord.description) && - Objects.equals(this.systemId, trackingRecord.systemId) && - Objects.equals(this.time, trackingRecord.time) && - Objects.equals(this.user, trackingRecord.user) && - Objects.equals(this.characteristic, trackingRecord.characteristic) && - Objects.equals(this.atBaseType, trackingRecord.atBaseType) && - Objects.equals(this.atSchemaLocation, trackingRecord.atSchemaLocation) && - Objects.equals(this.atType, trackingRecord.atType); - } - - @Override - public int hashCode() { - return Objects.hash(id, description, systemId, time, user, characteristic, atBaseType, atSchemaLocation, atType); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class TrackingRecord {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); - sb.append(" time: ").append(toIndentedString(time)).append("\n"); - sb.append(" user: ").append(toIndentedString(user)).append("\n"); - sb.append(" characteristic: ").append(toIndentedString(characteristic)).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 "); - } -} - -- GitLab From e747c17fee1296b46c8397fac81ad1b5d3353e6c Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Wed, 15 May 2024 10:37:45 +0300 Subject: [PATCH 07/19] Added v5 tmf628 model --- .../etsi/osl/tmf/pm628/model/Addressable.java | 108 +++ .../osl/tmf/pm628/model/AddressableMVO.java | 86 ++ .../tmf/pm628/model/AdministrativeState.java | 56 ++ .../osl/tmf/pm628/model/AttachmentRef.java | 291 ++++++ .../osl/tmf/pm628/model/AttachmentRefFVO.java | 291 ++++++ .../osl/tmf/pm628/model/AttachmentRefMVO.java | 291 ++++++ .../etsi/osl/tmf/pm628/model/BaseEvent.java | 438 +++++++++ .../osl/tmf/pm628/model/Characteristic.java | 255 ++++++ .../tmf/pm628/model/CharacteristicFVO.java | 232 +++++ .../tmf/pm628/model/CharacteristicMVO.java | 256 ++++++ .../model/CharacteristicRelationship.java | 194 ++++ .../model/CharacteristicRelationshipFVO.java | 197 ++++ .../model/CharacteristicRelationshipMVO.java | 195 ++++ .../osl/tmf/pm628/model/CollectionType.java | 62 ++ .../tmf/pm628/model/CompressionEnumType.java | 60 ++ .../osl/tmf/pm628/model/CompressionType.java | 86 ++ .../tmf/pm628/model/DataAccessEndpoint.java | 358 ++++++++ .../pm628/model/DataAccessEndpointFVO.java | 359 ++++++++ .../pm628/model/DataAccessEndpointMVO.java | 359 ++++++++ .../tmf/pm628/model/DataFilterAttribute.java | 96 ++ .../model/DataFilterAttributeStringArray.java | 107 +++ .../osl/tmf/pm628/model/DataFilterMap.java | 183 ++++ .../osl/tmf/pm628/model/DataFilterMapFVO.java | 184 ++++ .../tmf/pm628/model/DataFilterMapItem.java | 110 +++ .../tmf/pm628/model/DataFilterMapItemFVO.java | 112 +++ .../tmf/pm628/model/DataFilterMapItemMVO.java | 112 +++ .../osl/tmf/pm628/model/DataFilterMapMVO.java | 184 ++++ .../tmf/pm628/model/DataFilterTemplate.java | 243 +++++ .../pm628/model/DataFilterTemplateFVO.java | 195 ++++ .../pm628/model/DataFilterTemplateMVO.java | 219 +++++ .../tmf/pm628/model/DayOfMonthRecurrence.java | 173 ++++ .../pm628/model/DayOfMonthRecurrenceFVO.java | 174 ++++ .../pm628/model/DayOfMonthRecurrenceMVO.java | 174 ++++ .../tmf/pm628/model/DayOfWeekRecurrence.java | 173 ++++ .../pm628/model/DayOfWeekRecurrenceFVO.java | 174 ++++ .../pm628/model/DayOfWeekRecurrenceMVO.java | 174 ++++ .../etsi/osl/tmf/pm628/model/Duration.java | 108 +++ .../org/etsi/osl/tmf/pm628/model/Entity.java | 191 ++++ .../etsi/osl/tmf/pm628/model/EntityMVO.java | 145 +++ .../etsi/osl/tmf/pm628/model/EntityRef.java | 239 +++++ .../osl/tmf/pm628/model/EntityRefFVO.java | 240 +++++ .../osl/tmf/pm628/model/EntityRefMVO.java | 240 +++++ .../org/etsi/osl/tmf/pm628/model/Error.java | 269 ++++++ .../org/etsi/osl/tmf/pm628/model/Event.java | 554 ++++++++++++ .../tmf/pm628/model/ExecutionStateType.java | 66 ++ .../etsi/osl/tmf/pm628/model/Extensible.java | 143 +++ .../osl/tmf/pm628/model/ExtensibleFVO.java | 145 +++ .../tmf/pm628/model/ExternalIdentifier.java | 218 +++++ .../pm628/model/ExternalIdentifierFVO.java | 195 ++++ .../pm628/model/ExternalIdentifierMVO.java | 219 +++++ .../org/etsi/osl/tmf/pm628/model/Feature.java | 347 ++++++++ .../etsi/osl/tmf/pm628/model/FeatureFVO.java | 324 +++++++ .../etsi/osl/tmf/pm628/model/FeatureMVO.java | 349 ++++++++ .../tmf/pm628/model/FeatureRelationship.java | 332 +++++++ .../pm628/model/FeatureRelationshipFVO.java | 334 +++++++ .../pm628/model/FeatureRelationshipMVO.java | 334 +++++++ .../osl/tmf/pm628/model/FileTransferData.java | 279 ++++++ .../tmf/pm628/model/FileTransferDataFVO.java | 280 ++++++ .../tmf/pm628/model/FileTransferDataMVO.java | 280 ++++++ .../etsi/osl/tmf/pm628/model/Granularity.java | 70 ++ .../org/etsi/osl/tmf/pm628/model/Hub.java | 240 +++++ .../org/etsi/osl/tmf/pm628/model/HubFVO.java | 194 ++++ .../osl/tmf/pm628/model/IndicatorType.java | 60 ++ .../etsi/osl/tmf/pm628/model/IntentRef.java | 244 +++++ .../osl/tmf/pm628/model/IntentRefFVO.java | 244 +++++ .../osl/tmf/pm628/model/IntentRefMVO.java | 244 +++++ .../etsi/osl/tmf/pm628/model/JsonPatch.java | 226 +++++ .../osl/tmf/pm628/model/LogicalResource.java | 311 +++++++ .../tmf/pm628/model/LogicalResourceFVO.java | 312 +++++++ .../tmf/pm628/model/LogicalResourceMVO.java | 312 +++++++ .../osl/tmf/pm628/model/ManagementJob.java | 462 ++++++++++ .../osl/tmf/pm628/model/ManagementJobFVO.java | 463 ++++++++++ .../osl/tmf/pm628/model/ManagementJobMVO.java | 310 +++++++ .../pm628/model/MeasurementCollectionJob.java | 357 ++++++++ ...ollectionJobAttributeValueChangeEvent.java | 559 ++++++++++++ ...onJobAttributeValueChangeEventPayload.java | 85 ++ .../MeasurementCollectionJobCreateEvent.java | 559 ++++++++++++ ...rementCollectionJobCreateEventPayload.java | 85 ++ .../MeasurementCollectionJobDeleteEvent.java | 559 ++++++++++++ ...rementCollectionJobDeleteEventPayload.java | 85 ++ ...ollectionJobExecutionStateChangeEvent.java | 559 ++++++++++++ ...onJobExecutionStateChangeEventPayload.java | 85 ++ .../model/MeasurementCollectionJobFVO.java | 357 ++++++++ ...llectionJobFilesPreparationErrorEvent.java | 559 ++++++++++++ ...nJobFilesPreparationErrorEventPayload.java | 85 ++ ...asurementCollectionJobFilesReadyEvent.java | 559 ++++++++++++ ...ntCollectionJobFilesReadyEventPayload.java | 85 ++ .../model/MeasurementCollectionJobMVO.java | 311 +++++++ .../model/MeasurementCollectionJobRef.java | 244 +++++ .../osl/tmf/pm628/model/MeasurementJob.java | 406 +++++++++ .../tmf/pm628/model/MeasurementJobFVO.java | 410 +++++++++ .../tmf/pm628/model/MeasurementJobMVO.java | 323 +++++++ .../pm628/model/MonitoredClassCriteria.java | 194 ++++ .../model/MonitoredClassCriteriaFVO.java | 195 ++++ .../model/MonitoredInstancesCriteria.java | 182 ++++ .../model/MonitoredInstancesCriteriaFVO.java | 183 ++++ .../MonthlyScheduleDayOfWeekDefinition.java | 207 +++++ ...MonthlyScheduleDayOfWeekDefinitionFVO.java | 208 +++++ ...MonthlyScheduleDayOfWeekDefinitionMVO.java | 208 +++++ .../org/etsi/osl/tmf/pm628/model/Note.java | 245 +++++ .../org/etsi/osl/tmf/pm628/model/NoteFVO.java | 222 +++++ .../org/etsi/osl/tmf/pm628/model/NoteMVO.java | 246 +++++ .../tmf/pm628/model/OrderItemActionType.java | 60 ++ .../osl/tmf/pm628/model/PackingEnumType.java | 62 ++ .../etsi/osl/tmf/pm628/model/PackingType.java | 86 ++ .../etsi/osl/tmf/pm628/model/PartyRef.java | 244 +++++ .../etsi/osl/tmf/pm628/model/PartyRefFVO.java | 244 +++++ .../etsi/osl/tmf/pm628/model/PartyRefMVO.java | 244 +++++ .../pm628/model/PartyRefOrPartyRoleRef.java | 36 + .../model/PartyRefOrPartyRoleRefFVO.java | 39 + .../model/PartyRefOrPartyRoleRefMVO.java | 39 + .../osl/tmf/pm628/model/PartyRoleRef.java | 291 ++++++ .../osl/tmf/pm628/model/PartyRoleRefFVO.java | 291 ++++++ .../osl/tmf/pm628/model/PartyRoleRefMVO.java | 291 ++++++ ...chMeasurementCollectionJob200Response.java | 43 + ...ndicatorGroupSpecification200Response.java | 28 + ...anceIndicatorSpecification200Response.java | 32 + ...erformanceIndicatorGroupSpecification.java | 280 ++++++ ...ormanceIndicatorGroupSpecificationFVO.java | 234 +++++ ...ormanceIndicatorGroupSpecificationMVO.java | 256 ++++++ ...ormanceIndicatorGroupSpecificationRef.java | 270 ++++++ ...IndicatorGroupSpecificationRefOrValue.java | 40 + .../model/PerformanceIndicatorGroupValue.java | 146 +++ .../PerformanceIndicatorSpecRelationship.java | 267 ++++++ ...rformanceIndicatorSpecRelationshipFVO.java | 270 ++++++ ...rformanceIndicatorSpecRelationshipMVO.java | 268 ++++++ .../PerformanceIndicatorSpecification.java | 476 ++++++++++ .../PerformanceIndicatorSpecificationFVO.java | 481 ++++++++++ .../PerformanceIndicatorSpecificationMVO.java | 476 ++++++++++ .../PerformanceIndicatorSpecificationRef.java | 271 ++++++ ...rformanceIndicatorSpecificationRefFVO.java | 271 ++++++ ...rformanceIndicatorSpecificationRefMVO.java | 271 ++++++ ...manceIndicatorSpecificationRefOrValue.java | 44 + ...ceIndicatorSpecificationRefOrValueFVO.java | 47 + ...ceIndicatorSpecificationRefOrValueMVO.java | 47 + .../model/PerformanceIndicatorValue.java | 133 +++ .../pm628/model/PerformanceMeasurement.java | 339 +++++++ .../model/PerformanceMeasurementAtomic.java | 172 ++++ ...rmanceMeasurementCollectionReadyEvent.java | 559 ++++++++++++ ...easurementCollectionReadyEventPayload.java | 85 ++ .../PerformanceMeasurementCreateEvent.java | 559 ++++++++++++ ...formanceMeasurementCreateEventPayload.java | 85 ++ .../model/PerformanceMeasurementGroup.java | 172 ++++ .../model/PerformanceMeasurementRef.java | 270 ++++++ .../PerformanceMeasurementRefOrValue.java | 44 + .../PerformanceMeasurementRelationship.java | 292 ++++++ .../etsi/osl/tmf/pm628/model/PlaceRef.java | 244 +++++ .../etsi/osl/tmf/pm628/model/PlaceRefFVO.java | 244 +++++ .../etsi/osl/tmf/pm628/model/PlaceRefMVO.java | 244 +++++ .../etsi/osl/tmf/pm628/model/PolicyRef.java | 267 ++++++ .../osl/tmf/pm628/model/PolicyRefFVO.java | 267 ++++++ .../osl/tmf/pm628/model/PolicyRefMVO.java | 267 ++++++ .../tmf/pm628/model/ProtocolTransferData.java | 96 ++ .../pm628/model/ProtocolTransferDataFVO.java | 96 ++ .../pm628/model/ProtocolTransferDataMVO.java | 88 ++ .../model/RelatedPartyRefOrPartyRoleRef.java | 195 ++++ .../RelatedPartyRefOrPartyRoleRefFVO.java | 197 ++++ .../RelatedPartyRefOrPartyRoleRefMVO.java | 197 ++++ .../osl/tmf/pm628/model/RelatedPlaceRef.java | 195 ++++ .../tmf/pm628/model/RelatedPlaceRefFVO.java | 198 +++++ .../tmf/pm628/model/RelatedPlaceRefMVO.java | 198 +++++ .../pm628/model/RelatedResourceOrderItem.java | 292 ++++++ .../model/RelatedResourceOrderItemFVO.java | 293 ++++++ .../model/RelatedResourceOrderItemMVO.java | 293 ++++++ .../osl/tmf/pm628/model/ReportingPeriod.java | 66 ++ .../etsi/osl/tmf/pm628/model/Resource.java | 837 +++++++++++++++++ .../ResourceAdministrativeStateType.java | 58 ++ .../etsi/osl/tmf/pm628/model/ResourceFVO.java | 838 ++++++++++++++++++ .../etsi/osl/tmf/pm628/model/ResourceMVO.java | 838 ++++++++++++++++++ .../model/ResourceOperationalStateType.java | 56 ++ .../etsi/osl/tmf/pm628/model/ResourceRef.java | 250 ++++++ .../osl/tmf/pm628/model/ResourceRefFVO.java | 250 ++++++ .../osl/tmf/pm628/model/ResourceRefMVO.java | 250 ++++++ .../tmf/pm628/model/ResourceRefOrValue.java | 60 ++ .../pm628/model/ResourceRefOrValueFVO.java | 63 ++ .../pm628/model/ResourceRefOrValueMVO.java | 63 ++ .../tmf/pm628/model/ResourceRelationship.java | 232 +++++ .../pm628/model/ResourceRelationshipFVO.java | 235 +++++ .../pm628/model/ResourceRelationshipMVO.java | 235 +++++ .../pm628/model/ResourceSpecificationRef.java | 267 ++++++ .../model/ResourceSpecificationRefFVO.java | 267 ++++++ .../model/ResourceSpecificationRefMVO.java | 267 ++++++ .../tmf/pm628/model/ResourceStatusType.java | 72 ++ .../pm628/model/ResourceUsageStateType.java | 58 ++ .../tmf/pm628/model/ScheduleDefinition.java | 431 +++++++++ .../pm628/model/ScheduleDefinitionFVO.java | 408 +++++++++ .../pm628/model/ScheduleDefinitionMVO.java | 432 +++++++++ .../etsi/osl/tmf/pm628/model/TimePeriod.java | 112 +++ .../osl/tmf/pm628/model/TrackingRecord.java | 306 +++++++ .../tmf/pm628/model/TrackingRecordFVO.java | 283 ++++++ .../tmf/pm628/model/TrackingRecordMVO.java | 307 +++++++ 191 files changed, 45413 insertions(+) create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Error.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Event.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Note.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java new file mode 100644 index 0000000..283e265 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java @@ -0,0 +1,108 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Base schema for addressable entities + */ + +@Schema(name = "Addressable", description = "Base schema for addressable entities") +@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 Addressable { + + private String href; + + private String id; + + public Addressable 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 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; + } + + @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.href, addressable.href) && + Objects.equals(this.id, addressable.id); + } + + @Override + public int hashCode() { + return Objects.hash(href, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Addressable {\n"); + sb.append(" href: ").append(toIndentedString(href)).append("\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/AddressableMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java new file mode 100644 index 0000000..4932c1f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java @@ -0,0 +1,86 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 0000000..d8b4704 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java @@ -0,0 +1,56 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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/AttachmentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java new file mode 100644 index 0000000..dcb4118 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java @@ -0,0 +1,291 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * AttachmentRef + */ + + +@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 AttachmentRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String description; + + private String url; + + public AttachmentRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public AttachmentRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public AttachmentRef 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 AttachmentRef 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 AttachmentRef 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 AttachmentRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public AttachmentRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AttachmentRef 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 AttachmentRef 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; + } + + public AttachmentRef 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 AttachmentRef 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; + } + AttachmentRef attachmentRef = (AttachmentRef) o; + return Objects.equals(this.atType, attachmentRef.atType) && + Objects.equals(this.atBaseType, attachmentRef.atBaseType) && + Objects.equals(this.atSchemaLocation, attachmentRef.atSchemaLocation) && + Objects.equals(this.href, attachmentRef.href) && + Objects.equals(this.id, attachmentRef.id) && + Objects.equals(this.name, attachmentRef.name) && + Objects.equals(this.atReferredType, attachmentRef.atReferredType) && + Objects.equals(this.description, attachmentRef.description) && + Objects.equals(this.url, attachmentRef.url); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, description, url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentRef {\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(" 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/AttachmentRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java new file mode 100644 index 0000000..1b10d3e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java @@ -0,0 +1,291 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String description; + + private String url; + + public AttachmentRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public AttachmentRefFVO(String atType) { + this.atType = atType; + } + + public AttachmentRefFVO 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 AttachmentRefFVO 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 AttachmentRefFVO 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 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 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; + } + + 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.atType, attachmentRefFVO.atType) && + Objects.equals(this.atBaseType, attachmentRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, attachmentRefFVO.atSchemaLocation) && + Objects.equals(this.href, attachmentRefFVO.href) && + Objects.equals(this.id, attachmentRefFVO.id) && + Objects.equals(this.name, attachmentRefFVO.name) && + Objects.equals(this.atReferredType, attachmentRefFVO.atReferredType) && + Objects.equals(this.description, attachmentRefFVO.description) && + Objects.equals(this.url, attachmentRefFVO.url); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, description, url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentRefFVO {\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(" 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 0000000..d964099 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java @@ -0,0 +1,291 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String description; + + private String url; + + public AttachmentRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public AttachmentRefMVO(String atType) { + this.atType = atType; + } + + public AttachmentRefMVO 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 AttachmentRefMVO 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 AttachmentRefMVO 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 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 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; + } + + 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.atType, attachmentRefMVO.atType) && + Objects.equals(this.atBaseType, attachmentRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, attachmentRefMVO.atSchemaLocation) && + Objects.equals(this.href, attachmentRefMVO.href) && + Objects.equals(this.id, attachmentRefMVO.id) && + Objects.equals(this.name, attachmentRefMVO.name) && + Objects.equals(this.atReferredType, attachmentRefMVO.atReferredType) && + Objects.equals(this.description, attachmentRefMVO.description) && + Objects.equals(this.url, attachmentRefMVO.url); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, description, url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttachmentRefMVO {\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(" 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 0000000..65643cd --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java @@ -0,0 +1,438 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 0000000..00abbe9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -0,0 +1,255 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicRelationship; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Characteristic + */ + + +@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 Characteristic { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String name; + + private String valueType; + + @Valid + private List characteristicRelationship = new ArrayList<>(); + + public Characteristic() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Characteristic(String atType) { + this.atType = atType; + } + + public Characteristic 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 Characteristic 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 Characteristic 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 Characteristic id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Characteristic 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 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.atType, characteristic.atType) && + Objects.equals(this.atBaseType, characteristic.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristic.atSchemaLocation) && + Objects.equals(this.id, characteristic.id) && + 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(atType, atBaseType, atSchemaLocation, id, name, valueType, characteristicRelationship); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Characteristic {\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(" id: ").append(toIndentedString(id)).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/CharacteristicFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java new file mode 100644 index 0000000..4ba0a4b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java @@ -0,0 +1,232 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicRelationshipFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String name; + + private String valueType; + + @Valid + private List characteristicRelationship = new ArrayList<>(); + + public CharacteristicFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public CharacteristicFVO(String atType) { + this.atType = atType; + } + + public CharacteristicFVO 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 CharacteristicFVO 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 CharacteristicFVO 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 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.atType, characteristicFVO.atType) && + Objects.equals(this.atBaseType, characteristicFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicFVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, name, valueType, characteristicRelationship); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicFVO {\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(" 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 0000000..7b329f3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java @@ -0,0 +1,256 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicRelationshipMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String name; + + private String valueType; + + @Valid + private List characteristicRelationship = new ArrayList<>(); + + public CharacteristicMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public CharacteristicMVO(String atType) { + this.atType = atType; + } + + public CharacteristicMVO 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 CharacteristicMVO 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 CharacteristicMVO 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 CharacteristicMVO id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + 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.atType, characteristicMVO.atType) && + Objects.equals(this.atBaseType, characteristicMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicMVO.atSchemaLocation) && + Objects.equals(this.id, characteristicMVO.id) && + 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(atType, atBaseType, atSchemaLocation, id, name, valueType, characteristicRelationship); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicMVO {\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(" id: ").append(toIndentedString(id)).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 0000000..9dab228 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -0,0 +1,194 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * CharacteristicRelationship + */ + + +@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 CharacteristicRelationship { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String relationshipType; + + public CharacteristicRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public CharacteristicRelationship(String atType) { + this.atType = atType; + } + + public CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + 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.atType, characteristicRelationship.atType) && + Objects.equals(this.atBaseType, characteristicRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicRelationship.atSchemaLocation) && + Objects.equals(this.id, characteristicRelationship.id) && + Objects.equals(this.relationshipType, characteristicRelationship.relationshipType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, relationshipType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicRelationship {\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(" id: ").append(toIndentedString(id)).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/CharacteristicRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java new file mode 100644 index 0000000..75c0c66 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java @@ -0,0 +1,197 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String relationshipType; + + public CharacteristicRelationshipFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public CharacteristicRelationshipFVO(String atType, String id, String relationshipType) { + this.atType = atType; + this.id = id; + this.relationshipType = relationshipType; + } + + public CharacteristicRelationshipFVO 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 CharacteristicRelationshipFVO 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 CharacteristicRelationshipFVO 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 CharacteristicRelationshipFVO id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + @NotNull + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + 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.atType, characteristicRelationshipFVO.atType) && + Objects.equals(this.atBaseType, characteristicRelationshipFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicRelationshipFVO.atSchemaLocation) && + Objects.equals(this.id, characteristicRelationshipFVO.id) && + Objects.equals(this.relationshipType, characteristicRelationshipFVO.relationshipType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, relationshipType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicRelationshipFVO {\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(" id: ").append(toIndentedString(id)).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 0000000..fbd0f09 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java @@ -0,0 +1,195 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String relationshipType; + + public CharacteristicRelationshipMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public CharacteristicRelationshipMVO(String atType) { + this.atType = atType; + } + + public CharacteristicRelationshipMVO 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 CharacteristicRelationshipMVO 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 CharacteristicRelationshipMVO 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 CharacteristicRelationshipMVO id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier of the characteristic + * @return id + */ + + @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + 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.atType, characteristicRelationshipMVO.atType) && + Objects.equals(this.atBaseType, characteristicRelationshipMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, characteristicRelationshipMVO.atSchemaLocation) && + Objects.equals(this.id, characteristicRelationshipMVO.id) && + Objects.equals(this.relationshipType, characteristicRelationshipMVO.relationshipType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, relationshipType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CharacteristicRelationshipMVO {\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(" id: ").append(toIndentedString(id)).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 0000000..8b29755 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java @@ -0,0 +1,62 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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 0000000..fe5dec9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java @@ -0,0 +1,60 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * 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 0000000..ae1e890 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -0,0 +1,86 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.CompressionEnumType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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") +public class CompressionType { + + 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 0000000..ef8d9a4 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -0,0 +1,358 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRef; +import org.openapitools.model.Characteristic; +import org.openapitools.model.DataFilterMap; +import org.openapitools.model.ExternalIdentifier; +import org.openapitools.model.Feature; +import org.openapitools.model.IntentRef; +import org.openapitools.model.LogicalResource; +import org.openapitools.model.Note; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.openapitools.model.RelatedPlaceRef; +import org.openapitools.model.RelatedResourceOrderItem; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationship; +import org.openapitools.model.ResourceSpecificationRef; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DataAccessEndpoint + */ + + +@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 DataAccessEndpoint extends LogicalResource { + + private URI uri; + + private DataFilterMap uriQueryFilter; + + 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 atType(String atType) { + super.atType(atType); + return this; + } + + public DataAccessEndpoint atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public DataAccessEndpoint atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public DataAccessEndpoint href(String href) { + super.href(href); + return this; + } + + public DataAccessEndpoint id(String id) { + super.id(id); + 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 0000000..187edad --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java @@ -0,0 +1,359 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefFVO; +import org.openapitools.model.CharacteristicFVO; +import org.openapitools.model.DataFilterMapFVO; +import org.openapitools.model.ExternalIdentifierFVO; +import org.openapitools.model.FeatureFVO; +import org.openapitools.model.IntentRefFVO; +import org.openapitools.model.LogicalResourceFVO; +import org.openapitools.model.NoteFVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.openapitools.model.RelatedPlaceRefFVO; +import org.openapitools.model.RelatedResourceOrderItemFVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationshipFVO; +import org.openapitools.model.ResourceSpecificationRefFVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private URI uri; + + private DataFilterMapFVO uriQueryFilter; + + 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 atType(String atType) { + super.atType(atType); + return this; + } + + public DataAccessEndpointFVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public DataAccessEndpointFVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public DataAccessEndpointFVO href(String href) { + super.href(href); + return this; + } + + public DataAccessEndpointFVO id(String id) { + super.id(id); + 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 0000000..e092f7c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java @@ -0,0 +1,359 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefMVO; +import org.openapitools.model.CharacteristicMVO; +import org.openapitools.model.DataFilterMapMVO; +import org.openapitools.model.ExternalIdentifierMVO; +import org.openapitools.model.FeatureMVO; +import org.openapitools.model.IntentRefMVO; +import org.openapitools.model.LogicalResourceMVO; +import org.openapitools.model.NoteMVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.openapitools.model.RelatedPlaceRefMVO; +import org.openapitools.model.RelatedResourceOrderItemMVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationshipMVO; +import org.openapitools.model.ResourceSpecificationRefMVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private URI uri; + + private DataFilterMapMVO uriQueryFilter; + + 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 atType(String atType) { + super.atType(atType); + return this; + } + + public DataAccessEndpointMVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public DataAccessEndpointMVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public DataAccessEndpointMVO href(String href) { + super.href(href); + return this; + } + + public DataAccessEndpointMVO id(String id) { + super.id(id); + 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/DataFilterAttribute.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java new file mode 100644 index 0000000..f7ebbe3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java @@ -0,0 +1,96 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + 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 0000000..b5be0ec --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java @@ -0,0 +1,107 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataFilterAttribute; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 DataFilterAttributeStringArray extends DataFilterAttribute { + + @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 0000000..6c3ac20 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -0,0 +1,183 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataFilterMapItem; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DataFilterMap + */ + + +@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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List<@Valid DataFilterMapItem> mappings = new ArrayList<>(); + + public DataFilterMap() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DataFilterMap(String atType) { + this.atType = atType; + } + + public DataFilterMap 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 DataFilterMap 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 DataFilterMap 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 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.atType, dataFilterMap.atType) && + Objects.equals(this.atBaseType, dataFilterMap.atBaseType) && + Objects.equals(this.atSchemaLocation, dataFilterMap.atSchemaLocation) && + Objects.equals(this.mappings, dataFilterMap.mappings); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, mappings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataFilterMap {\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(" 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 0000000..af74f3b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -0,0 +1,184 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataFilterMapItemFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List<@Valid DataFilterMapItemFVO> mappings = new ArrayList<>(); + + public DataFilterMapFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DataFilterMapFVO(String atType) { + this.atType = atType; + } + + public DataFilterMapFVO 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 DataFilterMapFVO 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 DataFilterMapFVO 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 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.atType, dataFilterMapFVO.atType) && + Objects.equals(this.atBaseType, dataFilterMapFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dataFilterMapFVO.atSchemaLocation) && + Objects.equals(this.mappings, dataFilterMapFVO.mappings); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, mappings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataFilterMapFVO {\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(" 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 0000000..3beba81 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java @@ -0,0 +1,110 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.DataFilterAttributeStringArray; +import org.openapitools.model.DataFilterTemplate; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * definition of a field used for filtering template with the associated attributes. + */ + +@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 { + + private DataFilterTemplate filterTemplate; + + 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 0000000..e00ab29 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -0,0 +1,112 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.DataFilterAttributeStringArray; +import org.openapitools.model.DataFilterTemplateFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private DataFilterTemplateFVO filterTemplate; + + 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 0000000..80a9137 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java @@ -0,0 +1,112 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.DataFilterAttributeStringArray; +import org.openapitools.model.DataFilterTemplateMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 0000000..8e529df --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -0,0 +1,184 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataFilterMapItemMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>(); + + public DataFilterMapMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DataFilterMapMVO(String atType) { + this.atType = atType; + } + + public DataFilterMapMVO 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 DataFilterMapMVO 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 DataFilterMapMVO 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 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.atType, dataFilterMapMVO.atType) && + Objects.equals(this.atBaseType, dataFilterMapMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dataFilterMapMVO.atSchemaLocation) && + Objects.equals(this.mappings, dataFilterMapMVO.mappings); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, mappings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataFilterMapMVO {\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(" 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 0000000..7f1a6ba --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java @@ -0,0 +1,243 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.net.URI; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DataFilterTemplate + */ + + +@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 DataFilterTemplate { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private URI href; + + private String name; + + private String description; + + public DataFilterTemplate() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DataFilterTemplate(String atType) { + this.atType = atType; + } + + public DataFilterTemplate 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 DataFilterTemplate 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 DataFilterTemplate 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 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(URI 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 URI getHref() { + return href; + } + + public void setHref(URI 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) + @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; + } + DataFilterTemplate dataFilterTemplate = (DataFilterTemplate) o; + return Objects.equals(this.atType, dataFilterTemplate.atType) && + Objects.equals(this.atBaseType, dataFilterTemplate.atBaseType) && + Objects.equals(this.atSchemaLocation, dataFilterTemplate.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, id, href, name, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataFilterTemplate {\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(" 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 0000000..8f9fa32 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -0,0 +1,195 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String name; + + private String description; + + public DataFilterTemplateFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DataFilterTemplateFVO(String atType) { + this.atType = atType; + } + + public DataFilterTemplateFVO 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 DataFilterTemplateFVO 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 DataFilterTemplateFVO 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 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.atType, dataFilterTemplateFVO.atType) && + Objects.equals(this.atBaseType, dataFilterTemplateFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dataFilterTemplateFVO.atSchemaLocation) && + Objects.equals(this.name, dataFilterTemplateFVO.name) && + Objects.equals(this.description, dataFilterTemplateFVO.description); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, name, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataFilterTemplateFVO {\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(" 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 0000000..0e0a582 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -0,0 +1,219 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String name; + + private String description; + + public DataFilterTemplateMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DataFilterTemplateMVO(String atType) { + this.atType = atType; + } + + public DataFilterTemplateMVO 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 DataFilterTemplateMVO 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 DataFilterTemplateMVO 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 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.atType, dataFilterTemplateMVO.atType) && + Objects.equals(this.atBaseType, dataFilterTemplateMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dataFilterTemplateMVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, id, name, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DataFilterTemplateMVO {\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(" 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 0000000..c39fe1b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -0,0 +1,173 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DayOfMonthRecurrence + */ + + +@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 DayOfMonthRecurrence { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + public DayOfMonthRecurrence() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DayOfMonthRecurrence(String atType) { + this.atType = atType; + } + + public DayOfMonthRecurrence 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 DayOfMonthRecurrence 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 DayOfMonthRecurrence 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 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 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.atType, dayOfMonthRecurrence.atType) && + Objects.equals(this.atBaseType, dayOfMonthRecurrence.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfMonthRecurrence.atSchemaLocation) && + Objects.equals(this.dates, dayOfMonthRecurrence.dates); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfMonthRecurrence {\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(" 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 0000000..a254998 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java @@ -0,0 +1,174 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + public DayOfMonthRecurrenceFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DayOfMonthRecurrenceFVO(String atType) { + this.atType = atType; + } + + public DayOfMonthRecurrenceFVO 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 DayOfMonthRecurrenceFVO 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 DayOfMonthRecurrenceFVO 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 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.atType, dayOfMonthRecurrenceFVO.atType) && + Objects.equals(this.atBaseType, dayOfMonthRecurrenceFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfMonthRecurrenceFVO.atSchemaLocation) && + Objects.equals(this.dates, dayOfMonthRecurrenceFVO.dates); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfMonthRecurrenceFVO {\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(" 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 0000000..d8fda4c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java @@ -0,0 +1,174 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + public DayOfMonthRecurrenceMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DayOfMonthRecurrenceMVO(String atType) { + this.atType = atType; + } + + public DayOfMonthRecurrenceMVO 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 DayOfMonthRecurrenceMVO 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 DayOfMonthRecurrenceMVO 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 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.atType, dayOfMonthRecurrenceMVO.atType) && + Objects.equals(this.atBaseType, dayOfMonthRecurrenceMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfMonthRecurrenceMVO.atSchemaLocation) && + Objects.equals(this.dates, dayOfMonthRecurrenceMVO.dates); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfMonthRecurrenceMVO {\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(" 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 0000000..2cb5c48 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -0,0 +1,173 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * DayOfWeekRecurrence + */ + + +@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 DayOfWeekRecurrence { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + public DayOfWeekRecurrence() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DayOfWeekRecurrence(String atType) { + this.atType = atType; + } + + public DayOfWeekRecurrence 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 DayOfWeekRecurrence 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 DayOfWeekRecurrence 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 DayOfWeekRecurrence 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; + } + DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o; + return Objects.equals(this.atType, dayOfWeekRecurrence.atType) && + Objects.equals(this.atBaseType, dayOfWeekRecurrence.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfWeekRecurrence.atSchemaLocation) && + Objects.equals(this.dates, dayOfWeekRecurrence.dates); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfWeekRecurrence {\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(" 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 0000000..39520df --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java @@ -0,0 +1,174 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + public DayOfWeekRecurrenceFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DayOfWeekRecurrenceFVO(String atType) { + this.atType = atType; + } + + public DayOfWeekRecurrenceFVO 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 DayOfWeekRecurrenceFVO 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 DayOfWeekRecurrenceFVO 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 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.atType, dayOfWeekRecurrenceFVO.atType) && + Objects.equals(this.atBaseType, dayOfWeekRecurrenceFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfWeekRecurrenceFVO.atSchemaLocation) && + Objects.equals(this.dates, dayOfWeekRecurrenceFVO.dates); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfWeekRecurrenceFVO {\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(" 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 0000000..e8f30f6 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java @@ -0,0 +1,174 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; + + public DayOfWeekRecurrenceMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public DayOfWeekRecurrenceMVO(String atType) { + this.atType = atType; + } + + public DayOfWeekRecurrenceMVO 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 DayOfWeekRecurrenceMVO 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 DayOfWeekRecurrenceMVO 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 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.atType, dayOfWeekRecurrenceMVO.atType) && + Objects.equals(this.atBaseType, dayOfWeekRecurrenceMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, dayOfWeekRecurrenceMVO.atSchemaLocation) && + Objects.equals(this.dates, dayOfWeekRecurrenceMVO.dates); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DayOfWeekRecurrenceMVO {\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(" 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 0000000..fab1381 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -0,0 +1,108 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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") +public class Duration { + + private Integer amount; + + 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 "); + } +} + diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java new file mode 100644 index 0000000..7294021 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -0,0 +1,191 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Base entity schema for use in TMForum Open-APIs. Property. + */ + +@Schema(name = "Entity", description = "Base entity schema for use in TMForum Open-APIs. Property.") +@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 Entity { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + public Entity() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Entity(String atType) { + this.atType = atType; + } + + public Entity 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 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(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 Entity 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 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; + } + + @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.atType, entity.atType) && + Objects.equals(this.atBaseType, entity.atBaseType) && + Objects.equals(this.atSchemaLocation, entity.atSchemaLocation) && + Objects.equals(this.href, entity.href) && + Objects.equals(this.id, entity.id); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Entity {\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("}"); + 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/EntityMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java new file mode 100644 index 0000000..990cadd --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java @@ -0,0 +1,145 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java new file mode 100644 index 0000000..707c003 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -0,0 +1,239 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * EntityRef + */ + +@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 EntityRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public EntityRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public EntityRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public EntityRef 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 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(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 EntityRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public EntityRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public EntityRef 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 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.atType, entityRef.atType) && + Objects.equals(this.atBaseType, entityRef.atBaseType) && + Objects.equals(this.atSchemaLocation, entityRef.atSchemaLocation) && + Objects.equals(this.href, entityRef.href) && + Objects.equals(this.id, entityRef.id) && + Objects.equals(this.name, entityRef.name) && + Objects.equals(this.atReferredType, entityRef.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 EntityRef {\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/EntityRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java new file mode 100644 index 0000000..bdbf1f0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java @@ -0,0 +1,240 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 0000000..630c03f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java @@ -0,0 +1,240 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java new file mode 100644 index 0000000..ebf831e --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -0,0 +1,269 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public class Error { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String code; + + private String reason; + + private String message; + + private String status; + + private String referenceError; + + public Error() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Error(String atType, String code, String reason) { + this.atType = atType; + this.code = code; + this.reason = reason; + } + + public Error 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 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(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 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(String referenceError) { + this.referenceError = referenceError; + return this; + } + + /** + * URI of documentation describing the error. + * @return referenceError + */ + + @Schema(name = "referenceError", description = "URI of documentation describing the error.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("referenceError") + public String getReferenceError() { + return referenceError; + } + + public void setReferenceError(String referenceError) { + this.referenceError = referenceError; + } + + @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.atType, error.atType) && + Objects.equals(this.atBaseType, error.atBaseType) && + Objects.equals(this.atSchemaLocation, error.atSchemaLocation) && + 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); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, code, reason, message, status, referenceError); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Error {\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(" 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("}"); + 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 0000000..cd93428 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java @@ -0,0 +1,554 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * 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 { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private Object event; + + public Event() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Event(String atType) { + this.atType = atType; + } + + public Event 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 Event 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 Event 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 Event 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 Event 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 Event 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 Event 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 Event 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 Event description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Event 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 Event timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public Event source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public Event reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public Event relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public Event addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public Event analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public Event addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public Event 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 Event 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 Event 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 Event 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; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Event event = (Event) o; + return Objects.equals(this.atType, event.atType) && + Objects.equals(this.atBaseType, event.atBaseType) && + Objects.equals(this.atSchemaLocation, event.atSchemaLocation) && + Objects.equals(this.href, event.href) && + Objects.equals(this.id, event.id) && + Objects.equals(this.correlationId, event.correlationId) && + Objects.equals(this.domain, event.domain) && + Objects.equals(this.title, event.title) && + Objects.equals(this.description, event.description) && + Objects.equals(this.priority, event.priority) && + Objects.equals(this.timeOccurred, event.timeOccurred) && + Objects.equals(this.source, event.source) && + Objects.equals(this.reportingSystem, event.reportingSystem) && + Objects.equals(this.relatedParty, event.relatedParty) && + Objects.equals(this.analyticCharacteristic, event.analyticCharacteristic) && + Objects.equals(this.eventId, event.eventId) && + Objects.equals(this.eventTime, event.eventTime) && + Objects.equals(this.eventType, event.eventType) && + Objects.equals(this.event, event.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Event {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java new file mode 100644 index 0000000..1467afb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java @@ -0,0 +1,66 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Possible values for the state of the execution + */ + +@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 ExecutionStateType { + + ACKNOWLEDGED("acknowledged"), + + REJECTED("rejected"), + + PENDING("pending"), + + INPROGRESS("inProgress"), + + CANCELLED("cancelled"), + + COMPLETED("completed"), + + FAILED("failed"); + + private String value; + + ExecutionStateType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ExecutionStateType fromValue(String value) { + for (ExecutionStateType b : ExecutionStateType.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/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java new file mode 100644 index 0000000..2533582 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -0,0 +1,143 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type + */ + +@Schema(name = "Extensible", description = "Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type") +@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 Extensible { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + public Extensible() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Extensible(String atType) { + this.atType = atType; + } + + public Extensible 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 Extensible 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 Extensible 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; + } + Extensible extensible = (Extensible) o; + return Objects.equals(this.atType, extensible.atType) && + Objects.equals(this.atBaseType, extensible.atBaseType) && + Objects.equals(this.atSchemaLocation, extensible.atSchemaLocation); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Extensible {\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/ExtensibleFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java new file mode 100644 index 0000000..990c168 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java @@ -0,0 +1,145 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type + */ + +@Schema(name = "Extensible_FVO", description = "Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type") +@JsonTypeName("Extensible_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 ExtensibleFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + public ExtensibleFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ExtensibleFVO(String atType) { + this.atType = atType; + } + + public ExtensibleFVO 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 ExtensibleFVO 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 ExtensibleFVO 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; + } + ExtensibleFVO extensibleFVO = (ExtensibleFVO) o; + return Objects.equals(this.atType, extensibleFVO.atType) && + Objects.equals(this.atBaseType, extensibleFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, extensibleFVO.atSchemaLocation); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExtensibleFVO {\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/ExternalIdentifier.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java new file mode 100644 index 0000000..f70347b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java @@ -0,0 +1,218 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ExternalIdentifier + */ + + +@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 ExternalIdentifier { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String owner; + + private String externalIdentifierType; + + private String id; + + public ExternalIdentifier() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ExternalIdentifier(String atType) { + this.atType = atType; + } + + public ExternalIdentifier 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 ExternalIdentifier 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 ExternalIdentifier 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 ExternalIdentifier owner(String owner) { + this.owner = owner; + return this; + } + + /** + * Name of the external system that owns the entity. + * @return owner + */ + + @Schema(name = "owner", example = "MagentoCommerce", description = "Name of the external system that owns the entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("owner") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public ExternalIdentifier externalIdentifierType(String externalIdentifierType) { + this.externalIdentifierType = externalIdentifierType; + return this; + } + + /** + * Type of the identification, typically would be the type of the entity within the external system + * @return externalIdentifierType + */ + + @Schema(name = "externalIdentifierType", example = "ProductOrder", description = "Type of the identification, typically would be the type of the entity within the external system", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("externalIdentifierType") + public String getExternalIdentifierType() { + return externalIdentifierType; + } + + public void setExternalIdentifierType(String externalIdentifierType) { + this.externalIdentifierType = externalIdentifierType; + } + + public ExternalIdentifier id(String id) { + this.id = id; + return this; + } + + /** + * identification of the entity within the external system. + * @return id + */ + + @Schema(name = "id", description = "identification of the entity within the external system.", 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; + } + ExternalIdentifier externalIdentifier = (ExternalIdentifier) o; + return Objects.equals(this.atType, externalIdentifier.atType) && + Objects.equals(this.atBaseType, externalIdentifier.atBaseType) && + Objects.equals(this.atSchemaLocation, externalIdentifier.atSchemaLocation) && + Objects.equals(this.owner, externalIdentifier.owner) && + Objects.equals(this.externalIdentifierType, externalIdentifier.externalIdentifierType) && + Objects.equals(this.id, externalIdentifier.id); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, owner, externalIdentifierType, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalIdentifier {\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(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" externalIdentifierType: ").append(toIndentedString(externalIdentifierType)).append("\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/ExternalIdentifierFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java new file mode 100644 index 0000000..284fbe7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java @@ -0,0 +1,195 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ExternalIdentifierFVO + */ + + +@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 ExternalIdentifierFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String owner; + + private String externalIdentifierType; + + public ExternalIdentifierFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ExternalIdentifierFVO(String atType) { + this.atType = atType; + } + + public ExternalIdentifierFVO 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 ExternalIdentifierFVO 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 ExternalIdentifierFVO 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 ExternalIdentifierFVO owner(String owner) { + this.owner = owner; + return this; + } + + /** + * Name of the external system that owns the entity. + * @return owner + */ + + @Schema(name = "owner", example = "MagentoCommerce", description = "Name of the external system that owns the entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("owner") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public ExternalIdentifierFVO externalIdentifierType(String externalIdentifierType) { + this.externalIdentifierType = externalIdentifierType; + return this; + } + + /** + * Type of the identification, typically would be the type of the entity within the external system + * @return externalIdentifierType + */ + + @Schema(name = "externalIdentifierType", example = "ProductOrder", description = "Type of the identification, typically would be the type of the entity within the external system", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("externalIdentifierType") + public String getExternalIdentifierType() { + return externalIdentifierType; + } + + public void setExternalIdentifierType(String externalIdentifierType) { + this.externalIdentifierType = externalIdentifierType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalIdentifierFVO externalIdentifierFVO = (ExternalIdentifierFVO) o; + return Objects.equals(this.atType, externalIdentifierFVO.atType) && + Objects.equals(this.atBaseType, externalIdentifierFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, externalIdentifierFVO.atSchemaLocation) && + Objects.equals(this.owner, externalIdentifierFVO.owner) && + Objects.equals(this.externalIdentifierType, externalIdentifierFVO.externalIdentifierType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, owner, externalIdentifierType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalIdentifierFVO {\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(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" externalIdentifierType: ").append(toIndentedString(externalIdentifierType)).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/ExternalIdentifierMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java new file mode 100644 index 0000000..2c6fb12 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java @@ -0,0 +1,219 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ExternalIdentifierMVO + */ + + +@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 ExternalIdentifierMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String owner; + + private String externalIdentifierType; + + private String id; + + public ExternalIdentifierMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ExternalIdentifierMVO(String atType) { + this.atType = atType; + } + + public ExternalIdentifierMVO 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 ExternalIdentifierMVO 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 ExternalIdentifierMVO 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 ExternalIdentifierMVO owner(String owner) { + this.owner = owner; + return this; + } + + /** + * Name of the external system that owns the entity. + * @return owner + */ + + @Schema(name = "owner", example = "MagentoCommerce", description = "Name of the external system that owns the entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("owner") + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + public ExternalIdentifierMVO externalIdentifierType(String externalIdentifierType) { + this.externalIdentifierType = externalIdentifierType; + return this; + } + + /** + * Type of the identification, typically would be the type of the entity within the external system + * @return externalIdentifierType + */ + + @Schema(name = "externalIdentifierType", example = "ProductOrder", description = "Type of the identification, typically would be the type of the entity within the external system", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("externalIdentifierType") + public String getExternalIdentifierType() { + return externalIdentifierType; + } + + public void setExternalIdentifierType(String externalIdentifierType) { + this.externalIdentifierType = externalIdentifierType; + } + + public ExternalIdentifierMVO id(String id) { + this.id = id; + return this; + } + + /** + * identification of the entity within the external system. + * @return id + */ + + @Schema(name = "id", description = "identification of the entity within the external system.", 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; + } + ExternalIdentifierMVO externalIdentifierMVO = (ExternalIdentifierMVO) o; + return Objects.equals(this.atType, externalIdentifierMVO.atType) && + Objects.equals(this.atBaseType, externalIdentifierMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, externalIdentifierMVO.atSchemaLocation) && + Objects.equals(this.owner, externalIdentifierMVO.owner) && + Objects.equals(this.externalIdentifierType, externalIdentifierMVO.externalIdentifierType) && + Objects.equals(this.id, externalIdentifierMVO.id); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, owner, externalIdentifierType, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalIdentifierMVO {\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(" owner: ").append(toIndentedString(owner)).append("\n"); + sb.append(" externalIdentifierType: ").append(toIndentedString(externalIdentifierType)).append("\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/Feature.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java new file mode 100644 index 0000000..9037538 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java @@ -0,0 +1,347 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.FeatureRelationship; +import org.openapitools.model.PolicyRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Feature + */ + + +@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 Feature { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private Boolean isBundle; + + @Valid + private List featureRelationship = new ArrayList<>(); + + @Valid + private List featureCharacteristic = new ArrayList<>(); + + @Valid + private List policyConstraint = new ArrayList<>(); + + private Boolean isEnabled; + + private String id; + + private String name; + + public Feature() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Feature(String atType) { + this.atType = atType; + } + + public Feature 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 Feature 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 Feature 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 Feature isBundle(Boolean isBundle) { + this.isBundle = isBundle; + return this; + } + + /** + * True if this is a feature group. Default is false. + * @return isBundle + */ + + @Schema(name = "isBundle", description = "True if this is a feature group. Default is false.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("isBundle") + public Boolean getIsBundle() { + return isBundle; + } + + public void setIsBundle(Boolean isBundle) { + this.isBundle = isBundle; + } + + public Feature featureRelationship(List featureRelationship) { + this.featureRelationship = featureRelationship; + return this; + } + + public Feature addFeatureRelationshipItem(FeatureRelationship featureRelationshipItem) { + if (this.featureRelationship == null) { + this.featureRelationship = new ArrayList<>(); + } + this.featureRelationship.add(featureRelationshipItem); + return this; + } + + /** + * Collection of feature relationships + * @return featureRelationship + */ + @Valid + @Schema(name = "featureRelationship", description = "Collection of feature relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("featureRelationship") + public List getFeatureRelationship() { + return featureRelationship; + } + + public void setFeatureRelationship(List featureRelationship) { + this.featureRelationship = featureRelationship; + } + + public Feature featureCharacteristic(List featureCharacteristic) { + this.featureCharacteristic = featureCharacteristic; + return this; + } + + public Feature addFeatureCharacteristicItem(Characteristic featureCharacteristicItem) { + if (this.featureCharacteristic == null) { + this.featureCharacteristic = new ArrayList<>(); + } + this.featureCharacteristic.add(featureCharacteristicItem); + return this; + } + + /** + * This is a list of Characteristics for a particular feature. + * @return featureCharacteristic + */ + @Valid + @Schema(name = "featureCharacteristic", description = "This is a list of Characteristics for a particular feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("featureCharacteristic") + public List getFeatureCharacteristic() { + return featureCharacteristic; + } + + public void setFeatureCharacteristic(List featureCharacteristic) { + this.featureCharacteristic = featureCharacteristic; + } + + public Feature policyConstraint(List policyConstraint) { + this.policyConstraint = policyConstraint; + return this; + } + + public Feature addPolicyConstraintItem(PolicyRef policyConstraintItem) { + if (this.policyConstraint == null) { + this.policyConstraint = new ArrayList<>(); + } + this.policyConstraint.add(policyConstraintItem); + return this; + } + + /** + * Reference to manage a list of feature specification policy constraints + * @return policyConstraint + */ + @Valid + @Schema(name = "policyConstraint", description = "Reference to manage a list of feature specification policy constraints", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("policyConstraint") + public List getPolicyConstraint() { + return policyConstraint; + } + + public void setPolicyConstraint(List policyConstraint) { + this.policyConstraint = policyConstraint; + } + + public Feature isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * True if this feature is enabled. Default is true. + * @return isEnabled + */ + + @Schema(name = "isEnabled", description = "True if this feature is enabled. Default is true.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("isEnabled") + public Boolean getIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + } + + public Feature 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 Feature name(String name) { + this.name = name; + return this; + } + + /** + * This is the name for the feature. + * @return name + */ + + @Schema(name = "name", description = "This is the name for the feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Feature feature = (Feature) o; + return Objects.equals(this.atType, feature.atType) && + Objects.equals(this.atBaseType, feature.atBaseType) && + Objects.equals(this.atSchemaLocation, feature.atSchemaLocation) && + Objects.equals(this.isBundle, feature.isBundle) && + Objects.equals(this.featureRelationship, feature.featureRelationship) && + Objects.equals(this.featureCharacteristic, feature.featureCharacteristic) && + Objects.equals(this.policyConstraint, feature.policyConstraint) && + Objects.equals(this.isEnabled, feature.isEnabled) && + Objects.equals(this.id, feature.id) && + Objects.equals(this.name, feature.name); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Feature {\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(" isBundle: ").append(toIndentedString(isBundle)).append("\n"); + sb.append(" featureRelationship: ").append(toIndentedString(featureRelationship)).append("\n"); + sb.append(" featureCharacteristic: ").append(toIndentedString(featureCharacteristic)).append("\n"); + sb.append(" policyConstraint: ").append(toIndentedString(policyConstraint)).append("\n"); + sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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/FeatureFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java new file mode 100644 index 0000000..cceaf38 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java @@ -0,0 +1,324 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicFVO; +import org.openapitools.model.FeatureRelationshipFVO; +import org.openapitools.model.PolicyRefFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FeatureFVO + */ + + +@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 FeatureFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private Boolean isBundle; + + @Valid + private List featureRelationship = new ArrayList<>(); + + @Valid + private List featureCharacteristic = new ArrayList<>(); + + @Valid + private List policyConstraint = new ArrayList<>(); + + private Boolean isEnabled; + + private String name; + + public FeatureFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FeatureFVO(String atType) { + this.atType = atType; + } + + public FeatureFVO 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 FeatureFVO 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 FeatureFVO 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 FeatureFVO isBundle(Boolean isBundle) { + this.isBundle = isBundle; + return this; + } + + /** + * True if this is a feature group. Default is false. + * @return isBundle + */ + + @Schema(name = "isBundle", description = "True if this is a feature group. Default is false.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("isBundle") + public Boolean getIsBundle() { + return isBundle; + } + + public void setIsBundle(Boolean isBundle) { + this.isBundle = isBundle; + } + + public FeatureFVO featureRelationship(List featureRelationship) { + this.featureRelationship = featureRelationship; + return this; + } + + public FeatureFVO addFeatureRelationshipItem(FeatureRelationshipFVO featureRelationshipItem) { + if (this.featureRelationship == null) { + this.featureRelationship = new ArrayList<>(); + } + this.featureRelationship.add(featureRelationshipItem); + return this; + } + + /** + * Collection of feature relationships + * @return featureRelationship + */ + @Valid + @Schema(name = "featureRelationship", description = "Collection of feature relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("featureRelationship") + public List getFeatureRelationship() { + return featureRelationship; + } + + public void setFeatureRelationship(List featureRelationship) { + this.featureRelationship = featureRelationship; + } + + public FeatureFVO featureCharacteristic(List featureCharacteristic) { + this.featureCharacteristic = featureCharacteristic; + return this; + } + + public FeatureFVO addFeatureCharacteristicItem(CharacteristicFVO featureCharacteristicItem) { + if (this.featureCharacteristic == null) { + this.featureCharacteristic = new ArrayList<>(); + } + this.featureCharacteristic.add(featureCharacteristicItem); + return this; + } + + /** + * This is a list of Characteristics for a particular feature. + * @return featureCharacteristic + */ + @Valid + @Schema(name = "featureCharacteristic", description = "This is a list of Characteristics for a particular feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("featureCharacteristic") + public List getFeatureCharacteristic() { + return featureCharacteristic; + } + + public void setFeatureCharacteristic(List featureCharacteristic) { + this.featureCharacteristic = featureCharacteristic; + } + + public FeatureFVO policyConstraint(List policyConstraint) { + this.policyConstraint = policyConstraint; + return this; + } + + public FeatureFVO addPolicyConstraintItem(PolicyRefFVO policyConstraintItem) { + if (this.policyConstraint == null) { + this.policyConstraint = new ArrayList<>(); + } + this.policyConstraint.add(policyConstraintItem); + return this; + } + + /** + * Reference to manage a list of feature specification policy constraints + * @return policyConstraint + */ + @Valid + @Schema(name = "policyConstraint", description = "Reference to manage a list of feature specification policy constraints", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("policyConstraint") + public List getPolicyConstraint() { + return policyConstraint; + } + + public void setPolicyConstraint(List policyConstraint) { + this.policyConstraint = policyConstraint; + } + + public FeatureFVO isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * True if this feature is enabled. Default is true. + * @return isEnabled + */ + + @Schema(name = "isEnabled", description = "True if this feature is enabled. Default is true.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("isEnabled") + public Boolean getIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + } + + public FeatureFVO name(String name) { + this.name = name; + return this; + } + + /** + * This is the name for the feature. + * @return name + */ + + @Schema(name = "name", description = "This is the name for the feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeatureFVO featureFVO = (FeatureFVO) o; + return Objects.equals(this.atType, featureFVO.atType) && + Objects.equals(this.atBaseType, featureFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, featureFVO.atSchemaLocation) && + Objects.equals(this.isBundle, featureFVO.isBundle) && + Objects.equals(this.featureRelationship, featureFVO.featureRelationship) && + Objects.equals(this.featureCharacteristic, featureFVO.featureCharacteristic) && + Objects.equals(this.policyConstraint, featureFVO.policyConstraint) && + Objects.equals(this.isEnabled, featureFVO.isEnabled) && + Objects.equals(this.name, featureFVO.name); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeatureFVO {\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(" isBundle: ").append(toIndentedString(isBundle)).append("\n"); + sb.append(" featureRelationship: ").append(toIndentedString(featureRelationship)).append("\n"); + sb.append(" featureCharacteristic: ").append(toIndentedString(featureCharacteristic)).append("\n"); + sb.append(" policyConstraint: ").append(toIndentedString(policyConstraint)).append("\n"); + sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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/FeatureMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java new file mode 100644 index 0000000..0c68d65 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java @@ -0,0 +1,349 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicMVO; +import org.openapitools.model.FeatureRelationshipMVO; +import org.openapitools.model.PolicyRefMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FeatureMVO + */ + + +@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 FeatureMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private Boolean isBundle; + + @Valid + private List featureRelationship = new ArrayList<>(); + + @Valid + private List featureCharacteristic = new ArrayList<>(); + + @Valid + private List policyConstraint = new ArrayList<>(); + + private Boolean isEnabled; + + private String id; + + private String name; + + public FeatureMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FeatureMVO(String atType, String name) { + this.atType = atType; + this.name = name; + } + + public FeatureMVO 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 FeatureMVO 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 FeatureMVO 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 FeatureMVO isBundle(Boolean isBundle) { + this.isBundle = isBundle; + return this; + } + + /** + * True if this is a feature group. Default is false. + * @return isBundle + */ + + @Schema(name = "isBundle", description = "True if this is a feature group. Default is false.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("isBundle") + public Boolean getIsBundle() { + return isBundle; + } + + public void setIsBundle(Boolean isBundle) { + this.isBundle = isBundle; + } + + public FeatureMVO featureRelationship(List featureRelationship) { + this.featureRelationship = featureRelationship; + return this; + } + + public FeatureMVO addFeatureRelationshipItem(FeatureRelationshipMVO featureRelationshipItem) { + if (this.featureRelationship == null) { + this.featureRelationship = new ArrayList<>(); + } + this.featureRelationship.add(featureRelationshipItem); + return this; + } + + /** + * Collection of feature relationships + * @return featureRelationship + */ + @Valid + @Schema(name = "featureRelationship", description = "Collection of feature relationships", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("featureRelationship") + public List getFeatureRelationship() { + return featureRelationship; + } + + public void setFeatureRelationship(List featureRelationship) { + this.featureRelationship = featureRelationship; + } + + public FeatureMVO featureCharacteristic(List featureCharacteristic) { + this.featureCharacteristic = featureCharacteristic; + return this; + } + + public FeatureMVO addFeatureCharacteristicItem(CharacteristicMVO featureCharacteristicItem) { + if (this.featureCharacteristic == null) { + this.featureCharacteristic = new ArrayList<>(); + } + this.featureCharacteristic.add(featureCharacteristicItem); + return this; + } + + /** + * This is a list of Characteristics for a particular feature. + * @return featureCharacteristic + */ + @Valid + @Schema(name = "featureCharacteristic", description = "This is a list of Characteristics for a particular feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("featureCharacteristic") + public List getFeatureCharacteristic() { + return featureCharacteristic; + } + + public void setFeatureCharacteristic(List featureCharacteristic) { + this.featureCharacteristic = featureCharacteristic; + } + + public FeatureMVO policyConstraint(List policyConstraint) { + this.policyConstraint = policyConstraint; + return this; + } + + public FeatureMVO addPolicyConstraintItem(PolicyRefMVO policyConstraintItem) { + if (this.policyConstraint == null) { + this.policyConstraint = new ArrayList<>(); + } + this.policyConstraint.add(policyConstraintItem); + return this; + } + + /** + * Reference to manage a list of feature specification policy constraints + * @return policyConstraint + */ + @Valid + @Schema(name = "policyConstraint", description = "Reference to manage a list of feature specification policy constraints", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("policyConstraint") + public List getPolicyConstraint() { + return policyConstraint; + } + + public void setPolicyConstraint(List policyConstraint) { + this.policyConstraint = policyConstraint; + } + + public FeatureMVO isEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + return this; + } + + /** + * True if this feature is enabled. Default is true. + * @return isEnabled + */ + + @Schema(name = "isEnabled", description = "True if this feature is enabled. Default is true.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("isEnabled") + public Boolean getIsEnabled() { + return isEnabled; + } + + public void setIsEnabled(Boolean isEnabled) { + this.isEnabled = isEnabled; + } + + public FeatureMVO 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 FeatureMVO name(String name) { + this.name = name; + return this; + } + + /** + * This is the name for the feature. + * @return name + */ + @NotNull + @Schema(name = "name", description = "This is the name for the feature.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeatureMVO featureMVO = (FeatureMVO) o; + return Objects.equals(this.atType, featureMVO.atType) && + Objects.equals(this.atBaseType, featureMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, featureMVO.atSchemaLocation) && + Objects.equals(this.isBundle, featureMVO.isBundle) && + Objects.equals(this.featureRelationship, featureMVO.featureRelationship) && + Objects.equals(this.featureCharacteristic, featureMVO.featureCharacteristic) && + Objects.equals(this.policyConstraint, featureMVO.policyConstraint) && + Objects.equals(this.isEnabled, featureMVO.isEnabled) && + Objects.equals(this.id, featureMVO.id) && + Objects.equals(this.name, featureMVO.name); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeatureMVO {\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(" isBundle: ").append(toIndentedString(isBundle)).append("\n"); + sb.append(" featureRelationship: ").append(toIndentedString(featureRelationship)).append("\n"); + sb.append(" featureCharacteristic: ").append(toIndentedString(featureCharacteristic)).append("\n"); + sb.append(" policyConstraint: ").append(toIndentedString(policyConstraint)).append("\n"); + sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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/FeatureRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java new file mode 100644 index 0000000..2d81a15 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java @@ -0,0 +1,332 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FeatureRelationship + */ + + +@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 FeatureRelationship { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + /** + * This is the type of the feature relationship. + */ + public enum RelationshipTypeEnum { + EXCLUDED("excluded"), + + INCLUDES("includes"), + + MAY_INCLUDE("may include"), + + REQUIRES("requires"); + + private String value; + + RelationshipTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RelationshipTypeEnum fromValue(String value) { + for (RelationshipTypeEnum b : RelationshipTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private RelationshipTypeEnum relationshipType; + + private TimePeriod validFor; + + public FeatureRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FeatureRelationship(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public FeatureRelationship 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 FeatureRelationship 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 FeatureRelationship 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 FeatureRelationship href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public FeatureRelationship id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FeatureRelationship name(String name) { + this.name = name; + return this; + } + + /** + * This is the name of the target feature. + * @return name + */ + + @Schema(name = "name", description = "This is the name of the target feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public FeatureRelationship 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; + } + + public FeatureRelationship relationshipType(RelationshipTypeEnum relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * This is the type of the feature relationship. + * @return relationshipType + */ + + @Schema(name = "relationshipType", description = "This is the type of the feature relationship.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relationshipType") + public RelationshipTypeEnum getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(RelationshipTypeEnum relationshipType) { + this.relationshipType = relationshipType; + } + + public FeatureRelationship validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeatureRelationship featureRelationship = (FeatureRelationship) o; + return Objects.equals(this.atType, featureRelationship.atType) && + Objects.equals(this.atBaseType, featureRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, featureRelationship.atSchemaLocation) && + Objects.equals(this.href, featureRelationship.href) && + Objects.equals(this.id, featureRelationship.id) && + Objects.equals(this.name, featureRelationship.name) && + Objects.equals(this.atReferredType, featureRelationship.atReferredType) && + Objects.equals(this.relationshipType, featureRelationship.relationshipType) && + Objects.equals(this.validFor, featureRelationship.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, relationshipType, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeatureRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/FeatureRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java new file mode 100644 index 0000000..77cf41d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java @@ -0,0 +1,334 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FeatureRelationshipFVO + */ + + +@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 FeatureRelationshipFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + /** + * This is the type of the feature relationship. + */ + public enum RelationshipTypeEnum { + EXCLUDED("excluded"), + + INCLUDES("includes"), + + MAY_INCLUDE("may include"), + + REQUIRES("requires"); + + private String value; + + RelationshipTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RelationshipTypeEnum fromValue(String value) { + for (RelationshipTypeEnum b : RelationshipTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private RelationshipTypeEnum relationshipType; + + private TimePeriod validFor; + + public FeatureRelationshipFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FeatureRelationshipFVO(String atType, String id, RelationshipTypeEnum relationshipType) { + this.atType = atType; + this.id = id; + this.relationshipType = relationshipType; + } + + public FeatureRelationshipFVO 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 FeatureRelationshipFVO 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 FeatureRelationshipFVO 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 FeatureRelationshipFVO 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 FeatureRelationshipFVO 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 FeatureRelationshipFVO name(String name) { + this.name = name; + return this; + } + + /** + * This is the name of the target feature. + * @return name + */ + + @Schema(name = "name", description = "This is the name of the target feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public FeatureRelationshipFVO 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; + } + + public FeatureRelationshipFVO relationshipType(RelationshipTypeEnum relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * This is the type of the feature relationship. + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", description = "This is the type of the feature relationship.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("relationshipType") + public RelationshipTypeEnum getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(RelationshipTypeEnum relationshipType) { + this.relationshipType = relationshipType; + } + + public FeatureRelationshipFVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeatureRelationshipFVO featureRelationshipFVO = (FeatureRelationshipFVO) o; + return Objects.equals(this.atType, featureRelationshipFVO.atType) && + Objects.equals(this.atBaseType, featureRelationshipFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, featureRelationshipFVO.atSchemaLocation) && + Objects.equals(this.href, featureRelationshipFVO.href) && + Objects.equals(this.id, featureRelationshipFVO.id) && + Objects.equals(this.name, featureRelationshipFVO.name) && + Objects.equals(this.atReferredType, featureRelationshipFVO.atReferredType) && + Objects.equals(this.relationshipType, featureRelationshipFVO.relationshipType) && + Objects.equals(this.validFor, featureRelationshipFVO.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, relationshipType, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeatureRelationshipFVO {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/FeatureRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java new file mode 100644 index 0000000..feb42c9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java @@ -0,0 +1,334 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FeatureRelationshipMVO + */ + + +@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 FeatureRelationshipMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + /** + * This is the type of the feature relationship. + */ + public enum RelationshipTypeEnum { + EXCLUDED("excluded"), + + INCLUDES("includes"), + + MAY_INCLUDE("may include"), + + REQUIRES("requires"); + + private String value; + + RelationshipTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RelationshipTypeEnum fromValue(String value) { + for (RelationshipTypeEnum b : RelationshipTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private RelationshipTypeEnum relationshipType; + + private TimePeriod validFor; + + public FeatureRelationshipMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FeatureRelationshipMVO(String atType, String id, RelationshipTypeEnum relationshipType) { + this.atType = atType; + this.id = id; + this.relationshipType = relationshipType; + } + + public FeatureRelationshipMVO 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 FeatureRelationshipMVO 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 FeatureRelationshipMVO 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 FeatureRelationshipMVO 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 FeatureRelationshipMVO id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FeatureRelationshipMVO name(String name) { + this.name = name; + return this; + } + + /** + * This is the name of the target feature. + * @return name + */ + + @Schema(name = "name", description = "This is the name of the target feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public FeatureRelationshipMVO 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; + } + + public FeatureRelationshipMVO relationshipType(RelationshipTypeEnum relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * This is the type of the feature relationship. + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", description = "This is the type of the feature relationship.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("relationshipType") + public RelationshipTypeEnum getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(RelationshipTypeEnum relationshipType) { + this.relationshipType = relationshipType; + } + + public FeatureRelationshipMVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeatureRelationshipMVO featureRelationshipMVO = (FeatureRelationshipMVO) o; + return Objects.equals(this.atType, featureRelationshipMVO.atType) && + Objects.equals(this.atBaseType, featureRelationshipMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, featureRelationshipMVO.atSchemaLocation) && + Objects.equals(this.href, featureRelationshipMVO.href) && + Objects.equals(this.id, featureRelationshipMVO.id) && + Objects.equals(this.name, featureRelationshipMVO.name) && + Objects.equals(this.atReferredType, featureRelationshipMVO.atReferredType) && + Objects.equals(this.relationshipType, featureRelationshipMVO.relationshipType) && + Objects.equals(this.validFor, featureRelationshipMVO.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, relationshipType, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FeatureRelationshipMVO {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java new file mode 100644 index 0000000..00d4651 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -0,0 +1,279 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.net.URI; +import org.openapitools.model.CompressionType; +import org.openapitools.model.Duration; +import org.openapitools.model.PackingType; +import org.openapitools.model.ProtocolTransferData; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FileTransferData + */ + + +@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 FileTransferData extends ProtocolTransferData { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private URI fileLocation; + + private String fileFormat; + + private CompressionType compressionType; + + private Duration retentionPeriod; + + private PackingType packingType; + + public FileTransferData() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FileTransferData(String atType) { + super(); + this.atType = atType; + } + + public FileTransferData 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 FileTransferData 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 FileTransferData 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 FileTransferData fileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + return this; + } + + /** + * Get fileLocation + * @return fileLocation + */ + @Valid + @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileLocation") + public URI getFileLocation() { + return fileLocation; + } + + public void setFileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + } + + public FileTransferData fileFormat(String fileFormat) { + this.fileFormat = fileFormat; + return this; + } + + /** + * Get fileFormat + * @return fileFormat + */ + + @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileFormat") + public String getFileFormat() { + return fileFormat; + } + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + + public FileTransferData compressionType(CompressionType compressionType) { + this.compressionType = compressionType; + return this; + } + + /** + * Get compressionType + * @return compressionType + */ + @Valid + @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionType") + public CompressionType getCompressionType() { + return compressionType; + } + + public void setCompressionType(CompressionType compressionType) { + this.compressionType = compressionType; + } + + public FileTransferData retentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + + /** + * Get retentionPeriod + * @return retentionPeriod + */ + @Valid + @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("retentionPeriod") + public Duration getRetentionPeriod() { + return retentionPeriod; + } + + public void setRetentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + } + + public FileTransferData packingType(PackingType packingType) { + this.packingType = packingType; + return this; + } + + /** + * Get packingType + * @return packingType + */ + @Valid + @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingType") + public PackingType getPackingType() { + return packingType; + } + + public void setPackingType(PackingType packingType) { + this.packingType = packingType; + } + + + public FileTransferData transportProtocol(String transportProtocol) { + super.transportProtocol(transportProtocol); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileTransferData fileTransferData = (FileTransferData) o; + return Objects.equals(this.atType, fileTransferData.atType) && + Objects.equals(this.atBaseType, fileTransferData.atBaseType) && + Objects.equals(this.atSchemaLocation, fileTransferData.atSchemaLocation) && + Objects.equals(this.fileLocation, fileTransferData.fileLocation) && + Objects.equals(this.fileFormat, fileTransferData.fileFormat) && + Objects.equals(this.compressionType, fileTransferData.compressionType) && + Objects.equals(this.retentionPeriod, fileTransferData.retentionPeriod) && + Objects.equals(this.packingType, fileTransferData.packingType) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileTransferData {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\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(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); + sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); + sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); + sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).append("\n"); + sb.append(" packingType: ").append(toIndentedString(packingType)).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/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java new file mode 100644 index 0000000..3319fa2 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -0,0 +1,280 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.net.URI; +import org.openapitools.model.CompressionType; +import org.openapitools.model.Duration; +import org.openapitools.model.PackingType; +import org.openapitools.model.ProtocolTransferDataFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FileTransferDataFVO + */ + + +@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 FileTransferDataFVO extends ProtocolTransferDataFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private URI fileLocation; + + private String fileFormat; + + private CompressionType compressionType; + + private Duration retentionPeriod; + + private PackingType packingType; + + public FileTransferDataFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FileTransferDataFVO(String atType) { + super(); + this.atType = atType; + } + + public FileTransferDataFVO 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 FileTransferDataFVO 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 FileTransferDataFVO 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 FileTransferDataFVO fileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + return this; + } + + /** + * Get fileLocation + * @return fileLocation + */ + @Valid + @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileLocation") + public URI getFileLocation() { + return fileLocation; + } + + public void setFileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + } + + public FileTransferDataFVO fileFormat(String fileFormat) { + this.fileFormat = fileFormat; + return this; + } + + /** + * Get fileFormat + * @return fileFormat + */ + + @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileFormat") + public String getFileFormat() { + return fileFormat; + } + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + + public FileTransferDataFVO compressionType(CompressionType compressionType) { + this.compressionType = compressionType; + return this; + } + + /** + * Get compressionType + * @return compressionType + */ + @Valid + @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionType") + public CompressionType getCompressionType() { + return compressionType; + } + + public void setCompressionType(CompressionType compressionType) { + this.compressionType = compressionType; + } + + public FileTransferDataFVO retentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + + /** + * Get retentionPeriod + * @return retentionPeriod + */ + @Valid + @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("retentionPeriod") + public Duration getRetentionPeriod() { + return retentionPeriod; + } + + public void setRetentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + } + + public FileTransferDataFVO packingType(PackingType packingType) { + this.packingType = packingType; + return this; + } + + /** + * Get packingType + * @return packingType + */ + @Valid + @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingType") + public PackingType getPackingType() { + return packingType; + } + + public void setPackingType(PackingType packingType) { + this.packingType = packingType; + } + + + public FileTransferDataFVO transportProtocol(String transportProtocol) { + super.transportProtocol(transportProtocol); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileTransferDataFVO fileTransferDataFVO = (FileTransferDataFVO) o; + return Objects.equals(this.atType, fileTransferDataFVO.atType) && + Objects.equals(this.atBaseType, fileTransferDataFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, fileTransferDataFVO.atSchemaLocation) && + Objects.equals(this.fileLocation, fileTransferDataFVO.fileLocation) && + Objects.equals(this.fileFormat, fileTransferDataFVO.fileFormat) && + Objects.equals(this.compressionType, fileTransferDataFVO.compressionType) && + Objects.equals(this.retentionPeriod, fileTransferDataFVO.retentionPeriod) && + Objects.equals(this.packingType, fileTransferDataFVO.packingType) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileTransferDataFVO {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\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(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); + sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); + sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); + sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).append("\n"); + sb.append(" packingType: ").append(toIndentedString(packingType)).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/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java new file mode 100644 index 0000000..c62b3a7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -0,0 +1,280 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.net.URI; +import org.openapitools.model.CompressionType; +import org.openapitools.model.Duration; +import org.openapitools.model.PackingType; +import org.openapitools.model.ProtocolTransferData; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * FileTransferDataMVO + */ + + +@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 FileTransferDataMVO extends ProtocolTransferData { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private URI fileLocation; + + private String fileFormat; + + private CompressionType compressionType; + + private Duration retentionPeriod; + + private PackingType packingType; + + public FileTransferDataMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public FileTransferDataMVO(String atType) { + super(); + this.atType = atType; + } + + public FileTransferDataMVO 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 FileTransferDataMVO 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 FileTransferDataMVO 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 FileTransferDataMVO fileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + return this; + } + + /** + * Get fileLocation + * @return fileLocation + */ + @Valid + @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileLocation") + public URI getFileLocation() { + return fileLocation; + } + + public void setFileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + } + + public FileTransferDataMVO fileFormat(String fileFormat) { + this.fileFormat = fileFormat; + return this; + } + + /** + * Get fileFormat + * @return fileFormat + */ + + @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileFormat") + public String getFileFormat() { + return fileFormat; + } + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + + public FileTransferDataMVO compressionType(CompressionType compressionType) { + this.compressionType = compressionType; + return this; + } + + /** + * Get compressionType + * @return compressionType + */ + @Valid + @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionType") + public CompressionType getCompressionType() { + return compressionType; + } + + public void setCompressionType(CompressionType compressionType) { + this.compressionType = compressionType; + } + + public FileTransferDataMVO retentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + return this; + } + + /** + * Get retentionPeriod + * @return retentionPeriod + */ + @Valid + @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("retentionPeriod") + public Duration getRetentionPeriod() { + return retentionPeriod; + } + + public void setRetentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + } + + public FileTransferDataMVO packingType(PackingType packingType) { + this.packingType = packingType; + return this; + } + + /** + * Get packingType + * @return packingType + */ + @Valid + @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingType") + public PackingType getPackingType() { + return packingType; + } + + public void setPackingType(PackingType packingType) { + this.packingType = packingType; + } + + + public FileTransferDataMVO transportProtocol(String transportProtocol) { + super.transportProtocol(transportProtocol); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileTransferDataMVO fileTransferDataMVO = (FileTransferDataMVO) o; + return Objects.equals(this.atType, fileTransferDataMVO.atType) && + Objects.equals(this.atBaseType, fileTransferDataMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, fileTransferDataMVO.atSchemaLocation) && + Objects.equals(this.fileLocation, fileTransferDataMVO.fileLocation) && + Objects.equals(this.fileFormat, fileTransferDataMVO.fileFormat) && + Objects.equals(this.compressionType, fileTransferDataMVO.compressionType) && + Objects.equals(this.retentionPeriod, fileTransferDataMVO.retentionPeriod) && + Objects.equals(this.packingType, fileTransferDataMVO.packingType) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileTransferDataMVO {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\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(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); + sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); + sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); + sb.append(" retentionPeriod: ").append(toIndentedString(retentionPeriod)).append("\n"); + sb.append(" packingType: ").append(toIndentedString(packingType)).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/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java new file mode 100644 index 0000000..71cb9e3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java @@ -0,0 +1,70 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Sampling rate of the collection or production of performance indicators. + */ + +@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 Granularity { + + G_1MN("g_1mn"), + + G_5MN("g_5mn"), + + G_15MN("g_15mn"), + + G_30MN("g_30mn"), + + G_1H("g_1h"), + + G_24H("g_24h"), + + G_1M("g_1m"), + + G_1Y("g_1y"), + + NA("na"); + + private String value; + + Granularity(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static Granularity fromValue(String value) { + for (Granularity b : Granularity.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/Hub.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java new file mode 100644 index 0000000..851d16d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java @@ -0,0 +1,240 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Sets the communication endpoint address the service instance must use to deliver notification information + */ + +@Schema(name = "Hub", description = "Sets the communication endpoint address the service instance must use to deliver notification information") +@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 Hub { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String callback; + + private String query; + + public Hub() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Hub(String atType, String callback) { + this.atType = atType; + this.callback = callback; + } + + public Hub 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 Hub 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 Hub 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 Hub 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 Hub id(String id) { + this.id = id; + return this; + } + + /** + * Id of the listener + * @return id + */ + + @Schema(name = "id", description = "Id of the listener", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Hub callback(String callback) { + this.callback = callback; + return this; + } + + /** + * The callback being registered. + * @return callback + */ + @NotNull + @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("callback") + public String getCallback() { + return callback; + } + + public void setCallback(String callback) { + this.callback = callback; + } + + public Hub query(String query) { + this.query = query; + return this; + } + + /** + * additional data to be passed + * @return query + */ + + @Schema(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("query") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Hub hub = (Hub) o; + return Objects.equals(this.atType, hub.atType) && + Objects.equals(this.atBaseType, hub.atBaseType) && + Objects.equals(this.atSchemaLocation, hub.atSchemaLocation) && + Objects.equals(this.href, hub.href) && + Objects.equals(this.id, hub.id) && + Objects.equals(this.callback, hub.callback) && + Objects.equals(this.query, hub.query); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, callback, query); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Hub {\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(" 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(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/HubFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java new file mode 100644 index 0000000..30402d5 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java @@ -0,0 +1,194 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Sets the communication endpoint address the service instance must use to deliver notification information + */ + +@Schema(name = "Hub_FVO", description = "Sets the communication endpoint address the service instance must use to deliver notification information") +@JsonTypeName("Hub_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 HubFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String callback; + + private String query; + + public HubFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public HubFVO(String atType, String callback) { + this.atType = atType; + this.callback = callback; + } + + public HubFVO 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 HubFVO 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 HubFVO 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 HubFVO callback(String callback) { + this.callback = callback; + return this; + } + + /** + * The callback being registered. + * @return callback + */ + @NotNull + @Schema(name = "callback", description = "The callback being registered.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("callback") + public String getCallback() { + return callback; + } + + public void setCallback(String callback) { + this.callback = callback; + } + + public HubFVO query(String query) { + this.query = query; + return this; + } + + /** + * additional data to be passed + * @return query + */ + + @Schema(name = "query", description = "additional data to be passed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("query") + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HubFVO hubFVO = (HubFVO) o; + return Objects.equals(this.atType, hubFVO.atType) && + Objects.equals(this.atBaseType, hubFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, hubFVO.atSchemaLocation) && + Objects.equals(this.callback, hubFVO.callback) && + Objects.equals(this.query, hubFVO.query); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, callback, query); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HubFVO {\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(" 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(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/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java new file mode 100644 index 0000000..0be7882 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java @@ -0,0 +1,60 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * This is enumeration for Indicator Type + */ + +@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 IndicatorType { + + STRING("string"), + + INT("int"), + + FLOAT("float"), + + DOUBLE("double"); + + private String value; + + IndicatorType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static IndicatorType fromValue(String value) { + for (IndicatorType b : IndicatorType.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/IntentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java new file mode 100644 index 0000000..02783d2 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Intent reference, for when Intent is used by other entities + */ + +@Schema(name = "IntentRef", description = "Intent reference, for when Intent is used by other entities") + +@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 IntentRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public IntentRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public IntentRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public IntentRef 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 IntentRef 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 IntentRef 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 IntentRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public IntentRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public IntentRef 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 IntentRef 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; + } + IntentRef intentRef = (IntentRef) o; + return Objects.equals(this.atType, intentRef.atType) && + Objects.equals(this.atBaseType, intentRef.atBaseType) && + Objects.equals(this.atSchemaLocation, intentRef.atSchemaLocation) && + Objects.equals(this.href, intentRef.href) && + Objects.equals(this.id, intentRef.id) && + Objects.equals(this.name, intentRef.name) && + Objects.equals(this.atReferredType, intentRef.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 IntentRef {\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/IntentRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java new file mode 100644 index 0000000..548cc29 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Intent reference, for when Intent is used by other entities + */ + +@Schema(name = "IntentRef_FVO", description = "Intent reference, for when Intent is used by other entities") + +@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 IntentRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public IntentRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public IntentRefFVO(String atType) { + this.atType = atType; + } + + public IntentRefFVO 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 IntentRefFVO 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 IntentRefFVO 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 IntentRefFVO 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 IntentRefFVO 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 IntentRefFVO 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 IntentRefFVO 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; + } + IntentRefFVO intentRefFVO = (IntentRefFVO) o; + return Objects.equals(this.atType, intentRefFVO.atType) && + Objects.equals(this.atBaseType, intentRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, intentRefFVO.atSchemaLocation) && + Objects.equals(this.href, intentRefFVO.href) && + Objects.equals(this.id, intentRefFVO.id) && + Objects.equals(this.name, intentRefFVO.name) && + Objects.equals(this.atReferredType, intentRefFVO.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 IntentRefFVO {\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/IntentRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java new file mode 100644 index 0000000..65de62d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Intent reference, for when Intent is used by other entities + */ + +@Schema(name = "IntentRef_MVO", description = "Intent reference, for when Intent is used by other entities") + +@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 IntentRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public IntentRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public IntentRefMVO(String atType) { + this.atType = atType; + } + + public IntentRefMVO 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 IntentRefMVO 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 IntentRefMVO 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 IntentRefMVO 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 IntentRefMVO 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 IntentRefMVO 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 IntentRefMVO 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; + } + IntentRefMVO intentRefMVO = (IntentRefMVO) o; + return Objects.equals(this.atType, intentRefMVO.atType) && + Objects.equals(this.atBaseType, intentRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, intentRefMVO.atSchemaLocation) && + Objects.equals(this.href, intentRefMVO.href) && + Objects.equals(this.id, intentRefMVO.id) && + Objects.equals(this.name, intentRefMVO.name) && + Objects.equals(this.atReferredType, intentRefMVO.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 IntentRefMVO {\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/JsonPatch.java b/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java new file mode 100644 index 0000000..487c238 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java @@ -0,0 +1,226 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Arrays; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A JSONPatch document as defined by RFC 6902 + */ + +@Schema(name = "JsonPatch", description = "A JSONPatch document as defined by RFC 6902") +@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 JsonPatch { + + /** + * The operation to be performed + */ + public enum OpEnum { + ADD("add"), + + REMOVE("remove"), + + REPLACE("replace"), + + MOVE("move"), + + COPY("copy"), + + TEST("test"); + + private String value; + + OpEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OpEnum fromValue(String value) { + for (OpEnum b : OpEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + private OpEnum op; + + private String path; + + private JsonNullable value = JsonNullable.undefined(); + + private String from; + + public JsonPatch() { + super(); + } + + /** + * Constructor with only required parameters + */ + public JsonPatch(OpEnum op, String path) { + this.op = op; + this.path = path; + } + + public JsonPatch op(OpEnum op) { + this.op = op; + return this; + } + + /** + * The operation to be performed + * @return op + */ + @NotNull + @Schema(name = "op", description = "The operation to be performed", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("op") + public OpEnum getOp() { + return op; + } + + public void setOp(OpEnum op) { + this.op = op; + } + + public JsonPatch path(String path) { + this.path = path; + return this; + } + + /** + * A JSON-Pointer + * @return path + */ + @NotNull + @Schema(name = "path", description = "A JSON-Pointer", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("path") + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public JsonPatch value(Object value) { + this.value = JsonNullable.of(value); + return this; + } + + /** + * The value to be used within the operations. + * @return value + */ + + @Schema(name = "value", description = "The value to be used within the operations.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("value") + public JsonNullable getValue() { + return value; + } + + public void setValue(JsonNullable value) { + this.value = value; + } + + public JsonPatch from(String from) { + this.from = from; + return this; + } + + /** + * A string containing a JSON Pointer value. + * @return from + */ + + @Schema(name = "from", description = "A string containing a JSON Pointer value.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("from") + public String getFrom() { + return from; + } + + public void setFrom(String from) { + this.from = from; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + JsonPatch jsonPatch = (JsonPatch) o; + return Objects.equals(this.op, jsonPatch.op) && + Objects.equals(this.path, jsonPatch.path) && + equalsNullable(this.value, jsonPatch.value) && + Objects.equals(this.from, jsonPatch.from); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(op, path, hashCodeNullable(value), from); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class JsonPatch {\n"); + sb.append(" op: ").append(toIndentedString(op)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).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/LogicalResource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java new file mode 100644 index 0000000..f75a20c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java @@ -0,0 +1,311 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRef; +import org.openapitools.model.Characteristic; +import org.openapitools.model.ExternalIdentifier; +import org.openapitools.model.Feature; +import org.openapitools.model.IntentRef; +import org.openapitools.model.Note; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.openapitools.model.RelatedPlaceRef; +import org.openapitools.model.RelatedResourceOrderItem; +import org.openapitools.model.Resource; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationship; +import org.openapitools.model.ResourceSpecificationRef; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * LogicalResource + */ + +@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 = DataAccessEndpoint.class, name = "DataAccessEndpoint") +}) + +@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 LogicalResource extends Resource { + + private String value; + + public LogicalResource() { + super(); + } + + /** + * Constructor with only required parameters + */ + public LogicalResource(String atType) { + super(atType); + } + + public LogicalResource value(String value) { + this.value = value; + return this; + } + + /** + * the value of the logical resource. E.g '0746712345' for MSISDN's + * @return value + */ + + @Schema(name = "value", description = "the value of the logical resource. E.g '0746712345' for MSISDN's", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + public LogicalResource atType(String atType) { + super.atType(atType); + return this; + } + + public LogicalResource atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public LogicalResource atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public LogicalResource href(String href) { + super.href(href); + return this; + } + + public LogicalResource id(String id) { + super.id(id); + return this; + } + + public LogicalResource category(String category) { + super.category(category); + return this; + } + + public LogicalResource description(String description) { + super.description(description); + return this; + } + + public LogicalResource name(String name) { + super.name(name); + return this; + } + + public LogicalResource endOperatingDate(OffsetDateTime endOperatingDate) { + super.endOperatingDate(endOperatingDate); + return this; + } + + public LogicalResource administrativeState(ResourceAdministrativeStateType administrativeState) { + super.administrativeState(administrativeState); + return this; + } + + public LogicalResource operationalState(ResourceOperationalStateType operationalState) { + super.operationalState(operationalState); + return this; + } + + public LogicalResource resourceStatus(ResourceStatusType resourceStatus) { + super.resourceStatus(resourceStatus); + return this; + } + + public LogicalResource usageState(ResourceUsageStateType usageState) { + super.usageState(usageState); + return this; + } + + public LogicalResource validFor(TimePeriod validFor) { + super.validFor(validFor); + return this; + } + + public LogicalResource note(List note) { + super.note(note); + return this; + } + + public LogicalResource addNoteItem(Note noteItem) { + super.addNoteItem(noteItem); + return this; + } + + public LogicalResource resourceOrderItem(List resourceOrderItem) { + super.resourceOrderItem(resourceOrderItem); + return this; + } + + public LogicalResource addResourceOrderItemItem(RelatedResourceOrderItem resourceOrderItemItem) { + super.addResourceOrderItemItem(resourceOrderItemItem); + return this; + } + + public LogicalResource place(List place) { + super.place(place); + return this; + } + + public LogicalResource addPlaceItem(RelatedPlaceRef placeItem) { + super.addPlaceItem(placeItem); + return this; + } + + public LogicalResource relatedParty(List relatedParty) { + super.relatedParty(relatedParty); + return this; + } + + public LogicalResource addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + super.addRelatedPartyItem(relatedPartyItem); + return this; + } + + public LogicalResource resourceRelationship(List resourceRelationship) { + super.resourceRelationship(resourceRelationship); + return this; + } + + public LogicalResource addResourceRelationshipItem(ResourceRelationship resourceRelationshipItem) { + super.addResourceRelationshipItem(resourceRelationshipItem); + return this; + } + + public LogicalResource resourceCharacteristic(List resourceCharacteristic) { + super.resourceCharacteristic(resourceCharacteristic); + return this; + } + + public LogicalResource addResourceCharacteristicItem(Characteristic resourceCharacteristicItem) { + super.addResourceCharacteristicItem(resourceCharacteristicItem); + return this; + } + + public LogicalResource attachment(List attachment) { + super.attachment(attachment); + return this; + } + + public LogicalResource addAttachmentItem(AttachmentRef attachmentItem) { + super.addAttachmentItem(attachmentItem); + return this; + } + + public LogicalResource resourceSpecification(ResourceSpecificationRef resourceSpecification) { + super.resourceSpecification(resourceSpecification); + return this; + } + + public LogicalResource startOperatingDate(OffsetDateTime startOperatingDate) { + super.startOperatingDate(startOperatingDate); + return this; + } + + public LogicalResource resourceVersion(String resourceVersion) { + super.resourceVersion(resourceVersion); + return this; + } + + public LogicalResource activationFeature(List activationFeature) { + super.activationFeature(activationFeature); + return this; + } + + public LogicalResource addActivationFeatureItem(Feature activationFeatureItem) { + super.addActivationFeatureItem(activationFeatureItem); + return this; + } + + public LogicalResource intent(IntentRef intent) { + super.intent(intent); + return this; + } + + public LogicalResource externalIdentifier(List externalIdentifier) { + super.externalIdentifier(externalIdentifier); + return this; + } + + public LogicalResource 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; + } + LogicalResource logicalResource = (LogicalResource) o; + return Objects.equals(this.value, logicalResource.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 LogicalResource {\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/LogicalResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java new file mode 100644 index 0000000..2e894d8 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java @@ -0,0 +1,312 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefFVO; +import org.openapitools.model.CharacteristicFVO; +import org.openapitools.model.ExternalIdentifierFVO; +import org.openapitools.model.FeatureFVO; +import org.openapitools.model.IntentRefFVO; +import org.openapitools.model.NoteFVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.openapitools.model.RelatedPlaceRefFVO; +import org.openapitools.model.RelatedResourceOrderItemFVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceFVO; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationshipFVO; +import org.openapitools.model.ResourceSpecificationRefFVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * LogicalResourceFVO + */ + +@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 = DataAccessEndpointFVO.class, name = "DataAccessEndpoint") +}) + +@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 LogicalResourceFVO extends ResourceFVO { + + private String value; + + public LogicalResourceFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public LogicalResourceFVO(String atType) { + super(atType); + } + + public LogicalResourceFVO value(String value) { + this.value = value; + return this; + } + + /** + * the value of the logical resource. E.g '0746712345' for MSISDN's + * @return value + */ + + @Schema(name = "value", description = "the value of the logical resource. E.g '0746712345' for MSISDN's", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + public LogicalResourceFVO atType(String atType) { + super.atType(atType); + return this; + } + + public LogicalResourceFVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public LogicalResourceFVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public LogicalResourceFVO href(String href) { + super.href(href); + return this; + } + + public LogicalResourceFVO id(String id) { + super.id(id); + return this; + } + + public LogicalResourceFVO category(String category) { + super.category(category); + return this; + } + + public LogicalResourceFVO description(String description) { + super.description(description); + return this; + } + + public LogicalResourceFVO name(String name) { + super.name(name); + return this; + } + + public LogicalResourceFVO endOperatingDate(OffsetDateTime endOperatingDate) { + super.endOperatingDate(endOperatingDate); + return this; + } + + public LogicalResourceFVO administrativeState(ResourceAdministrativeStateType administrativeState) { + super.administrativeState(administrativeState); + return this; + } + + public LogicalResourceFVO operationalState(ResourceOperationalStateType operationalState) { + super.operationalState(operationalState); + return this; + } + + public LogicalResourceFVO resourceStatus(ResourceStatusType resourceStatus) { + super.resourceStatus(resourceStatus); + return this; + } + + public LogicalResourceFVO usageState(ResourceUsageStateType usageState) { + super.usageState(usageState); + return this; + } + + public LogicalResourceFVO validFor(TimePeriod validFor) { + super.validFor(validFor); + return this; + } + + public LogicalResourceFVO note(List note) { + super.note(note); + return this; + } + + public LogicalResourceFVO addNoteItem(NoteFVO noteItem) { + super.addNoteItem(noteItem); + return this; + } + + public LogicalResourceFVO resourceOrderItem(List resourceOrderItem) { + super.resourceOrderItem(resourceOrderItem); + return this; + } + + public LogicalResourceFVO addResourceOrderItemItem(RelatedResourceOrderItemFVO resourceOrderItemItem) { + super.addResourceOrderItemItem(resourceOrderItemItem); + return this; + } + + public LogicalResourceFVO place(List place) { + super.place(place); + return this; + } + + public LogicalResourceFVO addPlaceItem(RelatedPlaceRefFVO placeItem) { + super.addPlaceItem(placeItem); + return this; + } + + public LogicalResourceFVO relatedParty(List relatedParty) { + super.relatedParty(relatedParty); + return this; + } + + public LogicalResourceFVO addRelatedPartyItem(RelatedPartyRefOrPartyRoleRefFVO relatedPartyItem) { + super.addRelatedPartyItem(relatedPartyItem); + return this; + } + + public LogicalResourceFVO resourceRelationship(List resourceRelationship) { + super.resourceRelationship(resourceRelationship); + return this; + } + + public LogicalResourceFVO addResourceRelationshipItem(ResourceRelationshipFVO resourceRelationshipItem) { + super.addResourceRelationshipItem(resourceRelationshipItem); + return this; + } + + public LogicalResourceFVO resourceCharacteristic(List resourceCharacteristic) { + super.resourceCharacteristic(resourceCharacteristic); + return this; + } + + public LogicalResourceFVO addResourceCharacteristicItem(CharacteristicFVO resourceCharacteristicItem) { + super.addResourceCharacteristicItem(resourceCharacteristicItem); + return this; + } + + public LogicalResourceFVO attachment(List attachment) { + super.attachment(attachment); + return this; + } + + public LogicalResourceFVO addAttachmentItem(AttachmentRefFVO attachmentItem) { + super.addAttachmentItem(attachmentItem); + return this; + } + + public LogicalResourceFVO resourceSpecification(ResourceSpecificationRefFVO resourceSpecification) { + super.resourceSpecification(resourceSpecification); + return this; + } + + public LogicalResourceFVO startOperatingDate(OffsetDateTime startOperatingDate) { + super.startOperatingDate(startOperatingDate); + return this; + } + + public LogicalResourceFVO resourceVersion(String resourceVersion) { + super.resourceVersion(resourceVersion); + return this; + } + + public LogicalResourceFVO activationFeature(List activationFeature) { + super.activationFeature(activationFeature); + return this; + } + + public LogicalResourceFVO addActivationFeatureItem(FeatureFVO activationFeatureItem) { + super.addActivationFeatureItem(activationFeatureItem); + return this; + } + + public LogicalResourceFVO intent(IntentRefFVO intent) { + super.intent(intent); + return this; + } + + public LogicalResourceFVO externalIdentifier(List externalIdentifier) { + super.externalIdentifier(externalIdentifier); + return this; + } + + public LogicalResourceFVO 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; + } + LogicalResourceFVO logicalResourceFVO = (LogicalResourceFVO) o; + return Objects.equals(this.value, logicalResourceFVO.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 LogicalResourceFVO {\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/LogicalResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java new file mode 100644 index 0000000..54e889f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java @@ -0,0 +1,312 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefMVO; +import org.openapitools.model.CharacteristicMVO; +import org.openapitools.model.ExternalIdentifierMVO; +import org.openapitools.model.FeatureMVO; +import org.openapitools.model.IntentRefMVO; +import org.openapitools.model.NoteMVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.openapitools.model.RelatedPlaceRefMVO; +import org.openapitools.model.RelatedResourceOrderItemMVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceMVO; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationshipMVO; +import org.openapitools.model.ResourceSpecificationRefMVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * LogicalResourceMVO + */ + +@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 = DataAccessEndpointMVO.class, name = "DataAccessEndpoint") +}) + +@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 LogicalResourceMVO extends ResourceMVO { + + private String value; + + public LogicalResourceMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public LogicalResourceMVO(String atType) { + super(atType); + } + + public LogicalResourceMVO value(String value) { + this.value = value; + return this; + } + + /** + * the value of the logical resource. E.g '0746712345' for MSISDN's + * @return value + */ + + @Schema(name = "value", description = "the value of the logical resource. E.g '0746712345' for MSISDN's", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("value") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + public LogicalResourceMVO atType(String atType) { + super.atType(atType); + return this; + } + + public LogicalResourceMVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public LogicalResourceMVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public LogicalResourceMVO href(String href) { + super.href(href); + return this; + } + + public LogicalResourceMVO id(String id) { + super.id(id); + return this; + } + + public LogicalResourceMVO category(String category) { + super.category(category); + return this; + } + + public LogicalResourceMVO description(String description) { + super.description(description); + return this; + } + + public LogicalResourceMVO name(String name) { + super.name(name); + return this; + } + + public LogicalResourceMVO endOperatingDate(OffsetDateTime endOperatingDate) { + super.endOperatingDate(endOperatingDate); + return this; + } + + public LogicalResourceMVO administrativeState(ResourceAdministrativeStateType administrativeState) { + super.administrativeState(administrativeState); + return this; + } + + public LogicalResourceMVO operationalState(ResourceOperationalStateType operationalState) { + super.operationalState(operationalState); + return this; + } + + public LogicalResourceMVO resourceStatus(ResourceStatusType resourceStatus) { + super.resourceStatus(resourceStatus); + return this; + } + + public LogicalResourceMVO usageState(ResourceUsageStateType usageState) { + super.usageState(usageState); + return this; + } + + public LogicalResourceMVO validFor(TimePeriod validFor) { + super.validFor(validFor); + return this; + } + + public LogicalResourceMVO note(List note) { + super.note(note); + return this; + } + + public LogicalResourceMVO addNoteItem(NoteMVO noteItem) { + super.addNoteItem(noteItem); + return this; + } + + public LogicalResourceMVO resourceOrderItem(List resourceOrderItem) { + super.resourceOrderItem(resourceOrderItem); + return this; + } + + public LogicalResourceMVO addResourceOrderItemItem(RelatedResourceOrderItemMVO resourceOrderItemItem) { + super.addResourceOrderItemItem(resourceOrderItemItem); + return this; + } + + public LogicalResourceMVO place(List place) { + super.place(place); + return this; + } + + public LogicalResourceMVO addPlaceItem(RelatedPlaceRefMVO placeItem) { + super.addPlaceItem(placeItem); + return this; + } + + public LogicalResourceMVO relatedParty(List relatedParty) { + super.relatedParty(relatedParty); + return this; + } + + public LogicalResourceMVO addRelatedPartyItem(RelatedPartyRefOrPartyRoleRefMVO relatedPartyItem) { + super.addRelatedPartyItem(relatedPartyItem); + return this; + } + + public LogicalResourceMVO resourceRelationship(List resourceRelationship) { + super.resourceRelationship(resourceRelationship); + return this; + } + + public LogicalResourceMVO addResourceRelationshipItem(ResourceRelationshipMVO resourceRelationshipItem) { + super.addResourceRelationshipItem(resourceRelationshipItem); + return this; + } + + public LogicalResourceMVO resourceCharacteristic(List resourceCharacteristic) { + super.resourceCharacteristic(resourceCharacteristic); + return this; + } + + public LogicalResourceMVO addResourceCharacteristicItem(CharacteristicMVO resourceCharacteristicItem) { + super.addResourceCharacteristicItem(resourceCharacteristicItem); + return this; + } + + public LogicalResourceMVO attachment(List attachment) { + super.attachment(attachment); + return this; + } + + public LogicalResourceMVO addAttachmentItem(AttachmentRefMVO attachmentItem) { + super.addAttachmentItem(attachmentItem); + return this; + } + + public LogicalResourceMVO resourceSpecification(ResourceSpecificationRefMVO resourceSpecification) { + super.resourceSpecification(resourceSpecification); + return this; + } + + public LogicalResourceMVO startOperatingDate(OffsetDateTime startOperatingDate) { + super.startOperatingDate(startOperatingDate); + return this; + } + + public LogicalResourceMVO resourceVersion(String resourceVersion) { + super.resourceVersion(resourceVersion); + return this; + } + + public LogicalResourceMVO activationFeature(List activationFeature) { + super.activationFeature(activationFeature); + return this; + } + + public LogicalResourceMVO addActivationFeatureItem(FeatureMVO activationFeatureItem) { + super.addActivationFeatureItem(activationFeatureItem); + return this; + } + + public LogicalResourceMVO intent(IntentRefMVO intent) { + super.intent(intent); + return this; + } + + public LogicalResourceMVO externalIdentifier(List externalIdentifier) { + super.externalIdentifier(externalIdentifier); + return this; + } + + public LogicalResourceMVO 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; + } + LogicalResourceMVO logicalResourceMVO = (LogicalResourceMVO) o; + return Objects.equals(this.value, logicalResourceMVO.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 LogicalResourceMVO {\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/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java new file mode 100644 index 0000000..a01a50a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -0,0 +1,462 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpoint; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferData; +import org.openapitools.model.ScheduleDefinition; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ManagementJob + */ + +@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 = ManagementJob.class, name = "ManagementJob"), + @JsonSubTypes.Type(value = MeasurementCollectionJob.class, name = "MeasurementCollectionJob"), + @JsonSubTypes.Type(value = MeasurementJob.class, name = "MeasurementJob") +}) + +@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 ManagementJob { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private AdministrativeState adminState; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private ExecutionStateType executionState; + + @Valid + private List fileTransferData = new ArrayList<>(); + + @Valid + private List dataAccessEndpoint = new ArrayList<>(); + + private String jobId; + + private Integer jobPriority = 5; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + @Valid + private List scheduleDefinition = new ArrayList<>(); + + public ManagementJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ManagementJob(String atType) { + this.atType = atType; + } + + public ManagementJob 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 ManagementJob 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 ManagementJob 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 ManagementJob 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 ManagementJob 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 ManagementJob adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public ManagementJob creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public ManagementJob executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public ManagementJob fileTransferData(List fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public ManagementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @Valid @Size(min = 0) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileTransferData") + public List getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJob dataAccessEndpoint(List dataAccessEndpoint) { + this.dataAccessEndpoint = dataAccessEndpoint; + return this; + } + + public ManagementJob addDataAccessEndpointItem(DataAccessEndpoint dataAccessEndpointItem) { + if (this.dataAccessEndpoint == null) { + this.dataAccessEndpoint = new ArrayList<>(); + } + this.dataAccessEndpoint.add(dataAccessEndpointItem); + return this; + } + + /** + * Get dataAccessEndpoint + * @return dataAccessEndpoint + */ + @Valid @Size(min = 0) + @Schema(name = "dataAccessEndpoint", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dataAccessEndpoint") + public List getDataAccessEndpoint() { + return dataAccessEndpoint; + } + + public void setDataAccessEndpoint(List dataAccessEndpoint) { + this.dataAccessEndpoint = dataAccessEndpoint; + } + + public ManagementJob jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ManagementJob jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * minimum: 1 + * maximum: 10 + * @return jobPriority + */ + @Min(1) @Max(10) + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public ManagementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public ManagementJob scheduleDefinition(List scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + public ManagementJob addScheduleDefinitionItem(ScheduleDefinition scheduleDefinitionItem) { + if (this.scheduleDefinition == null) { + this.scheduleDefinition = new ArrayList<>(); + } + this.scheduleDefinition.add(scheduleDefinitionItem); + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid @Size(max = 1) + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public List getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(List scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ManagementJob managementJob = (ManagementJob) o; + return Objects.equals(this.atType, managementJob.atType) && + Objects.equals(this.atBaseType, managementJob.atBaseType) && + Objects.equals(this.atSchemaLocation, managementJob.atSchemaLocation) && + Objects.equals(this.href, managementJob.href) && + Objects.equals(this.id, managementJob.id) && + Objects.equals(this.adminState, managementJob.adminState) && + Objects.equals(this.creationTime, managementJob.creationTime) && + Objects.equals(this.executionState, managementJob.executionState) && + Objects.equals(this.fileTransferData, managementJob.fileTransferData) && + Objects.equals(this.dataAccessEndpoint, managementJob.dataAccessEndpoint) && + Objects.equals(this.jobId, managementJob.jobId) && + Objects.equals(this.jobPriority, managementJob.jobPriority) && + Objects.equals(this.lastModifiedTime, managementJob.lastModifiedTime) && + Objects.equals(this.scheduleDefinition, managementJob.scheduleDefinition); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, adminState, creationTime, executionState, fileTransferData, dataAccessEndpoint, jobId, jobPriority, lastModifiedTime, scheduleDefinition); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ManagementJob {\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(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" dataAccessEndpoint: ").append(toIndentedString(dataAccessEndpoint)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java new file mode 100644 index 0000000..12a67ca --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -0,0 +1,463 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpointFVO; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferDataFVO; +import org.openapitools.model.ScheduleDefinitionFVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ManagementJobFVO + */ + +@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 = ManagementJobFVO.class, name = "ManagementJob"), + @JsonSubTypes.Type(value = MeasurementCollectionJobFVO.class, name = "MeasurementCollectionJob"), + @JsonSubTypes.Type(value = MeasurementJobFVO.class, name = "MeasurementJob") +}) + +@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 ManagementJobFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private AdministrativeState adminState; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime creationTime; + + private ExecutionStateType executionState; + + @Valid + private List fileTransferData = new ArrayList<>(); + + @Valid + private List dataAccessEndpoint = new ArrayList<>(); + + private String jobId; + + private Integer jobPriority = 5; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime lastModifiedTime; + + @Valid + private List scheduleDefinition = new ArrayList<>(); + + public ManagementJobFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ManagementJobFVO(String atType) { + this.atType = atType; + } + + public ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO adminState(AdministrativeState adminState) { + this.adminState = adminState; + return this; + } + + /** + * Get adminState + * @return adminState + */ + @Valid + @Schema(name = "adminState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("adminState") + public AdministrativeState getAdminState() { + return adminState; + } + + public void setAdminState(AdministrativeState adminState) { + this.adminState = adminState; + } + + public ManagementJobFVO creationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * The measurement job creation time. + * @return creationTime + */ + @Valid + @Schema(name = "creationTime", description = "The measurement job creation time.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("creationTime") + public OffsetDateTime getCreationTime() { + return creationTime; + } + + public void setCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + } + + public ManagementJobFVO executionState(ExecutionStateType executionState) { + this.executionState = executionState; + return this; + } + + /** + * Get executionState + * @return executionState + */ + @Valid + @Schema(name = "executionState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("executionState") + public ExecutionStateType getExecutionState() { + return executionState; + } + + public void setExecutionState(ExecutionStateType executionState) { + this.executionState = executionState; + } + + public ManagementJobFVO fileTransferData(List fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public ManagementJobFVO addFileTransferDataItem(FileTransferDataFVO fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @Valid @Size(min = 0) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileTransferData") + public List getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJobFVO dataAccessEndpoint(List dataAccessEndpoint) { + this.dataAccessEndpoint = dataAccessEndpoint; + return this; + } + + public ManagementJobFVO addDataAccessEndpointItem(DataAccessEndpointFVO dataAccessEndpointItem) { + if (this.dataAccessEndpoint == null) { + this.dataAccessEndpoint = new ArrayList<>(); + } + this.dataAccessEndpoint.add(dataAccessEndpointItem); + return this; + } + + /** + * Get dataAccessEndpoint + * @return dataAccessEndpoint + */ + @Valid @Size(min = 0) + @Schema(name = "dataAccessEndpoint", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dataAccessEndpoint") + public List getDataAccessEndpoint() { + return dataAccessEndpoint; + } + + public void setDataAccessEndpoint(List dataAccessEndpoint) { + this.dataAccessEndpoint = dataAccessEndpoint; + } + + public ManagementJobFVO jobId(String jobId) { + this.jobId = jobId; + return this; + } + + /** + * The ID of the management job. + * @return jobId + */ + + @Schema(name = "jobId", description = "The ID of the management job.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobId") + public String getJobId() { + return jobId; + } + + public void setJobId(String jobId) { + this.jobId = jobId; + } + + public ManagementJobFVO jobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + return this; + } + + /** + * The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10. + * minimum: 1 + * maximum: 10 + * @return jobPriority + */ + @Min(1) @Max(10) + @Schema(name = "jobPriority", description = "The priority of the management job. The way the management application will use the JobPriority to schedule job execution is application specific and outside the scope. Integer, limited to a range of 1 to 10.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobPriority") + public Integer getJobPriority() { + return jobPriority; + } + + public void setJobPriority(Integer jobPriority) { + this.jobPriority = jobPriority; + } + + public ManagementJobFVO lastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + return this; + } + + /** + * The last time that a measurement job was modified. + * @return lastModifiedTime + */ + @Valid + @Schema(name = "lastModifiedTime", description = "The last time that a measurement job was modified.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("lastModifiedTime") + public OffsetDateTime getLastModifiedTime() { + return lastModifiedTime; + } + + public void setLastModifiedTime(OffsetDateTime lastModifiedTime) { + this.lastModifiedTime = lastModifiedTime; + } + + public ManagementJobFVO scheduleDefinition(List scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + public ManagementJobFVO addScheduleDefinitionItem(ScheduleDefinitionFVO scheduleDefinitionItem) { + if (this.scheduleDefinition == null) { + this.scheduleDefinition = new ArrayList<>(); + } + this.scheduleDefinition.add(scheduleDefinitionItem); + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid @Size(max = 1) + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public List getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(List scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ManagementJobFVO managementJobFVO = (ManagementJobFVO) o; + return Objects.equals(this.atType, managementJobFVO.atType) && + Objects.equals(this.atBaseType, managementJobFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, managementJobFVO.atSchemaLocation) && + Objects.equals(this.href, managementJobFVO.href) && + Objects.equals(this.id, managementJobFVO.id) && + Objects.equals(this.adminState, managementJobFVO.adminState) && + Objects.equals(this.creationTime, managementJobFVO.creationTime) && + Objects.equals(this.executionState, managementJobFVO.executionState) && + Objects.equals(this.fileTransferData, managementJobFVO.fileTransferData) && + Objects.equals(this.dataAccessEndpoint, managementJobFVO.dataAccessEndpoint) && + Objects.equals(this.jobId, managementJobFVO.jobId) && + Objects.equals(this.jobPriority, managementJobFVO.jobPriority) && + Objects.equals(this.lastModifiedTime, managementJobFVO.lastModifiedTime) && + Objects.equals(this.scheduleDefinition, managementJobFVO.scheduleDefinition); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, adminState, creationTime, executionState, fileTransferData, dataAccessEndpoint, jobId, jobPriority, lastModifiedTime, scheduleDefinition); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ManagementJobFVO {\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(" adminState: ").append(toIndentedString(adminState)).append("\n"); + sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); + sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); + sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" dataAccessEndpoint: ").append(toIndentedString(dataAccessEndpoint)).append("\n"); + sb.append(" jobId: ").append(toIndentedString(jobId)).append("\n"); + sb.append(" jobPriority: ").append(toIndentedString(jobPriority)).append("\n"); + sb.append(" lastModifiedTime: ").append(toIndentedString(lastModifiedTime)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java new file mode 100644 index 0000000..14d515d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -0,0 +1,310 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataAccessEndpointMVO; +import org.openapitools.model.FileTransferDataMVO; +import org.openapitools.model.ScheduleDefinitionMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ManagementJobMVO + */ + +@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 = ManagementJobMVO.class, name = "ManagementJob"), + @JsonSubTypes.Type(value = MeasurementCollectionJobMVO.class, name = "MeasurementCollectionJob"), + @JsonSubTypes.Type(value = MeasurementJobMVO.class, name = "MeasurementJob") +}) + +@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 ManagementJobMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + @Valid + private List fileTransferData = new ArrayList<>(); + + @Valid + private List dataAccessEndpoint = new ArrayList<>(); + + @Valid + private List scheduleDefinition = new ArrayList<>(); + + public ManagementJobMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ManagementJobMVO(String atType) { + this.atType = atType; + } + + public ManagementJobMVO 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 ManagementJobMVO 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 ManagementJobMVO 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 ManagementJobMVO 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 ManagementJobMVO 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 ManagementJobMVO fileTransferData(List fileTransferData) { + this.fileTransferData = fileTransferData; + return this; + } + + public ManagementJobMVO addFileTransferDataItem(FileTransferDataMVO fileTransferDataItem) { + if (this.fileTransferData == null) { + this.fileTransferData = new ArrayList<>(); + } + this.fileTransferData.add(fileTransferDataItem); + return this; + } + + /** + * Get fileTransferData + * @return fileTransferData + */ + @Valid @Size(min = 0) + @Schema(name = "fileTransferData", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileTransferData") + public List getFileTransferData() { + return fileTransferData; + } + + public void setFileTransferData(List fileTransferData) { + this.fileTransferData = fileTransferData; + } + + public ManagementJobMVO dataAccessEndpoint(List dataAccessEndpoint) { + this.dataAccessEndpoint = dataAccessEndpoint; + return this; + } + + public ManagementJobMVO addDataAccessEndpointItem(DataAccessEndpointMVO dataAccessEndpointItem) { + if (this.dataAccessEndpoint == null) { + this.dataAccessEndpoint = new ArrayList<>(); + } + this.dataAccessEndpoint.add(dataAccessEndpointItem); + return this; + } + + /** + * Get dataAccessEndpoint + * @return dataAccessEndpoint + */ + @Valid @Size(min = 0) + @Schema(name = "dataAccessEndpoint", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dataAccessEndpoint") + public List getDataAccessEndpoint() { + return dataAccessEndpoint; + } + + public void setDataAccessEndpoint(List dataAccessEndpoint) { + this.dataAccessEndpoint = dataAccessEndpoint; + } + + public ManagementJobMVO scheduleDefinition(List scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + return this; + } + + public ManagementJobMVO addScheduleDefinitionItem(ScheduleDefinitionMVO scheduleDefinitionItem) { + if (this.scheduleDefinition == null) { + this.scheduleDefinition = new ArrayList<>(); + } + this.scheduleDefinition.add(scheduleDefinitionItem); + return this; + } + + /** + * Get scheduleDefinition + * @return scheduleDefinition + */ + @Valid @Size(max = 1) + @Schema(name = "scheduleDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinition") + public List getScheduleDefinition() { + return scheduleDefinition; + } + + public void setScheduleDefinition(List scheduleDefinition) { + this.scheduleDefinition = scheduleDefinition; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ManagementJobMVO managementJobMVO = (ManagementJobMVO) o; + return Objects.equals(this.atType, managementJobMVO.atType) && + Objects.equals(this.atBaseType, managementJobMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, managementJobMVO.atSchemaLocation) && + Objects.equals(this.href, managementJobMVO.href) && + Objects.equals(this.id, managementJobMVO.id) && + Objects.equals(this.fileTransferData, managementJobMVO.fileTransferData) && + Objects.equals(this.dataAccessEndpoint, managementJobMVO.dataAccessEndpoint) && + Objects.equals(this.scheduleDefinition, managementJobMVO.scheduleDefinition); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, fileTransferData, dataAccessEndpoint, scheduleDefinition); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ManagementJobMVO {\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(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); + sb.append(" dataAccessEndpoint: ").append(toIndentedString(dataAccessEndpoint)).append("\n"); + sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).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/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java new file mode 100644 index 0000000..136cf69 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -0,0 +1,357 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpoint; +import org.openapitools.model.DataFilterMap; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferData; +import org.openapitools.model.Granularity; +import org.openapitools.model.MeasurementJob; +import org.openapitools.model.MonitoredClassCriteria; +import org.openapitools.model.MonitoredInstancesCriteria; +import org.openapitools.model.PerformanceIndicatorGroupSpecification; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.openapitools.model.ReportingPeriod; +import org.openapitools.model.ScheduleDefinition; +import org.openapitools.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJob + */ + + +@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 MeasurementCollectionJob extends MeasurementJob implements PatchMeasurementCollectionJob200Response { + + private String outputFormat; + + private ReportingPeriod reportingPeriod; + + private DataFilterMap jobCollectionFilter; + + private DataFilterMap searchTaskFilter; + + private Boolean jobOnDemand = false; + + public MeasurementCollectionJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJob(String atType) { + super(atType); + } + + public MeasurementCollectionJob outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJob reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJob jobCollectionFilter(DataFilterMap jobCollectionFilter) { + this.jobCollectionFilter = jobCollectionFilter; + return this; + } + + /** + * Get jobCollectionFilter + * @return jobCollectionFilter + */ + @Valid + @Schema(name = "jobCollectionFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobCollectionFilter") + public DataFilterMap getJobCollectionFilter() { + return jobCollectionFilter; + } + + public void setJobCollectionFilter(DataFilterMap jobCollectionFilter) { + this.jobCollectionFilter = jobCollectionFilter; + } + + public MeasurementCollectionJob searchTaskFilter(DataFilterMap searchTaskFilter) { + this.searchTaskFilter = searchTaskFilter; + return this; + } + + /** + * Get searchTaskFilter + * @return searchTaskFilter + */ + @Valid + @Schema(name = "searchTaskFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("searchTaskFilter") + public DataFilterMap getSearchTaskFilter() { + return searchTaskFilter; + } + + public void setSearchTaskFilter(DataFilterMap searchTaskFilter) { + this.searchTaskFilter = searchTaskFilter; + } + + public MeasurementCollectionJob jobOnDemand(Boolean jobOnDemand) { + this.jobOnDemand = jobOnDemand; + return this; + } + + /** + * True if the job is a single job to be executed immediately in which case the reportingPeriod and scheduleDefinition would not be applicable, false otherwise + * @return jobOnDemand + */ + + @Schema(name = "jobOnDemand", description = "True if the job is a single job to be executed immediately in which case the reportingPeriod and scheduleDefinition would not be applicable, false otherwise", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobOnDemand") + public Boolean getJobOnDemand() { + return jobOnDemand; + } + + public void setJobOnDemand(Boolean jobOnDemand) { + this.jobOnDemand = jobOnDemand; + } + + + public MeasurementCollectionJob consumingApplicationId(String consumingApplicationId) { + super.consumingApplicationId(consumingApplicationId); + return this; + } + + public MeasurementCollectionJob producingApplicationId(String producingApplicationId) { + super.producingApplicationId(producingApplicationId); + return this; + } + + public MeasurementCollectionJob granularity(Granularity granularity) { + super.granularity(granularity); + return this; + } + + public MeasurementCollectionJob performanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + super.performanceIndicatorGroupSpecification(performanceIndicatorGroupSpecification); + return this; + } + + public MeasurementCollectionJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + super.addPerformanceIndicatorGroupSpecificationItem(performanceIndicatorGroupSpecificationItem); + return this; + } + + public MeasurementCollectionJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + super.performanceIndicatorSpecification(performanceIndicatorSpecification); + return this; + } + + public MeasurementCollectionJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + super.addPerformanceIndicatorSpecificationItem(performanceIndicatorSpecificationItem); + return this; + } + + public MeasurementCollectionJob trackingRecord(List trackingRecord) { + super.trackingRecord(trackingRecord); + return this; + } + + public MeasurementCollectionJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { + super.addTrackingRecordItem(trackingRecordItem); + return this; + } + + public MeasurementCollectionJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + super.monitoredInstancesCriteria(monitoredInstancesCriteria); + return this; + } + + public MeasurementCollectionJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + super.monitoredClassCriteria(monitoredClassCriteria); + return this; + } + + public MeasurementCollectionJob atType(String atType) { + super.atType(atType); + return this; + } + + public MeasurementCollectionJob atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public MeasurementCollectionJob atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public MeasurementCollectionJob href(String href) { + super.href(href); + return this; + } + + public MeasurementCollectionJob id(String id) { + super.id(id); + return this; + } + + public MeasurementCollectionJob adminState(AdministrativeState adminState) { + super.adminState(adminState); + return this; + } + + public MeasurementCollectionJob creationTime(OffsetDateTime creationTime) { + super.creationTime(creationTime); + return this; + } + + public MeasurementCollectionJob executionState(ExecutionStateType executionState) { + super.executionState(executionState); + return this; + } + + public MeasurementCollectionJob fileTransferData(List fileTransferData) { + super.fileTransferData(fileTransferData); + return this; + } + + public MeasurementCollectionJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + super.addFileTransferDataItem(fileTransferDataItem); + return this; + } + + public MeasurementCollectionJob dataAccessEndpoint(List dataAccessEndpoint) { + super.dataAccessEndpoint(dataAccessEndpoint); + return this; + } + + public MeasurementCollectionJob addDataAccessEndpointItem(DataAccessEndpoint dataAccessEndpointItem) { + super.addDataAccessEndpointItem(dataAccessEndpointItem); + return this; + } + + public MeasurementCollectionJob jobId(String jobId) { + super.jobId(jobId); + return this; + } + + public MeasurementCollectionJob jobPriority(Integer jobPriority) { + super.jobPriority(jobPriority); + return this; + } + + public MeasurementCollectionJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + super.lastModifiedTime(lastModifiedTime); + return this; + } + + public MeasurementCollectionJob scheduleDefinition(List scheduleDefinition) { + super.scheduleDefinition(scheduleDefinition); + return this; + } + + public MeasurementCollectionJob addScheduleDefinitionItem(ScheduleDefinition scheduleDefinitionItem) { + super.addScheduleDefinitionItem(scheduleDefinitionItem); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJob measurementCollectionJob = (MeasurementCollectionJob) o; + return Objects.equals(this.outputFormat, measurementCollectionJob.outputFormat) && + Objects.equals(this.reportingPeriod, measurementCollectionJob.reportingPeriod) && + Objects.equals(this.jobCollectionFilter, measurementCollectionJob.jobCollectionFilter) && + Objects.equals(this.searchTaskFilter, measurementCollectionJob.searchTaskFilter) && + Objects.equals(this.jobOnDemand, measurementCollectionJob.jobOnDemand) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(outputFormat, reportingPeriod, jobCollectionFilter, searchTaskFilter, jobOnDemand, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJob {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" jobCollectionFilter: ").append(toIndentedString(jobCollectionFilter)).append("\n"); + sb.append(" searchTaskFilter: ").append(toIndentedString(searchTaskFilter)).append("\n"); + sb.append(" jobOnDemand: ").append(toIndentedString(jobOnDemand)).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/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java new file mode 100644 index 0000000..af83635 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.MeasurementCollectionJobAttributeValueChangeEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobAttributeValueChangeEvent + */ + + +@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 MeasurementCollectionJobAttributeValueChangeEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private MeasurementCollectionJobAttributeValueChangeEventPayload event; + + public MeasurementCollectionJobAttributeValueChangeEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobAttributeValueChangeEvent(String atType) { + this.atType = atType; + } + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public MeasurementCollectionJobAttributeValueChangeEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public MeasurementCollectionJobAttributeValueChangeEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public MeasurementCollectionJobAttributeValueChangeEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public MeasurementCollectionJobAttributeValueChangeEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public MeasurementCollectionJobAttributeValueChangeEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public MeasurementCollectionJobAttributeValueChangeEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent 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 MeasurementCollectionJobAttributeValueChangeEvent event(MeasurementCollectionJobAttributeValueChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobAttributeValueChangeEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobAttributeValueChangeEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobAttributeValueChangeEvent measurementCollectionJobAttributeValueChangeEvent = (MeasurementCollectionJobAttributeValueChangeEvent) o; + return Objects.equals(this.atType, measurementCollectionJobAttributeValueChangeEvent.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobAttributeValueChangeEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobAttributeValueChangeEvent.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobAttributeValueChangeEvent.href) && + Objects.equals(this.id, measurementCollectionJobAttributeValueChangeEvent.id) && + Objects.equals(this.correlationId, measurementCollectionJobAttributeValueChangeEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobAttributeValueChangeEvent.domain) && + Objects.equals(this.title, measurementCollectionJobAttributeValueChangeEvent.title) && + Objects.equals(this.description, measurementCollectionJobAttributeValueChangeEvent.description) && + Objects.equals(this.priority, measurementCollectionJobAttributeValueChangeEvent.priority) && + Objects.equals(this.timeOccurred, measurementCollectionJobAttributeValueChangeEvent.timeOccurred) && + Objects.equals(this.source, measurementCollectionJobAttributeValueChangeEvent.source) && + Objects.equals(this.reportingSystem, measurementCollectionJobAttributeValueChangeEvent.reportingSystem) && + Objects.equals(this.relatedParty, measurementCollectionJobAttributeValueChangeEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, measurementCollectionJobAttributeValueChangeEvent.analyticCharacteristic) && + Objects.equals(this.eventId, measurementCollectionJobAttributeValueChangeEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobAttributeValueChangeEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobAttributeValueChangeEvent.eventType) && + Objects.equals(this.event, measurementCollectionJobAttributeValueChangeEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobAttributeValueChangeEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java new file mode 100644 index 0000000..ebbdc1f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobAttributeValueChangeEventPayload generic structure + */ + +@Schema(name = "MeasurementCollectionJobAttributeValueChangeEventPayload", description = "MeasurementCollectionJobAttributeValueChangeEventPayload generic structure") +@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 MeasurementCollectionJobAttributeValueChangeEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobAttributeValueChangeEventPayload measurementCollectionJobAttributeValueChangeEventPayload = (MeasurementCollectionJobAttributeValueChangeEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobAttributeValueChangeEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobAttributeValueChangeEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java new file mode 100644 index 0000000..1bc9511 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.MeasurementCollectionJobCreateEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobCreateEvent + */ + + +@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 MeasurementCollectionJobCreateEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private MeasurementCollectionJobCreateEventPayload event; + + public MeasurementCollectionJobCreateEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobCreateEvent(String atType) { + this.atType = atType; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public MeasurementCollectionJobCreateEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public MeasurementCollectionJobCreateEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public MeasurementCollectionJobCreateEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public MeasurementCollectionJobCreateEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public MeasurementCollectionJobCreateEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public MeasurementCollectionJobCreateEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent 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 MeasurementCollectionJobCreateEvent event(MeasurementCollectionJobCreateEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobCreateEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobCreateEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobCreateEvent measurementCollectionJobCreateEvent = (MeasurementCollectionJobCreateEvent) o; + return Objects.equals(this.atType, measurementCollectionJobCreateEvent.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobCreateEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobCreateEvent.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobCreateEvent.href) && + Objects.equals(this.id, measurementCollectionJobCreateEvent.id) && + Objects.equals(this.correlationId, measurementCollectionJobCreateEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobCreateEvent.domain) && + Objects.equals(this.title, measurementCollectionJobCreateEvent.title) && + Objects.equals(this.description, measurementCollectionJobCreateEvent.description) && + Objects.equals(this.priority, measurementCollectionJobCreateEvent.priority) && + Objects.equals(this.timeOccurred, measurementCollectionJobCreateEvent.timeOccurred) && + Objects.equals(this.source, measurementCollectionJobCreateEvent.source) && + Objects.equals(this.reportingSystem, measurementCollectionJobCreateEvent.reportingSystem) && + Objects.equals(this.relatedParty, measurementCollectionJobCreateEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, measurementCollectionJobCreateEvent.analyticCharacteristic) && + Objects.equals(this.eventId, measurementCollectionJobCreateEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobCreateEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobCreateEvent.eventType) && + Objects.equals(this.event, measurementCollectionJobCreateEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreateEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java new file mode 100644 index 0000000..3a138e0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.MeasurementCollectionJobRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobCreateEventPayload generic structure + */ + +@Schema(name = "MeasurementCollectionJobCreateEventPayload", description = "MeasurementCollectionJobCreateEventPayload generic structure") +@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 MeasurementCollectionJobCreateEventPayload { + + private MeasurementCollectionJobRef measurementCollectionJob; + + public MeasurementCollectionJobCreateEventPayload measurementCollectionJob(MeasurementCollectionJobRef measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJobRef getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJobRef measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobCreateEventPayload measurementCollectionJobCreateEventPayload = (MeasurementCollectionJobCreateEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobCreateEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobCreateEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java new file mode 100644 index 0000000..ad10457 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.MeasurementCollectionJobDeleteEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobDeleteEvent + */ + + +@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 MeasurementCollectionJobDeleteEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private MeasurementCollectionJobDeleteEventPayload event; + + public MeasurementCollectionJobDeleteEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobDeleteEvent(String atType) { + this.atType = atType; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public MeasurementCollectionJobDeleteEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public MeasurementCollectionJobDeleteEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public MeasurementCollectionJobDeleteEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public MeasurementCollectionJobDeleteEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public MeasurementCollectionJobDeleteEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public MeasurementCollectionJobDeleteEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent 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 MeasurementCollectionJobDeleteEvent event(MeasurementCollectionJobDeleteEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobDeleteEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobDeleteEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobDeleteEvent measurementCollectionJobDeleteEvent = (MeasurementCollectionJobDeleteEvent) o; + return Objects.equals(this.atType, measurementCollectionJobDeleteEvent.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobDeleteEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobDeleteEvent.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobDeleteEvent.href) && + Objects.equals(this.id, measurementCollectionJobDeleteEvent.id) && + Objects.equals(this.correlationId, measurementCollectionJobDeleteEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobDeleteEvent.domain) && + Objects.equals(this.title, measurementCollectionJobDeleteEvent.title) && + Objects.equals(this.description, measurementCollectionJobDeleteEvent.description) && + Objects.equals(this.priority, measurementCollectionJobDeleteEvent.priority) && + Objects.equals(this.timeOccurred, measurementCollectionJobDeleteEvent.timeOccurred) && + Objects.equals(this.source, measurementCollectionJobDeleteEvent.source) && + Objects.equals(this.reportingSystem, measurementCollectionJobDeleteEvent.reportingSystem) && + Objects.equals(this.relatedParty, measurementCollectionJobDeleteEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, measurementCollectionJobDeleteEvent.analyticCharacteristic) && + Objects.equals(this.eventId, measurementCollectionJobDeleteEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobDeleteEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobDeleteEvent.eventType) && + Objects.equals(this.event, measurementCollectionJobDeleteEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobDeleteEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java new file mode 100644 index 0000000..4d06f3c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobDeleteEventPayload generic structure + */ + +@Schema(name = "MeasurementCollectionJobDeleteEventPayload", description = "MeasurementCollectionJobDeleteEventPayload generic structure") +@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 MeasurementCollectionJobDeleteEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobDeleteEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobDeleteEventPayload measurementCollectionJobDeleteEventPayload = (MeasurementCollectionJobDeleteEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobDeleteEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobDeleteEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java new file mode 100644 index 0000000..833f3dc --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.MeasurementCollectionJobExecutionStateChangeEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobExecutionStateChangeEvent + */ + + +@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 MeasurementCollectionJobExecutionStateChangeEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private MeasurementCollectionJobExecutionStateChangeEventPayload event; + + public MeasurementCollectionJobExecutionStateChangeEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobExecutionStateChangeEvent(String atType) { + this.atType = atType; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public MeasurementCollectionJobExecutionStateChangeEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public MeasurementCollectionJobExecutionStateChangeEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public MeasurementCollectionJobExecutionStateChangeEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public MeasurementCollectionJobExecutionStateChangeEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public MeasurementCollectionJobExecutionStateChangeEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public MeasurementCollectionJobExecutionStateChangeEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent 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 MeasurementCollectionJobExecutionStateChangeEvent event(MeasurementCollectionJobExecutionStateChangeEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobExecutionStateChangeEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobExecutionStateChangeEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobExecutionStateChangeEvent measurementCollectionJobExecutionStateChangeEvent = (MeasurementCollectionJobExecutionStateChangeEvent) o; + return Objects.equals(this.atType, measurementCollectionJobExecutionStateChangeEvent.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobExecutionStateChangeEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobExecutionStateChangeEvent.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobExecutionStateChangeEvent.href) && + Objects.equals(this.id, measurementCollectionJobExecutionStateChangeEvent.id) && + Objects.equals(this.correlationId, measurementCollectionJobExecutionStateChangeEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobExecutionStateChangeEvent.domain) && + Objects.equals(this.title, measurementCollectionJobExecutionStateChangeEvent.title) && + Objects.equals(this.description, measurementCollectionJobExecutionStateChangeEvent.description) && + Objects.equals(this.priority, measurementCollectionJobExecutionStateChangeEvent.priority) && + Objects.equals(this.timeOccurred, measurementCollectionJobExecutionStateChangeEvent.timeOccurred) && + Objects.equals(this.source, measurementCollectionJobExecutionStateChangeEvent.source) && + Objects.equals(this.reportingSystem, measurementCollectionJobExecutionStateChangeEvent.reportingSystem) && + Objects.equals(this.relatedParty, measurementCollectionJobExecutionStateChangeEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, measurementCollectionJobExecutionStateChangeEvent.analyticCharacteristic) && + Objects.equals(this.eventId, measurementCollectionJobExecutionStateChangeEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobExecutionStateChangeEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobExecutionStateChangeEvent.eventType) && + Objects.equals(this.event, measurementCollectionJobExecutionStateChangeEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobExecutionStateChangeEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java new file mode 100644 index 0000000..937827c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobExecutionStateChangeEventPayload generic structure + */ + +@Schema(name = "MeasurementCollectionJobExecutionStateChangeEventPayload", description = "MeasurementCollectionJobExecutionStateChangeEventPayload generic structure") +@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 MeasurementCollectionJobExecutionStateChangeEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobExecutionStateChangeEventPayload measurementCollectionJobExecutionStateChangeEventPayload = (MeasurementCollectionJobExecutionStateChangeEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobExecutionStateChangeEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobExecutionStateChangeEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java new file mode 100644 index 0000000..bf2ade1 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -0,0 +1,357 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpointFVO; +import org.openapitools.model.DataFilterMapFVO; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferDataFVO; +import org.openapitools.model.Granularity; +import org.openapitools.model.MeasurementJobFVO; +import org.openapitools.model.MonitoredClassCriteriaFVO; +import org.openapitools.model.MonitoredInstancesCriteriaFVO; +import org.openapitools.model.PerformanceIndicatorGroupSpecificationFVO; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueFVO; +import org.openapitools.model.ReportingPeriod; +import org.openapitools.model.ScheduleDefinitionFVO; +import org.openapitools.model.TrackingRecordFVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobFVO + */ + + +@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 MeasurementCollectionJobFVO extends MeasurementJobFVO { + + private String outputFormat; + + private ReportingPeriod reportingPeriod; + + private DataFilterMapFVO jobCollectionFilter; + + private DataFilterMapFVO searchTaskFilter; + + private Boolean jobOnDemand = false; + + public MeasurementCollectionJobFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobFVO(String atType, String consumingApplicationId, String producingApplicationId, List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification) { + super(consumingApplicationId, producingApplicationId, performanceIndicatorSpecification, atType); + } + + public MeasurementCollectionJobFVO outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJobFVO reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJobFVO jobCollectionFilter(DataFilterMapFVO jobCollectionFilter) { + this.jobCollectionFilter = jobCollectionFilter; + return this; + } + + /** + * Get jobCollectionFilter + * @return jobCollectionFilter + */ + @Valid + @Schema(name = "jobCollectionFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobCollectionFilter") + public DataFilterMapFVO getJobCollectionFilter() { + return jobCollectionFilter; + } + + public void setJobCollectionFilter(DataFilterMapFVO jobCollectionFilter) { + this.jobCollectionFilter = jobCollectionFilter; + } + + public MeasurementCollectionJobFVO searchTaskFilter(DataFilterMapFVO searchTaskFilter) { + this.searchTaskFilter = searchTaskFilter; + return this; + } + + /** + * Get searchTaskFilter + * @return searchTaskFilter + */ + @Valid + @Schema(name = "searchTaskFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("searchTaskFilter") + public DataFilterMapFVO getSearchTaskFilter() { + return searchTaskFilter; + } + + public void setSearchTaskFilter(DataFilterMapFVO searchTaskFilter) { + this.searchTaskFilter = searchTaskFilter; + } + + public MeasurementCollectionJobFVO jobOnDemand(Boolean jobOnDemand) { + this.jobOnDemand = jobOnDemand; + return this; + } + + /** + * True if the job is a single job to be executed immediately in which case the reportingPeriod and scheduleDefinition would not be applicable, false otherwise + * @return jobOnDemand + */ + + @Schema(name = "jobOnDemand", description = "True if the job is a single job to be executed immediately in which case the reportingPeriod and scheduleDefinition would not be applicable, false otherwise", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobOnDemand") + public Boolean getJobOnDemand() { + return jobOnDemand; + } + + public void setJobOnDemand(Boolean jobOnDemand) { + this.jobOnDemand = jobOnDemand; + } + + + public MeasurementCollectionJobFVO consumingApplicationId(String consumingApplicationId) { + super.consumingApplicationId(consumingApplicationId); + return this; + } + + public MeasurementCollectionJobFVO producingApplicationId(String producingApplicationId) { + super.producingApplicationId(producingApplicationId); + return this; + } + + public MeasurementCollectionJobFVO granularity(Granularity granularity) { + super.granularity(granularity); + return this; + } + + public MeasurementCollectionJobFVO performanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + super.performanceIndicatorGroupSpecification(performanceIndicatorGroupSpecification); + return this; + } + + public MeasurementCollectionJobFVO addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecificationFVO performanceIndicatorGroupSpecificationItem) { + super.addPerformanceIndicatorGroupSpecificationItem(performanceIndicatorGroupSpecificationItem); + return this; + } + + public MeasurementCollectionJobFVO performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification) { + super.performanceIndicatorSpecification(performanceIndicatorSpecification); + return this; + } + + public MeasurementCollectionJobFVO addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValueFVO performanceIndicatorSpecificationItem) { + super.addPerformanceIndicatorSpecificationItem(performanceIndicatorSpecificationItem); + return this; + } + + public MeasurementCollectionJobFVO trackingRecord(List trackingRecord) { + super.trackingRecord(trackingRecord); + return this; + } + + public MeasurementCollectionJobFVO addTrackingRecordItem(TrackingRecordFVO trackingRecordItem) { + super.addTrackingRecordItem(trackingRecordItem); + return this; + } + + public MeasurementCollectionJobFVO monitoredInstancesCriteria(MonitoredInstancesCriteriaFVO monitoredInstancesCriteria) { + super.monitoredInstancesCriteria(monitoredInstancesCriteria); + return this; + } + + public MeasurementCollectionJobFVO monitoredClassCriteria(MonitoredClassCriteriaFVO monitoredClassCriteria) { + super.monitoredClassCriteria(monitoredClassCriteria); + return this; + } + + public MeasurementCollectionJobFVO atType(String atType) { + super.atType(atType); + return this; + } + + public MeasurementCollectionJobFVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public MeasurementCollectionJobFVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public MeasurementCollectionJobFVO href(String href) { + super.href(href); + return this; + } + + public MeasurementCollectionJobFVO id(String id) { + super.id(id); + return this; + } + + public MeasurementCollectionJobFVO adminState(AdministrativeState adminState) { + super.adminState(adminState); + return this; + } + + public MeasurementCollectionJobFVO creationTime(OffsetDateTime creationTime) { + super.creationTime(creationTime); + return this; + } + + public MeasurementCollectionJobFVO executionState(ExecutionStateType executionState) { + super.executionState(executionState); + return this; + } + + public MeasurementCollectionJobFVO fileTransferData(List fileTransferData) { + super.fileTransferData(fileTransferData); + return this; + } + + public MeasurementCollectionJobFVO addFileTransferDataItem(FileTransferDataFVO fileTransferDataItem) { + super.addFileTransferDataItem(fileTransferDataItem); + return this; + } + + public MeasurementCollectionJobFVO dataAccessEndpoint(List dataAccessEndpoint) { + super.dataAccessEndpoint(dataAccessEndpoint); + return this; + } + + public MeasurementCollectionJobFVO addDataAccessEndpointItem(DataAccessEndpointFVO dataAccessEndpointItem) { + super.addDataAccessEndpointItem(dataAccessEndpointItem); + return this; + } + + public MeasurementCollectionJobFVO jobId(String jobId) { + super.jobId(jobId); + return this; + } + + public MeasurementCollectionJobFVO jobPriority(Integer jobPriority) { + super.jobPriority(jobPriority); + return this; + } + + public MeasurementCollectionJobFVO lastModifiedTime(OffsetDateTime lastModifiedTime) { + super.lastModifiedTime(lastModifiedTime); + return this; + } + + public MeasurementCollectionJobFVO scheduleDefinition(List scheduleDefinition) { + super.scheduleDefinition(scheduleDefinition); + return this; + } + + public MeasurementCollectionJobFVO addScheduleDefinitionItem(ScheduleDefinitionFVO scheduleDefinitionItem) { + super.addScheduleDefinitionItem(scheduleDefinitionItem); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFVO measurementCollectionJobFVO = (MeasurementCollectionJobFVO) o; + return Objects.equals(this.outputFormat, measurementCollectionJobFVO.outputFormat) && + Objects.equals(this.reportingPeriod, measurementCollectionJobFVO.reportingPeriod) && + Objects.equals(this.jobCollectionFilter, measurementCollectionJobFVO.jobCollectionFilter) && + Objects.equals(this.searchTaskFilter, measurementCollectionJobFVO.searchTaskFilter) && + Objects.equals(this.jobOnDemand, measurementCollectionJobFVO.jobOnDemand) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(outputFormat, reportingPeriod, jobCollectionFilter, searchTaskFilter, jobOnDemand, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFVO {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" jobCollectionFilter: ").append(toIndentedString(jobCollectionFilter)).append("\n"); + sb.append(" searchTaskFilter: ").append(toIndentedString(searchTaskFilter)).append("\n"); + sb.append(" jobOnDemand: ").append(toIndentedString(jobOnDemand)).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/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java new file mode 100644 index 0000000..cad28bd --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.MeasurementCollectionJobFilesPreparationErrorEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobFilesPreparationErrorEvent + */ + + +@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 MeasurementCollectionJobFilesPreparationErrorEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private MeasurementCollectionJobFilesPreparationErrorEventPayload event; + + public MeasurementCollectionJobFilesPreparationErrorEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobFilesPreparationErrorEvent(String atType) { + this.atType = atType; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent 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 MeasurementCollectionJobFilesPreparationErrorEvent event(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobFilesPreparationErrorEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobFilesPreparationErrorEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesPreparationErrorEvent measurementCollectionJobFilesPreparationErrorEvent = (MeasurementCollectionJobFilesPreparationErrorEvent) o; + return Objects.equals(this.atType, measurementCollectionJobFilesPreparationErrorEvent.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobFilesPreparationErrorEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobFilesPreparationErrorEvent.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobFilesPreparationErrorEvent.href) && + Objects.equals(this.id, measurementCollectionJobFilesPreparationErrorEvent.id) && + Objects.equals(this.correlationId, measurementCollectionJobFilesPreparationErrorEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobFilesPreparationErrorEvent.domain) && + Objects.equals(this.title, measurementCollectionJobFilesPreparationErrorEvent.title) && + Objects.equals(this.description, measurementCollectionJobFilesPreparationErrorEvent.description) && + Objects.equals(this.priority, measurementCollectionJobFilesPreparationErrorEvent.priority) && + Objects.equals(this.timeOccurred, measurementCollectionJobFilesPreparationErrorEvent.timeOccurred) && + Objects.equals(this.source, measurementCollectionJobFilesPreparationErrorEvent.source) && + Objects.equals(this.reportingSystem, measurementCollectionJobFilesPreparationErrorEvent.reportingSystem) && + Objects.equals(this.relatedParty, measurementCollectionJobFilesPreparationErrorEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, measurementCollectionJobFilesPreparationErrorEvent.analyticCharacteristic) && + Objects.equals(this.eventId, measurementCollectionJobFilesPreparationErrorEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobFilesPreparationErrorEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobFilesPreparationErrorEvent.eventType) && + Objects.equals(this.event, measurementCollectionJobFilesPreparationErrorEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesPreparationErrorEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java new file mode 100644 index 0000000..3a81e53 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobFilesPreparationErrorEventPayload generic structure + */ + +@Schema(name = "MeasurementCollectionJobFilesPreparationErrorEventPayload", description = "MeasurementCollectionJobFilesPreparationErrorEventPayload generic structure") +@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 MeasurementCollectionJobFilesPreparationErrorEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesPreparationErrorEventPayload measurementCollectionJobFilesPreparationErrorEventPayload = (MeasurementCollectionJobFilesPreparationErrorEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesPreparationErrorEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesPreparationErrorEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java new file mode 100644 index 0000000..1ada956 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.MeasurementCollectionJobFilesReadyEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobFilesReadyEvent + */ + + +@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 MeasurementCollectionJobFilesReadyEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private MeasurementCollectionJobFilesReadyEventPayload event; + + public MeasurementCollectionJobFilesReadyEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobFilesReadyEvent(String atType) { + this.atType = atType; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public MeasurementCollectionJobFilesReadyEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public MeasurementCollectionJobFilesReadyEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public MeasurementCollectionJobFilesReadyEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public MeasurementCollectionJobFilesReadyEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public MeasurementCollectionJobFilesReadyEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public MeasurementCollectionJobFilesReadyEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent 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 MeasurementCollectionJobFilesReadyEvent event(MeasurementCollectionJobFilesReadyEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public MeasurementCollectionJobFilesReadyEventPayload getEvent() { + return event; + } + + public void setEvent(MeasurementCollectionJobFilesReadyEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesReadyEvent measurementCollectionJobFilesReadyEvent = (MeasurementCollectionJobFilesReadyEvent) o; + return Objects.equals(this.atType, measurementCollectionJobFilesReadyEvent.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobFilesReadyEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobFilesReadyEvent.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobFilesReadyEvent.href) && + Objects.equals(this.id, measurementCollectionJobFilesReadyEvent.id) && + Objects.equals(this.correlationId, measurementCollectionJobFilesReadyEvent.correlationId) && + Objects.equals(this.domain, measurementCollectionJobFilesReadyEvent.domain) && + Objects.equals(this.title, measurementCollectionJobFilesReadyEvent.title) && + Objects.equals(this.description, measurementCollectionJobFilesReadyEvent.description) && + Objects.equals(this.priority, measurementCollectionJobFilesReadyEvent.priority) && + Objects.equals(this.timeOccurred, measurementCollectionJobFilesReadyEvent.timeOccurred) && + Objects.equals(this.source, measurementCollectionJobFilesReadyEvent.source) && + Objects.equals(this.reportingSystem, measurementCollectionJobFilesReadyEvent.reportingSystem) && + Objects.equals(this.relatedParty, measurementCollectionJobFilesReadyEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, measurementCollectionJobFilesReadyEvent.analyticCharacteristic) && + Objects.equals(this.eventId, measurementCollectionJobFilesReadyEvent.eventId) && + Objects.equals(this.eventTime, measurementCollectionJobFilesReadyEvent.eventTime) && + Objects.equals(this.eventType, measurementCollectionJobFilesReadyEvent.eventType) && + Objects.equals(this.event, measurementCollectionJobFilesReadyEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesReadyEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java new file mode 100644 index 0000000..81bc386 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.MeasurementCollectionJob; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobFilesReadyEventPayload generic structure + */ + +@Schema(name = "MeasurementCollectionJobFilesReadyEventPayload", description = "MeasurementCollectionJobFilesReadyEventPayload generic structure") +@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 MeasurementCollectionJobFilesReadyEventPayload { + + private MeasurementCollectionJob measurementCollectionJob; + + public MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJob getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJob measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobFilesReadyEventPayload measurementCollectionJobFilesReadyEventPayload = (MeasurementCollectionJobFilesReadyEventPayload) o; + return Objects.equals(this.measurementCollectionJob, measurementCollectionJobFilesReadyEventPayload.measurementCollectionJob); + } + + @Override + public int hashCode() { + return Objects.hash(measurementCollectionJob); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobFilesReadyEventPayload {\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).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/MeasurementCollectionJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java new file mode 100644 index 0000000..4a86b07 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java @@ -0,0 +1,311 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataAccessEndpointMVO; +import org.openapitools.model.DataFilterMapMVO; +import org.openapitools.model.FileTransferDataMVO; +import org.openapitools.model.Granularity; +import org.openapitools.model.MeasurementJobMVO; +import org.openapitools.model.PerformanceIndicatorGroupSpecificationMVO; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueMVO; +import org.openapitools.model.ReportingPeriod; +import org.openapitools.model.ScheduleDefinitionMVO; +import org.openapitools.model.TrackingRecordMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementCollectionJobMVO + */ + + +@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 MeasurementCollectionJobMVO extends MeasurementJobMVO { + + private String outputFormat; + + private ReportingPeriod reportingPeriod; + + private DataFilterMapMVO jobCollectionFilter; + + private DataFilterMapMVO searchTaskFilter; + + private Boolean jobOnDemand = false; + + public MeasurementCollectionJobMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobMVO(String atType) { + super(atType); + } + + public MeasurementCollectionJobMVO outputFormat(String outputFormat) { + this.outputFormat = outputFormat; + return this; + } + + /** + * Get outputFormat + * @return outputFormat + */ + + @Schema(name = "outputFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("outputFormat") + public String getOutputFormat() { + return outputFormat; + } + + public void setOutputFormat(String outputFormat) { + this.outputFormat = outputFormat; + } + + public MeasurementCollectionJobMVO reportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + return this; + } + + /** + * Get reportingPeriod + * @return reportingPeriod + */ + @Valid + @Schema(name = "reportingPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingPeriod") + public ReportingPeriod getReportingPeriod() { + return reportingPeriod; + } + + public void setReportingPeriod(ReportingPeriod reportingPeriod) { + this.reportingPeriod = reportingPeriod; + } + + public MeasurementCollectionJobMVO jobCollectionFilter(DataFilterMapMVO jobCollectionFilter) { + this.jobCollectionFilter = jobCollectionFilter; + return this; + } + + /** + * Get jobCollectionFilter + * @return jobCollectionFilter + */ + @Valid + @Schema(name = "jobCollectionFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobCollectionFilter") + public DataFilterMapMVO getJobCollectionFilter() { + return jobCollectionFilter; + } + + public void setJobCollectionFilter(DataFilterMapMVO jobCollectionFilter) { + this.jobCollectionFilter = jobCollectionFilter; + } + + public MeasurementCollectionJobMVO searchTaskFilter(DataFilterMapMVO searchTaskFilter) { + this.searchTaskFilter = searchTaskFilter; + return this; + } + + /** + * Get searchTaskFilter + * @return searchTaskFilter + */ + @Valid + @Schema(name = "searchTaskFilter", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("searchTaskFilter") + public DataFilterMapMVO getSearchTaskFilter() { + return searchTaskFilter; + } + + public void setSearchTaskFilter(DataFilterMapMVO searchTaskFilter) { + this.searchTaskFilter = searchTaskFilter; + } + + public MeasurementCollectionJobMVO jobOnDemand(Boolean jobOnDemand) { + this.jobOnDemand = jobOnDemand; + return this; + } + + /** + * True if the job is a single job to be executed immediately in which case the reportingPeriod and scheduleDefinition would not be applicable, false otherwise + * @return jobOnDemand + */ + + @Schema(name = "jobOnDemand", description = "True if the job is a single job to be executed immediately in which case the reportingPeriod and scheduleDefinition would not be applicable, false otherwise", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("jobOnDemand") + public Boolean getJobOnDemand() { + return jobOnDemand; + } + + public void setJobOnDemand(Boolean jobOnDemand) { + this.jobOnDemand = jobOnDemand; + } + + + public MeasurementCollectionJobMVO consumingApplicationId(String consumingApplicationId) { + super.consumingApplicationId(consumingApplicationId); + return this; + } + + public MeasurementCollectionJobMVO producingApplicationId(String producingApplicationId) { + super.producingApplicationId(producingApplicationId); + return this; + } + + public MeasurementCollectionJobMVO granularity(Granularity granularity) { + super.granularity(granularity); + return this; + } + + public MeasurementCollectionJobMVO performanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + super.performanceIndicatorGroupSpecification(performanceIndicatorGroupSpecification); + return this; + } + + public MeasurementCollectionJobMVO addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecificationMVO performanceIndicatorGroupSpecificationItem) { + super.addPerformanceIndicatorGroupSpecificationItem(performanceIndicatorGroupSpecificationItem); + return this; + } + + public MeasurementCollectionJobMVO performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification) { + super.performanceIndicatorSpecification(performanceIndicatorSpecification); + return this; + } + + public MeasurementCollectionJobMVO addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValueMVO performanceIndicatorSpecificationItem) { + super.addPerformanceIndicatorSpecificationItem(performanceIndicatorSpecificationItem); + return this; + } + + public MeasurementCollectionJobMVO trackingRecord(List trackingRecord) { + super.trackingRecord(trackingRecord); + return this; + } + + public MeasurementCollectionJobMVO addTrackingRecordItem(TrackingRecordMVO trackingRecordItem) { + super.addTrackingRecordItem(trackingRecordItem); + return this; + } + + public MeasurementCollectionJobMVO atType(String atType) { + super.atType(atType); + return this; + } + + public MeasurementCollectionJobMVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public MeasurementCollectionJobMVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public MeasurementCollectionJobMVO href(String href) { + super.href(href); + return this; + } + + public MeasurementCollectionJobMVO id(String id) { + super.id(id); + return this; + } + + public MeasurementCollectionJobMVO fileTransferData(List fileTransferData) { + super.fileTransferData(fileTransferData); + return this; + } + + public MeasurementCollectionJobMVO addFileTransferDataItem(FileTransferDataMVO fileTransferDataItem) { + super.addFileTransferDataItem(fileTransferDataItem); + return this; + } + + public MeasurementCollectionJobMVO dataAccessEndpoint(List dataAccessEndpoint) { + super.dataAccessEndpoint(dataAccessEndpoint); + return this; + } + + public MeasurementCollectionJobMVO addDataAccessEndpointItem(DataAccessEndpointMVO dataAccessEndpointItem) { + super.addDataAccessEndpointItem(dataAccessEndpointItem); + return this; + } + + public MeasurementCollectionJobMVO scheduleDefinition(List scheduleDefinition) { + super.scheduleDefinition(scheduleDefinition); + return this; + } + + public MeasurementCollectionJobMVO addScheduleDefinitionItem(ScheduleDefinitionMVO scheduleDefinitionItem) { + super.addScheduleDefinitionItem(scheduleDefinitionItem); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementCollectionJobMVO measurementCollectionJobMVO = (MeasurementCollectionJobMVO) o; + return Objects.equals(this.outputFormat, measurementCollectionJobMVO.outputFormat) && + Objects.equals(this.reportingPeriod, measurementCollectionJobMVO.reportingPeriod) && + Objects.equals(this.jobCollectionFilter, measurementCollectionJobMVO.jobCollectionFilter) && + Objects.equals(this.searchTaskFilter, measurementCollectionJobMVO.searchTaskFilter) && + Objects.equals(this.jobOnDemand, measurementCollectionJobMVO.jobOnDemand) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(outputFormat, reportingPeriod, jobCollectionFilter, searchTaskFilter, jobOnDemand, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementCollectionJobMVO {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" outputFormat: ").append(toIndentedString(outputFormat)).append("\n"); + sb.append(" reportingPeriod: ").append(toIndentedString(reportingPeriod)).append("\n"); + sb.append(" jobCollectionFilter: ").append(toIndentedString(jobCollectionFilter)).append("\n"); + sb.append(" searchTaskFilter: ").append(toIndentedString(searchTaskFilter)).append("\n"); + sb.append(" jobOnDemand: ").append(toIndentedString(jobOnDemand)).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/MeasurementCollectionJobRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java new file mode 100644 index 0000000..ab62601 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Reference to a MeasurementCollectionJob + */ + +@Schema(name = "MeasurementCollectionJobRef", description = "Reference to a MeasurementCollectionJob") + +@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 MeasurementCollectionJobRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public MeasurementCollectionJobRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementCollectionJobRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public MeasurementCollectionJobRef 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 MeasurementCollectionJobRef 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 MeasurementCollectionJobRef 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 MeasurementCollectionJobRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public MeasurementCollectionJobRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MeasurementCollectionJobRef 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 MeasurementCollectionJobRef 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; + } + MeasurementCollectionJobRef measurementCollectionJobRef = (MeasurementCollectionJobRef) o; + return Objects.equals(this.atType, measurementCollectionJobRef.atType) && + Objects.equals(this.atBaseType, measurementCollectionJobRef.atBaseType) && + Objects.equals(this.atSchemaLocation, measurementCollectionJobRef.atSchemaLocation) && + Objects.equals(this.href, measurementCollectionJobRef.href) && + Objects.equals(this.id, measurementCollectionJobRef.id) && + Objects.equals(this.name, measurementCollectionJobRef.name) && + Objects.equals(this.atReferredType, measurementCollectionJobRef.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 MeasurementCollectionJobRef {\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/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java new file mode 100644 index 0000000..70cc7f2 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -0,0 +1,406 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpoint; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferData; +import org.openapitools.model.Granularity; +import org.openapitools.model.ManagementJob; +import org.openapitools.model.MonitoredClassCriteria; +import org.openapitools.model.MonitoredInstancesCriteria; +import org.openapitools.model.PerformanceIndicatorGroupSpecification; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.openapitools.model.ScheduleDefinition; +import org.openapitools.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementJob + */ + +@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 = MeasurementCollectionJob.class, name = "MeasurementCollectionJob") +}) + +@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 MeasurementJob extends ManagementJob { + + private String consumingApplicationId; + + private String producingApplicationId; + + private Granularity granularity; + + @Valid + private List performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + @Valid + private List trackingRecord = new ArrayList<>(); + + private MonitoredInstancesCriteria monitoredInstancesCriteria; + + private MonitoredClassCriteria monitoredClassCriteria; + + public MeasurementJob() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementJob(String atType) { + super(atType); + } + + public MeasurementJob consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementJob producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementJob granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementJob performanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementJob addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementJob performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementJob addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementJob trackingRecord(List trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementJob addTrackingRecordItem(TrackingRecord trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid @Size(min = 0) + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementJob monitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteria getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteria monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementJob monitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteria getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteria monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + + public MeasurementJob atType(String atType) { + super.atType(atType); + return this; + } + + public MeasurementJob atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public MeasurementJob atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public MeasurementJob href(String href) { + super.href(href); + return this; + } + + public MeasurementJob id(String id) { + super.id(id); + return this; + } + + public MeasurementJob adminState(AdministrativeState adminState) { + super.adminState(adminState); + return this; + } + + public MeasurementJob creationTime(OffsetDateTime creationTime) { + super.creationTime(creationTime); + return this; + } + + public MeasurementJob executionState(ExecutionStateType executionState) { + super.executionState(executionState); + return this; + } + + public MeasurementJob fileTransferData(List fileTransferData) { + super.fileTransferData(fileTransferData); + return this; + } + + public MeasurementJob addFileTransferDataItem(FileTransferData fileTransferDataItem) { + super.addFileTransferDataItem(fileTransferDataItem); + return this; + } + + public MeasurementJob dataAccessEndpoint(List dataAccessEndpoint) { + super.dataAccessEndpoint(dataAccessEndpoint); + return this; + } + + public MeasurementJob addDataAccessEndpointItem(DataAccessEndpoint dataAccessEndpointItem) { + super.addDataAccessEndpointItem(dataAccessEndpointItem); + return this; + } + + public MeasurementJob jobId(String jobId) { + super.jobId(jobId); + return this; + } + + public MeasurementJob jobPriority(Integer jobPriority) { + super.jobPriority(jobPriority); + return this; + } + + public MeasurementJob lastModifiedTime(OffsetDateTime lastModifiedTime) { + super.lastModifiedTime(lastModifiedTime); + return this; + } + + public MeasurementJob scheduleDefinition(List scheduleDefinition) { + super.scheduleDefinition(scheduleDefinition); + return this; + } + + public MeasurementJob addScheduleDefinitionItem(ScheduleDefinition scheduleDefinitionItem) { + super.addScheduleDefinitionItem(scheduleDefinitionItem); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementJob measurementJob = (MeasurementJob) o; + return Objects.equals(this.consumingApplicationId, measurementJob.consumingApplicationId) && + Objects.equals(this.producingApplicationId, measurementJob.producingApplicationId) && + Objects.equals(this.granularity, measurementJob.granularity) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementJob.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementJob.performanceIndicatorSpecification) && + Objects.equals(this.trackingRecord, measurementJob.trackingRecord) && + Objects.equals(this.monitoredInstancesCriteria, measurementJob.monitoredInstancesCriteria) && + Objects.equals(this.monitoredClassCriteria, measurementJob.monitoredClassCriteria) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, producingApplicationId, granularity, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, trackingRecord, monitoredInstancesCriteria, monitoredClassCriteria, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementJob {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).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/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java new file mode 100644 index 0000000..498fd19 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -0,0 +1,410 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpointFVO; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferDataFVO; +import org.openapitools.model.Granularity; +import org.openapitools.model.ManagementJobFVO; +import org.openapitools.model.MonitoredClassCriteriaFVO; +import org.openapitools.model.MonitoredInstancesCriteriaFVO; +import org.openapitools.model.PerformanceIndicatorGroupSpecificationFVO; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueFVO; +import org.openapitools.model.ScheduleDefinitionFVO; +import org.openapitools.model.TrackingRecordFVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementJobFVO + */ + +@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 = MeasurementCollectionJobFVO.class, name = "MeasurementCollectionJob") +}) + +@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 MeasurementJobFVO extends ManagementJobFVO { + + private String consumingApplicationId; + + private String producingApplicationId; + + private Granularity granularity; + + @Valid + private List performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification = new ArrayList<>(); + + @Valid + private List trackingRecord = new ArrayList<>(); + + private MonitoredInstancesCriteriaFVO monitoredInstancesCriteria; + + private MonitoredClassCriteriaFVO monitoredClassCriteria; + + public MeasurementJobFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementJobFVO(String consumingApplicationId, String producingApplicationId, List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification, String atType) { + super(atType); + this.consumingApplicationId = consumingApplicationId; + this.producingApplicationId = producingApplicationId; + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementJobFVO consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + @NotNull + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementJobFVO producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + @NotNull + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementJobFVO granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementJobFVO performanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementJobFVO addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecificationFVO performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementJobFVO performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementJobFVO addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValueFVO performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @NotNull @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementJobFVO trackingRecord(List trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementJobFVO addTrackingRecordItem(TrackingRecordFVO trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid @Size(min = 0) + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List trackingRecord) { + this.trackingRecord = trackingRecord; + } + + public MeasurementJobFVO monitoredInstancesCriteria(MonitoredInstancesCriteriaFVO monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + return this; + } + + /** + * Get monitoredInstancesCriteria + * @return monitoredInstancesCriteria + */ + @Valid + @Schema(name = "monitoredInstancesCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredInstancesCriteria") + public MonitoredInstancesCriteriaFVO getMonitoredInstancesCriteria() { + return monitoredInstancesCriteria; + } + + public void setMonitoredInstancesCriteria(MonitoredInstancesCriteriaFVO monitoredInstancesCriteria) { + this.monitoredInstancesCriteria = monitoredInstancesCriteria; + } + + public MeasurementJobFVO monitoredClassCriteria(MonitoredClassCriteriaFVO monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + return this; + } + + /** + * Get monitoredClassCriteria + * @return monitoredClassCriteria + */ + @Valid + @Schema(name = "monitoredClassCriteria", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredClassCriteria") + public MonitoredClassCriteriaFVO getMonitoredClassCriteria() { + return monitoredClassCriteria; + } + + public void setMonitoredClassCriteria(MonitoredClassCriteriaFVO monitoredClassCriteria) { + this.monitoredClassCriteria = monitoredClassCriteria; + } + + + public MeasurementJobFVO atType(String atType) { + super.atType(atType); + return this; + } + + public MeasurementJobFVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public MeasurementJobFVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public MeasurementJobFVO href(String href) { + super.href(href); + return this; + } + + public MeasurementJobFVO id(String id) { + super.id(id); + return this; + } + + public MeasurementJobFVO adminState(AdministrativeState adminState) { + super.adminState(adminState); + return this; + } + + public MeasurementJobFVO creationTime(OffsetDateTime creationTime) { + super.creationTime(creationTime); + return this; + } + + public MeasurementJobFVO executionState(ExecutionStateType executionState) { + super.executionState(executionState); + return this; + } + + public MeasurementJobFVO fileTransferData(List fileTransferData) { + super.fileTransferData(fileTransferData); + return this; + } + + public MeasurementJobFVO addFileTransferDataItem(FileTransferDataFVO fileTransferDataItem) { + super.addFileTransferDataItem(fileTransferDataItem); + return this; + } + + public MeasurementJobFVO dataAccessEndpoint(List dataAccessEndpoint) { + super.dataAccessEndpoint(dataAccessEndpoint); + return this; + } + + public MeasurementJobFVO addDataAccessEndpointItem(DataAccessEndpointFVO dataAccessEndpointItem) { + super.addDataAccessEndpointItem(dataAccessEndpointItem); + return this; + } + + public MeasurementJobFVO jobId(String jobId) { + super.jobId(jobId); + return this; + } + + public MeasurementJobFVO jobPriority(Integer jobPriority) { + super.jobPriority(jobPriority); + return this; + } + + public MeasurementJobFVO lastModifiedTime(OffsetDateTime lastModifiedTime) { + super.lastModifiedTime(lastModifiedTime); + return this; + } + + public MeasurementJobFVO scheduleDefinition(List scheduleDefinition) { + super.scheduleDefinition(scheduleDefinition); + return this; + } + + public MeasurementJobFVO addScheduleDefinitionItem(ScheduleDefinitionFVO scheduleDefinitionItem) { + super.addScheduleDefinitionItem(scheduleDefinitionItem); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementJobFVO measurementJobFVO = (MeasurementJobFVO) o; + return Objects.equals(this.consumingApplicationId, measurementJobFVO.consumingApplicationId) && + Objects.equals(this.producingApplicationId, measurementJobFVO.producingApplicationId) && + Objects.equals(this.granularity, measurementJobFVO.granularity) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementJobFVO.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementJobFVO.performanceIndicatorSpecification) && + Objects.equals(this.trackingRecord, measurementJobFVO.trackingRecord) && + Objects.equals(this.monitoredInstancesCriteria, measurementJobFVO.monitoredInstancesCriteria) && + Objects.equals(this.monitoredClassCriteria, measurementJobFVO.monitoredClassCriteria) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, producingApplicationId, granularity, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, trackingRecord, monitoredInstancesCriteria, monitoredClassCriteria, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementJobFVO {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).append("\n"); + sb.append(" monitoredInstancesCriteria: ").append(toIndentedString(monitoredInstancesCriteria)).append("\n"); + sb.append(" monitoredClassCriteria: ").append(toIndentedString(monitoredClassCriteria)).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/MeasurementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java new file mode 100644 index 0000000..f7eab16 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java @@ -0,0 +1,323 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DataAccessEndpointMVO; +import org.openapitools.model.FileTransferDataMVO; +import org.openapitools.model.Granularity; +import org.openapitools.model.ManagementJobMVO; +import org.openapitools.model.PerformanceIndicatorGroupSpecificationMVO; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueMVO; +import org.openapitools.model.ScheduleDefinitionMVO; +import org.openapitools.model.TrackingRecordMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MeasurementJobMVO + */ + +@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 = MeasurementCollectionJobMVO.class, name = "MeasurementCollectionJob") +}) + +@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 MeasurementJobMVO extends ManagementJobMVO { + + private String consumingApplicationId; + + private String producingApplicationId; + + private Granularity granularity; + + @Valid + private List performanceIndicatorGroupSpecification = new ArrayList<>(); + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification = new ArrayList<>(); + + @Valid + private List trackingRecord = new ArrayList<>(); + + public MeasurementJobMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MeasurementJobMVO(String atType) { + super(atType); + } + + public MeasurementJobMVO consumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + return this; + } + + /** + * The identifier of the application that consumes performance indicators. + * @return consumingApplicationId + */ + + @Schema(name = "consumingApplicationId", description = "The identifier of the application that consumes performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("consumingApplicationId") + public String getConsumingApplicationId() { + return consumingApplicationId; + } + + public void setConsumingApplicationId(String consumingApplicationId) { + this.consumingApplicationId = consumingApplicationId; + } + + public MeasurementJobMVO producingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + return this; + } + + /** + * The identifier of the application that produces performance indicators. + * @return producingApplicationId + */ + + @Schema(name = "producingApplicationId", description = "The identifier of the application that produces performance indicators.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("producingApplicationId") + public String getProducingApplicationId() { + return producingApplicationId; + } + + public void setProducingApplicationId(String producingApplicationId) { + this.producingApplicationId = producingApplicationId; + } + + public MeasurementJobMVO granularity(Granularity granularity) { + this.granularity = granularity; + return this; + } + + /** + * Get granularity + * @return granularity + */ + @Valid + @Schema(name = "granularity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("granularity") + public Granularity getGranularity() { + return granularity; + } + + public void setGranularity(Granularity granularity) { + this.granularity = granularity; + } + + public MeasurementJobMVO performanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + public MeasurementJobMVO addPerformanceIndicatorGroupSpecificationItem(PerformanceIndicatorGroupSpecificationMVO performanceIndicatorGroupSpecificationItem) { + if (this.performanceIndicatorGroupSpecification == null) { + this.performanceIndicatorGroupSpecification = new ArrayList<>(); + } + this.performanceIndicatorGroupSpecification.add(performanceIndicatorGroupSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public List getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(List performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public MeasurementJobMVO performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public MeasurementJobMVO addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValueMVO performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public MeasurementJobMVO trackingRecord(List trackingRecord) { + this.trackingRecord = trackingRecord; + return this; + } + + public MeasurementJobMVO addTrackingRecordItem(TrackingRecordMVO trackingRecordItem) { + if (this.trackingRecord == null) { + this.trackingRecord = new ArrayList<>(); + } + this.trackingRecord.add(trackingRecordItem); + return this; + } + + /** + * Get trackingRecord + * @return trackingRecord + */ + @Valid @Size(min = 0) + @Schema(name = "trackingRecord", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("trackingRecord") + public List getTrackingRecord() { + return trackingRecord; + } + + public void setTrackingRecord(List trackingRecord) { + this.trackingRecord = trackingRecord; + } + + + public MeasurementJobMVO atType(String atType) { + super.atType(atType); + return this; + } + + public MeasurementJobMVO atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public MeasurementJobMVO atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public MeasurementJobMVO href(String href) { + super.href(href); + return this; + } + + public MeasurementJobMVO id(String id) { + super.id(id); + return this; + } + + public MeasurementJobMVO fileTransferData(List fileTransferData) { + super.fileTransferData(fileTransferData); + return this; + } + + public MeasurementJobMVO addFileTransferDataItem(FileTransferDataMVO fileTransferDataItem) { + super.addFileTransferDataItem(fileTransferDataItem); + return this; + } + + public MeasurementJobMVO dataAccessEndpoint(List dataAccessEndpoint) { + super.dataAccessEndpoint(dataAccessEndpoint); + return this; + } + + public MeasurementJobMVO addDataAccessEndpointItem(DataAccessEndpointMVO dataAccessEndpointItem) { + super.addDataAccessEndpointItem(dataAccessEndpointItem); + return this; + } + + public MeasurementJobMVO scheduleDefinition(List scheduleDefinition) { + super.scheduleDefinition(scheduleDefinition); + return this; + } + + public MeasurementJobMVO addScheduleDefinitionItem(ScheduleDefinitionMVO scheduleDefinitionItem) { + super.addScheduleDefinitionItem(scheduleDefinitionItem); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeasurementJobMVO measurementJobMVO = (MeasurementJobMVO) o; + return Objects.equals(this.consumingApplicationId, measurementJobMVO.consumingApplicationId) && + Objects.equals(this.producingApplicationId, measurementJobMVO.producingApplicationId) && + Objects.equals(this.granularity, measurementJobMVO.granularity) && + Objects.equals(this.performanceIndicatorGroupSpecification, measurementJobMVO.performanceIndicatorGroupSpecification) && + Objects.equals(this.performanceIndicatorSpecification, measurementJobMVO.performanceIndicatorSpecification) && + Objects.equals(this.trackingRecord, measurementJobMVO.trackingRecord) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(consumingApplicationId, producingApplicationId, granularity, performanceIndicatorGroupSpecification, performanceIndicatorSpecification, trackingRecord, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeasurementJobMVO {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" consumingApplicationId: ").append(toIndentedString(consumingApplicationId)).append("\n"); + sb.append(" producingApplicationId: ").append(toIndentedString(producingApplicationId)).append("\n"); + sb.append(" granularity: ").append(toIndentedString(granularity)).append("\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" trackingRecord: ").append(toIndentedString(trackingRecord)).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/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java new file mode 100644 index 0000000..b6cd562 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -0,0 +1,194 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonitoredClassCriteria + */ + + +@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 MonitoredClassCriteria { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String monitoredObjectClass; + + private String objectInstanceFilter; + + public MonitoredClassCriteria() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonitoredClassCriteria(String atType) { + this.atType = atType; + } + + public MonitoredClassCriteria 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 MonitoredClassCriteria 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 MonitoredClassCriteria 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 MonitoredClassCriteria monitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + return this; + } + + /** + * A monitored object class for specifying the set of instances that are referenced by a PM query. + * @return monitoredObjectClass + */ + + @Schema(name = "monitoredObjectClass", description = "A monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredObjectClass") + public String getMonitoredObjectClass() { + return monitoredObjectClass; + } + + public void setMonitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + } + + public MonitoredClassCriteria objectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + return this; + } + + /** + * A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query. + * @return objectInstanceFilter + */ + + @Schema(name = "objectInstanceFilter", description = "A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("objectInstanceFilter") + public String getObjectInstanceFilter() { + return objectInstanceFilter; + } + + public void setObjectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonitoredClassCriteria monitoredClassCriteria = (MonitoredClassCriteria) o; + return Objects.equals(this.atType, monitoredClassCriteria.atType) && + Objects.equals(this.atBaseType, monitoredClassCriteria.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredClassCriteria.atSchemaLocation) && + Objects.equals(this.monitoredObjectClass, monitoredClassCriteria.monitoredObjectClass) && + Objects.equals(this.objectInstanceFilter, monitoredClassCriteria.objectInstanceFilter); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectClass, objectInstanceFilter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredClassCriteria {\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(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); + sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).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/MonitoredClassCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java new file mode 100644 index 0000000..0dc6e76 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java @@ -0,0 +1,195 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonitoredClassCriteriaFVO + */ + + +@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 MonitoredClassCriteriaFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String monitoredObjectClass; + + private String objectInstanceFilter; + + public MonitoredClassCriteriaFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonitoredClassCriteriaFVO(String atType) { + this.atType = atType; + } + + public MonitoredClassCriteriaFVO 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 MonitoredClassCriteriaFVO 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 MonitoredClassCriteriaFVO 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 MonitoredClassCriteriaFVO monitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + return this; + } + + /** + * A monitored object class for specifying the set of instances that are referenced by a PM query. + * @return monitoredObjectClass + */ + + @Schema(name = "monitoredObjectClass", description = "A monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredObjectClass") + public String getMonitoredObjectClass() { + return monitoredObjectClass; + } + + public void setMonitoredObjectClass(String monitoredObjectClass) { + this.monitoredObjectClass = monitoredObjectClass; + } + + public MonitoredClassCriteriaFVO objectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + return this; + } + + /** + * A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query. + * @return objectInstanceFilter + */ + + @Schema(name = "objectInstanceFilter", description = "A filter that can be used in conjunction with the monitored object class for specifying the set of instances that are referenced by a PM query.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("objectInstanceFilter") + public String getObjectInstanceFilter() { + return objectInstanceFilter; + } + + public void setObjectInstanceFilter(String objectInstanceFilter) { + this.objectInstanceFilter = objectInstanceFilter; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonitoredClassCriteriaFVO monitoredClassCriteriaFVO = (MonitoredClassCriteriaFVO) o; + return Objects.equals(this.atType, monitoredClassCriteriaFVO.atType) && + Objects.equals(this.atBaseType, monitoredClassCriteriaFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredClassCriteriaFVO.atSchemaLocation) && + Objects.equals(this.monitoredObjectClass, monitoredClassCriteriaFVO.monitoredObjectClass) && + Objects.equals(this.objectInstanceFilter, monitoredClassCriteriaFVO.objectInstanceFilter); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectClass, objectInstanceFilter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredClassCriteriaFVO {\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(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); + sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).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/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java new file mode 100644 index 0000000..8fb9373 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -0,0 +1,182 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonitoredInstancesCriteria + */ + + +@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 MonitoredInstancesCriteria { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List monitoredObjectInstances = new ArrayList<>(); + + public MonitoredInstancesCriteria() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonitoredInstancesCriteria(String atType) { + this.atType = atType; + } + + public MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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 MonitoredInstancesCriteria 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 MonitoredInstancesCriteria monitoredObjectInstances(List monitoredObjectInstances) { + this.monitoredObjectInstances = monitoredObjectInstances; + return this; + } + + public MonitoredInstancesCriteria addMonitoredObjectInstancesItem(String monitoredObjectInstancesItem) { + if (this.monitoredObjectInstances == null) { + this.monitoredObjectInstances = new ArrayList<>(); + } + this.monitoredObjectInstances.add(monitoredObjectInstancesItem); + return this; + } + + /** + * Get monitoredObjectInstances + * @return monitoredObjectInstances + */ + @Size(min = 0) + @Schema(name = "monitoredObjectInstances", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredObjectInstances") + public List getMonitoredObjectInstances() { + return monitoredObjectInstances; + } + + public void setMonitoredObjectInstances(List monitoredObjectInstances) { + this.monitoredObjectInstances = monitoredObjectInstances; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonitoredInstancesCriteria monitoredInstancesCriteria = (MonitoredInstancesCriteria) o; + return Objects.equals(this.atType, monitoredInstancesCriteria.atType) && + Objects.equals(this.atBaseType, monitoredInstancesCriteria.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredInstancesCriteria.atSchemaLocation) && + Objects.equals(this.monitoredObjectInstances, monitoredInstancesCriteria.monitoredObjectInstances); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectInstances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredInstancesCriteria {\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(" monitoredObjectInstances: ").append(toIndentedString(monitoredObjectInstances)).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/MonitoredInstancesCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java new file mode 100644 index 0000000..9d07cd7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java @@ -0,0 +1,183 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonitoredInstancesCriteriaFVO + */ + + +@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 MonitoredInstancesCriteriaFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List monitoredObjectInstances = new ArrayList<>(); + + public MonitoredInstancesCriteriaFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonitoredInstancesCriteriaFVO(String atType) { + this.atType = atType; + } + + public MonitoredInstancesCriteriaFVO 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 MonitoredInstancesCriteriaFVO 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 MonitoredInstancesCriteriaFVO 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 MonitoredInstancesCriteriaFVO monitoredObjectInstances(List monitoredObjectInstances) { + this.monitoredObjectInstances = monitoredObjectInstances; + return this; + } + + public MonitoredInstancesCriteriaFVO addMonitoredObjectInstancesItem(String monitoredObjectInstancesItem) { + if (this.monitoredObjectInstances == null) { + this.monitoredObjectInstances = new ArrayList<>(); + } + this.monitoredObjectInstances.add(monitoredObjectInstancesItem); + return this; + } + + /** + * Get monitoredObjectInstances + * @return monitoredObjectInstances + */ + @Size(min = 0) + @Schema(name = "monitoredObjectInstances", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monitoredObjectInstances") + public List getMonitoredObjectInstances() { + return monitoredObjectInstances; + } + + public void setMonitoredObjectInstances(List monitoredObjectInstances) { + this.monitoredObjectInstances = monitoredObjectInstances; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonitoredInstancesCriteriaFVO monitoredInstancesCriteriaFVO = (MonitoredInstancesCriteriaFVO) o; + return Objects.equals(this.atType, monitoredInstancesCriteriaFVO.atType) && + Objects.equals(this.atBaseType, monitoredInstancesCriteriaFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, monitoredInstancesCriteriaFVO.atSchemaLocation) && + Objects.equals(this.monitoredObjectInstances, monitoredInstancesCriteriaFVO.monitoredObjectInstances); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectInstances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonitoredInstancesCriteriaFVO {\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(" monitoredObjectInstances: ").append(toIndentedString(monitoredObjectInstances)).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/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java new file mode 100644 index 0000000..7001db4 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -0,0 +1,207 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DayOfMonthRecurrence; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonthlyScheduleDayOfWeekDefinition + */ + + +@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 MonthlyScheduleDayOfWeekDefinition { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List dayOfMonthRecurrence = new ArrayList<>(); + + private String recurringDaySequence; + + public MonthlyScheduleDayOfWeekDefinition() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonthlyScheduleDayOfWeekDefinition(String atType) { + this.atType = atType; + } + + public MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition 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 MonthlyScheduleDayOfWeekDefinition dayOfMonthRecurrence(List dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + return this; + } + + public MonthlyScheduleDayOfWeekDefinition addDayOfMonthRecurrenceItem(DayOfMonthRecurrence dayOfMonthRecurrenceItem) { + if (this.dayOfMonthRecurrence == null) { + this.dayOfMonthRecurrence = new ArrayList<>(); + } + this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); + return this; + } + + /** + * Get dayOfMonthRecurrence + * @return dayOfMonthRecurrence + */ + @Valid + @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dayOfMonthRecurrence") + public List getDayOfMonthRecurrence() { + return dayOfMonthRecurrence; + } + + public void setDayOfMonthRecurrence(List dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + } + + public MonthlyScheduleDayOfWeekDefinition recurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + return this; + } + + /** + * Get recurringDaySequence + * @return recurringDaySequence + */ + + @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringDaySequence") + public String getRecurringDaySequence() { + return recurringDaySequence; + } + + public void setRecurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition = (MonthlyScheduleDayOfWeekDefinition) o; + return Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinition.atType) && + Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinition.atBaseType) && + Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinition.atSchemaLocation) && + Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinition.dayOfMonthRecurrence) && + Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinition.recurringDaySequence); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dayOfMonthRecurrence, recurringDaySequence); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyScheduleDayOfWeekDefinition {\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(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).append("\n"); + sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).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/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java new file mode 100644 index 0000000..29f0184 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -0,0 +1,208 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DayOfMonthRecurrenceFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonthlyScheduleDayOfWeekDefinitionFVO + */ + + +@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 MonthlyScheduleDayOfWeekDefinitionFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List dayOfMonthRecurrence = new ArrayList<>(); + + private String recurringDaySequence; + + public MonthlyScheduleDayOfWeekDefinitionFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonthlyScheduleDayOfWeekDefinitionFVO(String atType) { + this.atType = atType; + } + + public MonthlyScheduleDayOfWeekDefinitionFVO 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 MonthlyScheduleDayOfWeekDefinitionFVO 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 MonthlyScheduleDayOfWeekDefinitionFVO 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 MonthlyScheduleDayOfWeekDefinitionFVO dayOfMonthRecurrence(List dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + return this; + } + + public MonthlyScheduleDayOfWeekDefinitionFVO addDayOfMonthRecurrenceItem(DayOfMonthRecurrenceFVO dayOfMonthRecurrenceItem) { + if (this.dayOfMonthRecurrence == null) { + this.dayOfMonthRecurrence = new ArrayList<>(); + } + this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); + return this; + } + + /** + * Get dayOfMonthRecurrence + * @return dayOfMonthRecurrence + */ + @Valid + @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dayOfMonthRecurrence") + public List getDayOfMonthRecurrence() { + return dayOfMonthRecurrence; + } + + public void setDayOfMonthRecurrence(List dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + } + + public MonthlyScheduleDayOfWeekDefinitionFVO recurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + return this; + } + + /** + * Get recurringDaySequence + * @return recurringDaySequence + */ + + @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringDaySequence") + public String getRecurringDaySequence() { + return recurringDaySequence; + } + + public void setRecurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinitionFVO = (MonthlyScheduleDayOfWeekDefinitionFVO) o; + return Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinitionFVO.atType) && + Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinitionFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinitionFVO.atSchemaLocation) && + Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinitionFVO.dayOfMonthRecurrence) && + Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinitionFVO.recurringDaySequence); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dayOfMonthRecurrence, recurringDaySequence); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyScheduleDayOfWeekDefinitionFVO {\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(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).append("\n"); + sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).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/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java new file mode 100644 index 0000000..c88ef32 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -0,0 +1,208 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DayOfMonthRecurrenceMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * MonthlyScheduleDayOfWeekDefinitionMVO + */ + + +@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 MonthlyScheduleDayOfWeekDefinitionMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List dayOfMonthRecurrence = new ArrayList<>(); + + private String recurringDaySequence; + + public MonthlyScheduleDayOfWeekDefinitionMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public MonthlyScheduleDayOfWeekDefinitionMVO(String atType) { + this.atType = atType; + } + + public MonthlyScheduleDayOfWeekDefinitionMVO 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 MonthlyScheduleDayOfWeekDefinitionMVO 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 MonthlyScheduleDayOfWeekDefinitionMVO 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 MonthlyScheduleDayOfWeekDefinitionMVO dayOfMonthRecurrence(List dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + return this; + } + + public MonthlyScheduleDayOfWeekDefinitionMVO addDayOfMonthRecurrenceItem(DayOfMonthRecurrenceMVO dayOfMonthRecurrenceItem) { + if (this.dayOfMonthRecurrence == null) { + this.dayOfMonthRecurrence = new ArrayList<>(); + } + this.dayOfMonthRecurrence.add(dayOfMonthRecurrenceItem); + return this; + } + + /** + * Get dayOfMonthRecurrence + * @return dayOfMonthRecurrence + */ + @Valid + @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dayOfMonthRecurrence") + public List getDayOfMonthRecurrence() { + return dayOfMonthRecurrence; + } + + public void setDayOfMonthRecurrence(List dayOfMonthRecurrence) { + this.dayOfMonthRecurrence = dayOfMonthRecurrence; + } + + public MonthlyScheduleDayOfWeekDefinitionMVO recurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + return this; + } + + /** + * Get recurringDaySequence + * @return recurringDaySequence + */ + + @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringDaySequence") + public String getRecurringDaySequence() { + return recurringDaySequence; + } + + public void setRecurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinitionMVO = (MonthlyScheduleDayOfWeekDefinitionMVO) o; + return Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinitionMVO.atType) && + Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinitionMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinitionMVO.atSchemaLocation) && + Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinitionMVO.dayOfMonthRecurrence) && + Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinitionMVO.recurringDaySequence); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dayOfMonthRecurrence, recurringDaySequence); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MonthlyScheduleDayOfWeekDefinitionMVO {\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(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).append("\n"); + sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).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/Note.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java new file mode 100644 index 0000000..db9709d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java @@ -0,0 +1,245 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Note + */ + + +@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 Note { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String author; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime date; + + private String text; + + public Note() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Note(String atType) { + this.atType = atType; + } + + public Note 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 Note 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 Note 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 Note id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the note within its containing entity + * @return id + */ + + @Schema(name = "id", example = "afa9-3d90aaa8da0f", description = "Identifier of the note within its containing entity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public Note author(String author) { + this.author = author; + return this; + } + + /** + * Author of the note + * @return author + */ + + @Schema(name = "author", example = "Mr. N. Bene", description = "Author of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("author") + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public Note date(OffsetDateTime date) { + this.date = date; + return this; + } + + /** + * Date of the note + * @return date + */ + @Valid + @Schema(name = "date", example = "2020-11-20T08:00Z", description = "Date of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("date") + public OffsetDateTime getDate() { + return date; + } + + public void setDate(OffsetDateTime date) { + this.date = date; + } + + public Note text(String text) { + this.text = text; + return this; + } + + /** + * Text of the note + * @return text + */ + + @Schema(name = "text", example = "This is important", description = "Text of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("text") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Note note = (Note) o; + return Objects.equals(this.atType, note.atType) && + Objects.equals(this.atBaseType, note.atBaseType) && + Objects.equals(this.atSchemaLocation, note.atSchemaLocation) && + Objects.equals(this.id, note.id) && + Objects.equals(this.author, note.author) && + Objects.equals(this.date, note.date) && + Objects.equals(this.text, note.text); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, author, date, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Note {\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(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).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/NoteFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java new file mode 100644 index 0000000..ab092b2 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java @@ -0,0 +1,222 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * NoteFVO + */ + + +@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 NoteFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String author; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime date; + + private String text; + + public NoteFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public NoteFVO(String atType) { + this.atType = atType; + } + + public NoteFVO 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 NoteFVO 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 NoteFVO 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 NoteFVO author(String author) { + this.author = author; + return this; + } + + /** + * Author of the note + * @return author + */ + + @Schema(name = "author", example = "Mr. N. Bene", description = "Author of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("author") + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public NoteFVO date(OffsetDateTime date) { + this.date = date; + return this; + } + + /** + * Date of the note + * @return date + */ + @Valid + @Schema(name = "date", example = "2020-11-20T08:00Z", description = "Date of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("date") + public OffsetDateTime getDate() { + return date; + } + + public void setDate(OffsetDateTime date) { + this.date = date; + } + + public NoteFVO text(String text) { + this.text = text; + return this; + } + + /** + * Text of the note + * @return text + */ + + @Schema(name = "text", example = "This is important", description = "Text of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("text") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NoteFVO noteFVO = (NoteFVO) o; + return Objects.equals(this.atType, noteFVO.atType) && + Objects.equals(this.atBaseType, noteFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, noteFVO.atSchemaLocation) && + Objects.equals(this.author, noteFVO.author) && + Objects.equals(this.date, noteFVO.date) && + Objects.equals(this.text, noteFVO.text); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, author, date, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NoteFVO {\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(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).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/NoteMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java new file mode 100644 index 0000000..e68af7d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java @@ -0,0 +1,246 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * NoteMVO + */ + + +@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 NoteMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String author; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime date; + + private String text; + + public NoteMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public NoteMVO(String atType) { + this.atType = atType; + } + + public NoteMVO 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 NoteMVO 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 NoteMVO 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 NoteMVO id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the note within its containing entity + * @return id + */ + + @Schema(name = "id", example = "afa9-3d90aaa8da0f", description = "Identifier of the note within its containing entity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public NoteMVO author(String author) { + this.author = author; + return this; + } + + /** + * Author of the note + * @return author + */ + + @Schema(name = "author", example = "Mr. N. Bene", description = "Author of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("author") + public String getAuthor() { + return author; + } + + public void setAuthor(String author) { + this.author = author; + } + + public NoteMVO date(OffsetDateTime date) { + this.date = date; + return this; + } + + /** + * Date of the note + * @return date + */ + @Valid + @Schema(name = "date", example = "2020-11-20T08:00Z", description = "Date of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("date") + public OffsetDateTime getDate() { + return date; + } + + public void setDate(OffsetDateTime date) { + this.date = date; + } + + public NoteMVO text(String text) { + this.text = text; + return this; + } + + /** + * Text of the note + * @return text + */ + + @Schema(name = "text", example = "This is important", description = "Text of the note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("text") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NoteMVO noteMVO = (NoteMVO) o; + return Objects.equals(this.atType, noteMVO.atType) && + Objects.equals(this.atBaseType, noteMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, noteMVO.atSchemaLocation) && + Objects.equals(this.id, noteMVO.id) && + Objects.equals(this.author, noteMVO.author) && + Objects.equals(this.date, noteMVO.date) && + Objects.equals(this.text, noteMVO.text); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, author, date, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NoteMVO {\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(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" author: ").append(toIndentedString(author)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).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/OrderItemActionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java new file mode 100644 index 0000000..40da1cb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java @@ -0,0 +1,60 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * action to be performed on the product + */ + +@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 OrderItemActionType { + + ADD("add"), + + MODIFY("modify"), + + DELETE("delete"), + + NOCHANGE("noChange"); + + private String value; + + OrderItemActionType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OrderItemActionType fromValue(String value) { + for (OrderItemActionType b : OrderItemActionType.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/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java new file mode 100644 index 0000000..639b31d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java @@ -0,0 +1,62 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Enumeration of supported packing/packaging. 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 PackingEnumType { + + NO_PACKING("NO_PACKING"), + + GZIP("GZIP"), + + TAR("TAR"), + + VENDOR_EXT("VENDOR_EXT"), + + MINOR_EXT("MINOR_EXT"); + + private String value; + + PackingEnumType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PackingEnumType fromValue(String value) { + for (PackingEnumType b : PackingEnumType.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/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java new file mode 100644 index 0000000..9a5e7a8 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -0,0 +1,86 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.PackingEnumType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Specify if the output file(s) are to be packed. + */ + +@Schema(name = "PackingType", description = "Specify if the output file(s) are to be packed.") +@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 PackingType { + + private PackingEnumType packingEnumType; + + public PackingType packingEnumType(PackingEnumType packingEnumType) { + this.packingEnumType = packingEnumType; + return this; + } + + /** + * Get packingEnumType + * @return packingEnumType + */ + @Valid + @Schema(name = "packingEnumType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingEnumType") + public PackingEnumType getPackingEnumType() { + return packingEnumType; + } + + public void setPackingEnumType(PackingEnumType packingEnumType) { + this.packingEnumType = packingEnumType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PackingType packingType = (PackingType) o; + return Objects.equals(this.packingEnumType, packingType.packingEnumType); + } + + @Override + public int hashCode() { + return Objects.hash(packingEnumType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PackingType {\n"); + sb.append(" packingEnumType: ").append(toIndentedString(packingEnumType)).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/PartyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java new file mode 100644 index 0000000..b8e08d9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A Party reference + */ + +@Schema(name = "PartyRef", description = "A Party reference") + +@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 PartyRef implements PartyRefOrPartyRoleRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public PartyRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PartyRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PartyRef 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 PartyRef 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 PartyRef 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 PartyRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PartyRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PartyRef 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 PartyRef 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; + } + PartyRef partyRef = (PartyRef) o; + return Objects.equals(this.atType, partyRef.atType) && + Objects.equals(this.atBaseType, partyRef.atBaseType) && + Objects.equals(this.atSchemaLocation, partyRef.atSchemaLocation) && + Objects.equals(this.href, partyRef.href) && + Objects.equals(this.id, partyRef.id) && + Objects.equals(this.name, partyRef.name) && + Objects.equals(this.atReferredType, partyRef.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 PartyRef {\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/PartyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java new file mode 100644 index 0000000..5988238 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A Party reference + */ + +@Schema(name = "PartyRef_FVO", description = "A Party reference") + +@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 PartyRefFVO implements PartyRefOrPartyRoleRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public PartyRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PartyRefFVO(String atType) { + this.atType = atType; + } + + public PartyRefFVO 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 PartyRefFVO 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 PartyRefFVO 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 PartyRefFVO 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 PartyRefFVO 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 PartyRefFVO 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 PartyRefFVO 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; + } + PartyRefFVO partyRefFVO = (PartyRefFVO) o; + return Objects.equals(this.atType, partyRefFVO.atType) && + Objects.equals(this.atBaseType, partyRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, partyRefFVO.atSchemaLocation) && + Objects.equals(this.href, partyRefFVO.href) && + Objects.equals(this.id, partyRefFVO.id) && + Objects.equals(this.name, partyRefFVO.name) && + Objects.equals(this.atReferredType, partyRefFVO.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 PartyRefFVO {\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/PartyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java new file mode 100644 index 0000000..4cb64d0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A Party reference + */ + +@Schema(name = "PartyRef_MVO", description = "A Party reference") + +@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 PartyRefMVO implements PartyRefOrPartyRoleRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public PartyRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PartyRefMVO(String atType) { + this.atType = atType; + } + + public PartyRefMVO 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 PartyRefMVO 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 PartyRefMVO 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 PartyRefMVO 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 PartyRefMVO 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 PartyRefMVO 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 PartyRefMVO 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; + } + PartyRefMVO partyRefMVO = (PartyRefMVO) o; + return Objects.equals(this.atType, partyRefMVO.atType) && + Objects.equals(this.atBaseType, partyRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, partyRefMVO.atSchemaLocation) && + Objects.equals(this.href, partyRefMVO.href) && + Objects.equals(this.id, partyRefMVO.id) && + Objects.equals(this.name, partyRefMVO.name) && + Objects.equals(this.atReferredType, partyRefMVO.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 PartyRefMVO {\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/PartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java new file mode 100644 index 0000000..217dc33 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java @@ -0,0 +1,36 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.model.PartyRef; +import org.openapitools.model.PartyRoleRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PartyRef.class, name = "PartyRef"), + @JsonSubTypes.Type(value = PartyRoleRef.class, name = "PartyRoleRef") +}) + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PartyRefOrPartyRoleRef { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java new file mode 100644 index 0000000..0d7cf20 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java @@ -0,0 +1,39 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.PartyRefFVO; +import org.openapitools.model.PartyRoleRefFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PartyRefFVO.class, name = "PartyRef"), + @JsonSubTypes.Type(value = PartyRoleRefFVO.class, name = "PartyRoleRef"), + @JsonSubTypes.Type(value = PartyRefFVO.class, name = "PartyRef_FVO"), + @JsonSubTypes.Type(value = PartyRoleRefFVO.class, name = "PartyRoleRef_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 interface PartyRefOrPartyRoleRefFVO { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java new file mode 100644 index 0000000..337eee7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java @@ -0,0 +1,39 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.PartyRefMVO; +import org.openapitools.model.PartyRoleRefMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PartyRefMVO.class, name = "PartyRef"), + @JsonSubTypes.Type(value = PartyRoleRefMVO.class, name = "PartyRoleRef"), + @JsonSubTypes.Type(value = PartyRefMVO.class, name = "PartyRef_MVO"), + @JsonSubTypes.Type(value = PartyRoleRefMVO.class, name = "PartyRoleRef_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 interface PartyRefOrPartyRoleRefMVO { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java new file mode 100644 index 0000000..11b566f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java @@ -0,0 +1,291 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PartyRoleRef + */ + + +@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 PartyRoleRef implements PartyRefOrPartyRoleRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String partyId; + + private String partyName; + + public PartyRoleRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PartyRoleRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PartyRoleRef 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 PartyRoleRef 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 PartyRoleRef 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 PartyRoleRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PartyRoleRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PartyRoleRef 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 PartyRoleRef 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; + } + + public PartyRoleRef partyId(String partyId) { + this.partyId = partyId; + return this; + } + + /** + * The identifier of the engaged party that is linked to the PartyRole object. + * @return partyId + */ + + @Schema(name = "partyId", description = "The identifier of the engaged party that is linked to the PartyRole object.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyId") + public String getPartyId() { + return partyId; + } + + public void setPartyId(String partyId) { + this.partyId = partyId; + } + + public PartyRoleRef partyName(String partyName) { + this.partyName = partyName; + return this; + } + + /** + * The name of the engaged party that is linked to the PartyRole object. + * @return partyName + */ + + @Schema(name = "partyName", description = "The name of the engaged party that is linked to the PartyRole object.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyName") + public String getPartyName() { + return partyName; + } + + public void setPartyName(String partyName) { + this.partyName = partyName; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PartyRoleRef partyRoleRef = (PartyRoleRef) o; + return Objects.equals(this.atType, partyRoleRef.atType) && + Objects.equals(this.atBaseType, partyRoleRef.atBaseType) && + Objects.equals(this.atSchemaLocation, partyRoleRef.atSchemaLocation) && + Objects.equals(this.href, partyRoleRef.href) && + Objects.equals(this.id, partyRoleRef.id) && + Objects.equals(this.name, partyRoleRef.name) && + Objects.equals(this.atReferredType, partyRoleRef.atReferredType) && + Objects.equals(this.partyId, partyRoleRef.partyId) && + Objects.equals(this.partyName, partyRoleRef.partyName); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, partyId, partyName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PartyRoleRef {\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(" partyId: ").append(toIndentedString(partyId)).append("\n"); + sb.append(" partyName: ").append(toIndentedString(partyName)).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/PartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java new file mode 100644 index 0000000..86c0b09 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java @@ -0,0 +1,291 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PartyRoleRefFVO + */ + + +@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 PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String partyId; + + private String partyName; + + public PartyRoleRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PartyRoleRefFVO(String atType) { + this.atType = atType; + } + + public PartyRoleRefFVO 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 PartyRoleRefFVO 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 PartyRoleRefFVO 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 PartyRoleRefFVO 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 PartyRoleRefFVO 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 PartyRoleRefFVO 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 PartyRoleRefFVO 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; + } + + public PartyRoleRefFVO partyId(String partyId) { + this.partyId = partyId; + return this; + } + + /** + * The identifier of the engaged party that is linked to the PartyRole object. + * @return partyId + */ + + @Schema(name = "partyId", description = "The identifier of the engaged party that is linked to the PartyRole object.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyId") + public String getPartyId() { + return partyId; + } + + public void setPartyId(String partyId) { + this.partyId = partyId; + } + + public PartyRoleRefFVO partyName(String partyName) { + this.partyName = partyName; + return this; + } + + /** + * The name of the engaged party that is linked to the PartyRole object. + * @return partyName + */ + + @Schema(name = "partyName", description = "The name of the engaged party that is linked to the PartyRole object.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyName") + public String getPartyName() { + return partyName; + } + + public void setPartyName(String partyName) { + this.partyName = partyName; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PartyRoleRefFVO partyRoleRefFVO = (PartyRoleRefFVO) o; + return Objects.equals(this.atType, partyRoleRefFVO.atType) && + Objects.equals(this.atBaseType, partyRoleRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, partyRoleRefFVO.atSchemaLocation) && + Objects.equals(this.href, partyRoleRefFVO.href) && + Objects.equals(this.id, partyRoleRefFVO.id) && + Objects.equals(this.name, partyRoleRefFVO.name) && + Objects.equals(this.atReferredType, partyRoleRefFVO.atReferredType) && + Objects.equals(this.partyId, partyRoleRefFVO.partyId) && + Objects.equals(this.partyName, partyRoleRefFVO.partyName); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, partyId, partyName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PartyRoleRefFVO {\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(" partyId: ").append(toIndentedString(partyId)).append("\n"); + sb.append(" partyName: ").append(toIndentedString(partyName)).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/PartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java new file mode 100644 index 0000000..b31f35c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java @@ -0,0 +1,291 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PartyRoleRefMVO + */ + + +@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 PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String partyId; + + private String partyName; + + public PartyRoleRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PartyRoleRefMVO(String atType) { + this.atType = atType; + } + + public PartyRoleRefMVO 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 PartyRoleRefMVO 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 PartyRoleRefMVO 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 PartyRoleRefMVO 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 PartyRoleRefMVO 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 PartyRoleRefMVO 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 PartyRoleRefMVO 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; + } + + public PartyRoleRefMVO partyId(String partyId) { + this.partyId = partyId; + return this; + } + + /** + * The identifier of the engaged party that is linked to the PartyRole object. + * @return partyId + */ + + @Schema(name = "partyId", description = "The identifier of the engaged party that is linked to the PartyRole object.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyId") + public String getPartyId() { + return partyId; + } + + public void setPartyId(String partyId) { + this.partyId = partyId; + } + + public PartyRoleRefMVO partyName(String partyName) { + this.partyName = partyName; + return this; + } + + /** + * The name of the engaged party that is linked to the PartyRole object. + * @return partyName + */ + + @Schema(name = "partyName", description = "The name of the engaged party that is linked to the PartyRole object.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyName") + public String getPartyName() { + return partyName; + } + + public void setPartyName(String partyName) { + this.partyName = partyName; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PartyRoleRefMVO partyRoleRefMVO = (PartyRoleRefMVO) o; + return Objects.equals(this.atType, partyRoleRefMVO.atType) && + Objects.equals(this.atBaseType, partyRoleRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, partyRoleRefMVO.atSchemaLocation) && + Objects.equals(this.href, partyRoleRefMVO.href) && + Objects.equals(this.id, partyRoleRefMVO.id) && + Objects.equals(this.name, partyRoleRefMVO.name) && + Objects.equals(this.atReferredType, partyRoleRefMVO.atReferredType) && + Objects.equals(this.partyId, partyRoleRefMVO.partyId) && + Objects.equals(this.partyName, partyRoleRefMVO.partyName); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, partyId, partyName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PartyRoleRefMVO {\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(" partyId: ").append(toIndentedString(partyId)).append("\n"); + sb.append(" partyName: ").append(toIndentedString(partyName)).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/PatchMeasurementCollectionJob200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java new file mode 100644 index 0000000..16c3b48 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java @@ -0,0 +1,43 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AdministrativeState; +import org.openapitools.model.DataAccessEndpoint; +import org.openapitools.model.DataFilterMap; +import org.openapitools.model.ExecutionStateType; +import org.openapitools.model.FileTransferData; +import org.openapitools.model.Granularity; +import org.openapitools.model.MeasurementCollectionJob; +import org.openapitools.model.MonitoredClassCriteria; +import org.openapitools.model.MonitoredInstancesCriteria; +import org.openapitools.model.PerformanceIndicatorGroupSpecification; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.openapitools.model.ReportingPeriod; +import org.openapitools.model.ScheduleDefinition; +import org.openapitools.model.TrackingRecord; +import org.springframework.format.annotation.DateTimeFormat; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PatchMeasurementCollectionJob200Response { +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java new file mode 100644 index 0000000..5bc3da0 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java @@ -0,0 +1,28 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.PerformanceIndicatorGroupSpecification; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PatchPerformanceIndicatorGroupSpecification200Response { +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java new file mode 100644 index 0000000..dd36f58 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java @@ -0,0 +1,32 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationship; +import org.openapitools.model.PerformanceIndicatorSpecification; +import org.openapitools.model.TimePeriod; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PatchPerformanceIndicatorSpecification200Response { +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java new file mode 100644 index 0000000..33fcc62 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -0,0 +1,280 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorGroupSpecification + */ + + +@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 PerformanceIndicatorGroupSpecification implements PatchPerformanceIndicatorGroupSpecification200Response, PerformanceIndicatorGroupSpecificationRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String groupCategory; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + + public PerformanceIndicatorGroupSpecification() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecification(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecification groupCategory(String groupCategory) { + this.groupCategory = groupCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorGroupSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return groupCategory + */ + + @Schema(name = "groupCategory", description = "A grouping or set of PerformanceIndicatorGroupSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("groupCategory") + public String getGroupCategory() { + return groupCategory; + } + + public void setGroupCategory(String groupCategory) { + this.groupCategory = groupCategory; + } + + public PerformanceIndicatorGroupSpecification performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecification addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValue> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecification = (PerformanceIndicatorGroupSpecification) o; + return Objects.equals(this.atType, performanceIndicatorGroupSpecification.atType) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecification.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecification.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorGroupSpecification.href) && + Objects.equals(this.id, performanceIndicatorGroupSpecification.id) && + Objects.equals(this.name, performanceIndicatorGroupSpecification.name) && + Objects.equals(this.groupCategory, performanceIndicatorGroupSpecification.groupCategory) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecification.performanceIndicatorSpecification); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, groupCategory, performanceIndicatorSpecification); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecification {\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(" groupCategory: ").append(toIndentedString(groupCategory)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/PerformanceIndicatorGroupSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java new file mode 100644 index 0000000..54f2467 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java @@ -0,0 +1,234 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorGroupSpecificationFVO + */ + + +@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 PerformanceIndicatorGroupSpecificationFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String name; + + private String groupCategory; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification = new ArrayList<>(); + + public PerformanceIndicatorGroupSpecificationFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationFVO(String atType, String name, String groupCategory) { + this.atType = atType; + this.name = name; + this.groupCategory = groupCategory; + } + + public PerformanceIndicatorGroupSpecificationFVO 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 PerformanceIndicatorGroupSpecificationFVO 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 PerformanceIndicatorGroupSpecificationFVO 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 PerformanceIndicatorGroupSpecificationFVO name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged. + * @return name + */ + @NotNull + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecificationFVO groupCategory(String groupCategory) { + this.groupCategory = groupCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorGroupSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return groupCategory + */ + @NotNull + @Schema(name = "groupCategory", description = "A grouping or set of PerformanceIndicatorGroupSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("groupCategory") + public String getGroupCategory() { + return groupCategory; + } + + public void setGroupCategory(String groupCategory) { + this.groupCategory = groupCategory; + } + + public PerformanceIndicatorGroupSpecificationFVO performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecificationFVO addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValueFVO performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorGroupSpecificationFVO performanceIndicatorGroupSpecificationFVO = (PerformanceIndicatorGroupSpecificationFVO) o; + return Objects.equals(this.atType, performanceIndicatorGroupSpecificationFVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationFVO.atSchemaLocation) && + Objects.equals(this.name, performanceIndicatorGroupSpecificationFVO.name) && + Objects.equals(this.groupCategory, performanceIndicatorGroupSpecificationFVO.groupCategory) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationFVO.performanceIndicatorSpecification); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, name, groupCategory, performanceIndicatorSpecification); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationFVO {\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(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" groupCategory: ").append(toIndentedString(groupCategory)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/PerformanceIndicatorGroupSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java new file mode 100644 index 0000000..fdc4da6 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java @@ -0,0 +1,256 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorGroupSpecificationMVO + */ + + +@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 PerformanceIndicatorGroupSpecificationMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + private String name; + + private String groupCategory; + + @Valid + private List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification = new ArrayList<>(); + + public PerformanceIndicatorGroupSpecificationMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationMVO(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorGroupSpecificationMVO 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 PerformanceIndicatorGroupSpecificationMVO 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 PerformanceIndicatorGroupSpecificationMVO 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 PerformanceIndicatorGroupSpecificationMVO 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 PerformanceIndicatorGroupSpecificationMVO name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorGroupSpecificationMVO groupCategory(String groupCategory) { + this.groupCategory = groupCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorGroupSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return groupCategory + */ + + @Schema(name = "groupCategory", description = "A grouping or set of PerformanceIndicatorGroupSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("groupCategory") + public String getGroupCategory() { + return groupCategory; + } + + public void setGroupCategory(String groupCategory) { + this.groupCategory = groupCategory; + } + + public PerformanceIndicatorGroupSpecificationMVO performanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + public PerformanceIndicatorGroupSpecificationMVO addPerformanceIndicatorSpecificationItem(PerformanceIndicatorSpecificationRefOrValueMVO performanceIndicatorSpecificationItem) { + if (this.performanceIndicatorSpecification == null) { + this.performanceIndicatorSpecification = new ArrayList<>(); + } + this.performanceIndicatorSpecification.add(performanceIndicatorSpecificationItem); + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorGroupSpecificationMVO performanceIndicatorGroupSpecificationMVO = (PerformanceIndicatorGroupSpecificationMVO) o; + return Objects.equals(this.atType, performanceIndicatorGroupSpecificationMVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationMVO.atSchemaLocation) && + Objects.equals(this.id, performanceIndicatorGroupSpecificationMVO.id) && + Objects.equals(this.name, performanceIndicatorGroupSpecificationMVO.name) && + Objects.equals(this.groupCategory, performanceIndicatorGroupSpecificationMVO.groupCategory) && + Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationMVO.performanceIndicatorSpecification); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, name, groupCategory, performanceIndicatorSpecification); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationMVO {\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(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" groupCategory: ").append(toIndentedString(groupCategory)).append("\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).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/PerformanceIndicatorGroupSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java new file mode 100644 index 0000000..8986b70 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java @@ -0,0 +1,270 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorGroupSpecificationRef + */ + + +@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 PerformanceIndicatorGroupSpecificationRef implements PerformanceIndicatorGroupSpecificationRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PerformanceIndicatorGroupSpecificationRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorGroupSpecificationRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PerformanceIndicatorGroupSpecificationRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef 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; + } + + public PerformanceIndicatorGroupSpecificationRef version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator group specification + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator group specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorGroupSpecificationRef performanceIndicatorGroupSpecificationRef = (PerformanceIndicatorGroupSpecificationRef) o; + return Objects.equals(this.atType, performanceIndicatorGroupSpecificationRef.atType) && + Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationRef.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationRef.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorGroupSpecificationRef.href) && + Objects.equals(this.id, performanceIndicatorGroupSpecificationRef.id) && + Objects.equals(this.name, performanceIndicatorGroupSpecificationRef.name) && + Objects.equals(this.atReferredType, performanceIndicatorGroupSpecificationRef.atReferredType) && + Objects.equals(this.version, performanceIndicatorGroupSpecificationRef.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupSpecificationRef {\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(" version: ").append(toIndentedString(version)).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/PerformanceIndicatorGroupSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java new file mode 100644 index 0000000..33e9fae --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java @@ -0,0 +1,40 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.PerformanceIndicatorGroupSpecification; +import org.openapitools.model.PerformanceIndicatorGroupSpecificationRef; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PerformanceIndicatorGroupSpecification.class, name = "PerformanceIndicatorGroupSpecification"), + @JsonSubTypes.Type(value = PerformanceIndicatorGroupSpecificationRef.class, name = "PerformanceIndicatorGroupSpecificationRef") +}) + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PerformanceIndicatorGroupSpecificationRefOrValue { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java new file mode 100644 index 0000000..67b2d2a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java @@ -0,0 +1,146 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.PerformanceIndicatorGroupSpecificationRefOrValue; +import org.openapitools.model.PerformanceIndicatorValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A value of a performance indicator. + */ + +@Schema(name = "PerformanceIndicatorGroupValue", description = "A value of a performance indicator.") +@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 PerformanceIndicatorGroupValue { + + private PerformanceIndicatorGroupSpecificationRefOrValue performanceIndicatorGroupSpecification; + + @Valid + private List<@Valid PerformanceIndicatorValue> observedGroupValue = new ArrayList<>(); + + private Object tag; + + public PerformanceIndicatorGroupValue performanceIndicatorGroupSpecification(PerformanceIndicatorGroupSpecificationRefOrValue performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + return this; + } + + /** + * Get performanceIndicatorGroupSpecification + * @return performanceIndicatorGroupSpecification + */ + @Valid + @Schema(name = "performanceIndicatorGroupSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupSpecification") + public PerformanceIndicatorGroupSpecificationRefOrValue getPerformanceIndicatorGroupSpecification() { + return performanceIndicatorGroupSpecification; + } + + public void setPerformanceIndicatorGroupSpecification(PerformanceIndicatorGroupSpecificationRefOrValue performanceIndicatorGroupSpecification) { + this.performanceIndicatorGroupSpecification = performanceIndicatorGroupSpecification; + } + + public PerformanceIndicatorGroupValue observedGroupValue(List<@Valid PerformanceIndicatorValue> observedGroupValue) { + this.observedGroupValue = observedGroupValue; + return this; + } + + public PerformanceIndicatorGroupValue addObservedGroupValueItem(PerformanceIndicatorValue observedGroupValueItem) { + if (this.observedGroupValue == null) { + this.observedGroupValue = new ArrayList<>(); + } + this.observedGroupValue.add(observedGroupValueItem); + return this; + } + + /** + * The measurement group (array) values + * @return observedGroupValue + */ + @Valid @Size(min = 1) + @Schema(name = "observedGroupValue", description = "The measurement group (array) values", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("observedGroupValue") + public List<@Valid PerformanceIndicatorValue> getObservedGroupValue() { + return observedGroupValue; + } + + public void setObservedGroupValue(List<@Valid PerformanceIndicatorValue> observedGroupValue) { + this.observedGroupValue = observedGroupValue; + } + + public PerformanceIndicatorGroupValue tag(Object tag) { + this.tag = tag; + return this; + } + + /** + * The optional tag object attached to this observed group value + * @return tag + */ + + @Schema(name = "tag", description = "The optional tag object attached to this observed group value", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("tag") + public Object getTag() { + return tag; + } + + public void setTag(Object tag) { + this.tag = tag; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorGroupValue performanceIndicatorGroupValue = (PerformanceIndicatorGroupValue) o; + return Objects.equals(this.performanceIndicatorGroupSpecification, performanceIndicatorGroupValue.performanceIndicatorGroupSpecification) && + Objects.equals(this.observedGroupValue, performanceIndicatorGroupValue.observedGroupValue) && + Objects.equals(this.tag, performanceIndicatorGroupValue.tag); + } + + @Override + public int hashCode() { + return Objects.hash(performanceIndicatorGroupSpecification, observedGroupValue, tag); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorGroupValue {\n"); + sb.append(" performanceIndicatorGroupSpecification: ").append(toIndentedString(performanceIndicatorGroupSpecification)).append("\n"); + sb.append(" observedGroupValue: ").append(toIndentedString(observedGroupValue)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).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/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java new file mode 100644 index 0000000..019514a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecRelationship + */ + + +@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 PerformanceIndicatorSpecRelationship { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String relationshipType; + + private String role; + + private TimePeriod validFor; + + public PerformanceIndicatorSpecRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecRelationship(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * + * @return relationshipType + */ + + @Schema(name = "relationshipType", description = "", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relationshipType") + public String getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(String relationshipType) { + this.relationshipType = relationshipType; + } + + public PerformanceIndicatorSpecRelationship role(String role) { + this.role = role; + return this; + } + + /** + * The association role for this service specification + * @return role + */ + + @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public PerformanceIndicatorSpecRelationship validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationship = (PerformanceIndicatorSpecRelationship) o; + return Objects.equals(this.atType, performanceIndicatorSpecRelationship.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationship.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecRelationship.href) && + Objects.equals(this.id, performanceIndicatorSpecRelationship.id) && + Objects.equals(this.relationshipType, performanceIndicatorSpecRelationship.relationshipType) && + Objects.equals(this.role, performanceIndicatorSpecRelationship.role) && + Objects.equals(this.validFor, performanceIndicatorSpecRelationship.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, role, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/PerformanceIndicatorSpecRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java new file mode 100644 index 0000000..2638a21 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java @@ -0,0 +1,270 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecRelationshipFVO + */ + + +@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 PerformanceIndicatorSpecRelationshipFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String relationshipType; + + private String role; + + private TimePeriod validFor; + + public PerformanceIndicatorSpecRelationshipFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecRelationshipFVO(String atType, String relationshipType, TimePeriod validFor) { + this.atType = atType; + this.relationshipType = relationshipType; + this.validFor = validFor; + } + + public PerformanceIndicatorSpecRelationshipFVO 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 PerformanceIndicatorSpecRelationshipFVO 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 PerformanceIndicatorSpecRelationshipFVO 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 PerformanceIndicatorSpecRelationshipFVO 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 PerformanceIndicatorSpecRelationshipFVO 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 PerformanceIndicatorSpecRelationshipFVO relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", description = "", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("relationshipType") + public String getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(String relationshipType) { + this.relationshipType = relationshipType; + } + + public PerformanceIndicatorSpecRelationshipFVO role(String role) { + this.role = role; + return this; + } + + /** + * The association role for this service specification + * @return role + */ + + @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public PerformanceIndicatorSpecRelationshipFVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @NotNull @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecRelationshipFVO performanceIndicatorSpecRelationshipFVO = (PerformanceIndicatorSpecRelationshipFVO) o; + return Objects.equals(this.atType, performanceIndicatorSpecRelationshipFVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecRelationshipFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationshipFVO.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecRelationshipFVO.href) && + Objects.equals(this.id, performanceIndicatorSpecRelationshipFVO.id) && + Objects.equals(this.relationshipType, performanceIndicatorSpecRelationshipFVO.relationshipType) && + Objects.equals(this.role, performanceIndicatorSpecRelationshipFVO.role) && + Objects.equals(this.validFor, performanceIndicatorSpecRelationshipFVO.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, role, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecRelationshipFVO {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/PerformanceIndicatorSpecRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java new file mode 100644 index 0000000..b7b1e0c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java @@ -0,0 +1,268 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecRelationshipMVO + */ + + +@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 PerformanceIndicatorSpecRelationshipMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String relationshipType; + + private String role; + + private TimePeriod validFor; + + public PerformanceIndicatorSpecRelationshipMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecRelationshipMVO(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorSpecRelationshipMVO 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 PerformanceIndicatorSpecRelationshipMVO 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 PerformanceIndicatorSpecRelationshipMVO 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 PerformanceIndicatorSpecRelationshipMVO 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 PerformanceIndicatorSpecRelationshipMVO 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 PerformanceIndicatorSpecRelationshipMVO relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * + * @return relationshipType + */ + + @Schema(name = "relationshipType", description = "", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relationshipType") + public String getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(String relationshipType) { + this.relationshipType = relationshipType; + } + + public PerformanceIndicatorSpecRelationshipMVO role(String role) { + this.role = role; + return this; + } + + /** + * The association role for this service specification + * @return role + */ + + @Schema(name = "role", description = "The association role for this service specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public PerformanceIndicatorSpecRelationshipMVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecRelationshipMVO performanceIndicatorSpecRelationshipMVO = (PerformanceIndicatorSpecRelationshipMVO) o; + return Objects.equals(this.atType, performanceIndicatorSpecRelationshipMVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecRelationshipMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationshipMVO.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecRelationshipMVO.href) && + Objects.equals(this.id, performanceIndicatorSpecRelationshipMVO.id) && + Objects.equals(this.relationshipType, performanceIndicatorSpecRelationshipMVO.relationshipType) && + Objects.equals(this.role, performanceIndicatorSpecRelationshipMVO.role) && + Objects.equals(this.validFor, performanceIndicatorSpecRelationshipMVO.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, role, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecRelationshipMVO {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java new file mode 100644 index 0000000..3f6f8c3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -0,0 +1,476 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationship; +import org.openapitools.model.TimePeriod; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecification + */ + + +@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 PerformanceIndicatorSpecification implements PatchPerformanceIndicatorSpecification200Response, PerformanceIndicatorSpecificationRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String description; + + private String perspective; + + private String indicatorCategory; + + private IndicatorType indicatorType; + + private String derivationAlgorithm; + + private String derivationMethod; + + private TimePeriod validFor; + + private CollectionType collectionType; + + private String indicatorUnit; + + @Valid + private List performanceIndicatorSpecRelationship = new ArrayList<>(); + + public PerformanceIndicatorSpecification() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecification(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecification description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecification perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecification indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecification indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecification derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecification derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecification validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecification collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecification indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecification performanceIndicatorSpecRelationship(List performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecification addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecification performanceIndicatorSpecification = (PerformanceIndicatorSpecification) o; + return Objects.equals(this.atType, performanceIndicatorSpecification.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecification.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecification.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecification.href) && + Objects.equals(this.id, performanceIndicatorSpecification.id) && + Objects.equals(this.name, performanceIndicatorSpecification.name) && + Objects.equals(this.description, performanceIndicatorSpecification.description) && + Objects.equals(this.perspective, performanceIndicatorSpecification.perspective) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecification.indicatorCategory) && + Objects.equals(this.indicatorType, performanceIndicatorSpecification.indicatorType) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecification.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecification.derivationMethod) && + Objects.equals(this.validFor, performanceIndicatorSpecification.validFor) && + Objects.equals(this.collectionType, performanceIndicatorSpecification.collectionType) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecification.indicatorUnit) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecification.performanceIndicatorSpecRelationship); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecification {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).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/PerformanceIndicatorSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java new file mode 100644 index 0000000..d5ca168 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java @@ -0,0 +1,481 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationshipFVO; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecificationFVO + */ + + +@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 PerformanceIndicatorSpecificationFVO implements PerformanceIndicatorSpecificationRefOrValueFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String description; + + private String perspective; + + private String indicatorCategory; + + private IndicatorType indicatorType; + + private String derivationAlgorithm; + + private String derivationMethod; + + private TimePeriod validFor; + + private CollectionType collectionType; + + private String indicatorUnit; + + @Valid + private List performanceIndicatorSpecRelationship = new ArrayList<>(); + + public PerformanceIndicatorSpecificationFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationFVO(String atType, String name, String indicatorCategory, IndicatorType indicatorType, CollectionType collectionType, String indicatorUnit) { + this.atType = atType; + this.name = name; + this.indicatorCategory = indicatorCategory; + this.indicatorType = indicatorType; + this.collectionType = collectionType; + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationFVO 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 PerformanceIndicatorSpecificationFVO 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 PerformanceIndicatorSpecificationFVO 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 PerformanceIndicatorSpecificationFVO 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 PerformanceIndicatorSpecificationFVO 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 PerformanceIndicatorSpecificationFVO name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + @NotNull + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationFVO description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationFVO perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationFVO indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + @NotNull + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationFVO indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @NotNull @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationFVO derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationFVO derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationFVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationFVO collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @NotNull @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationFVO indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + @NotNull + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationFVO performanceIndicatorSpecRelationship(List performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationFVO addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationshipFVO performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecificationFVO performanceIndicatorSpecificationFVO = (PerformanceIndicatorSpecificationFVO) o; + return Objects.equals(this.atType, performanceIndicatorSpecificationFVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationFVO.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecificationFVO.href) && + Objects.equals(this.id, performanceIndicatorSpecificationFVO.id) && + Objects.equals(this.name, performanceIndicatorSpecificationFVO.name) && + Objects.equals(this.description, performanceIndicatorSpecificationFVO.description) && + Objects.equals(this.perspective, performanceIndicatorSpecificationFVO.perspective) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationFVO.indicatorCategory) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationFVO.indicatorType) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationFVO.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationFVO.derivationMethod) && + Objects.equals(this.validFor, performanceIndicatorSpecificationFVO.validFor) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationFVO.collectionType) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationFVO.indicatorUnit) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationFVO.performanceIndicatorSpecRelationship); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationFVO {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).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/PerformanceIndicatorSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java new file mode 100644 index 0000000..0c410de --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java @@ -0,0 +1,476 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationshipMVO; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecificationMVO + */ + + +@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 PerformanceIndicatorSpecificationMVO implements PerformanceIndicatorSpecificationRefOrValueMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String description; + + private String perspective; + + private String indicatorCategory; + + private IndicatorType indicatorType; + + private String derivationAlgorithm; + + private String derivationMethod; + + private TimePeriod validFor; + + private CollectionType collectionType; + + private String indicatorUnit; + + @Valid + private List performanceIndicatorSpecRelationship = new ArrayList<>(); + + public PerformanceIndicatorSpecificationMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationMVO(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorSpecificationMVO 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 PerformanceIndicatorSpecificationMVO 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 PerformanceIndicatorSpecificationMVO 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 PerformanceIndicatorSpecificationMVO 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 PerformanceIndicatorSpecificationMVO 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 PerformanceIndicatorSpecificationMVO name(String name) { + this.name = name; + return this; + } + + /** + * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. + * @return name + */ + + @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PerformanceIndicatorSpecificationMVO description(String description) { + this.description = description; + return this; + } + + /** + * A narrative that explains in detail what the PerformanceIndicatorSpecification is. + * @return description + */ + + @Schema(name = "description", description = "A narrative that explains in detail what the PerformanceIndicatorSpecification is.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceIndicatorSpecificationMVO perspective(String perspective) { + this.perspective = perspective; + return this; + } + + /** + * The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation. + * @return perspective + */ + + @Schema(name = "perspective", description = "The point of view for the PerformanceIndicatorSpecification, such as a single user instance or aggregation.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("perspective") + public String getPerspective() { + return perspective; + } + + public void setPerspective(String perspective) { + this.perspective = perspective; + } + + public PerformanceIndicatorSpecificationMVO indicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + return this; + } + + /** + * A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent. + * @return indicatorCategory + */ + + @Schema(name = "indicatorCategory", description = "A grouping or set of PerformanceIndicatorSpecifications that are classified together because of common characteristics, such as technology specific, service specific, or technology/service independent.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorCategory") + public String getIndicatorCategory() { + return indicatorCategory; + } + + public void setIndicatorCategory(String indicatorCategory) { + this.indicatorCategory = indicatorCategory; + } + + public PerformanceIndicatorSpecificationMVO indicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + return this; + } + + /** + * Get indicatorType + * @return indicatorType + */ + @Valid + @Schema(name = "indicatorType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorType") + public IndicatorType getIndicatorType() { + return indicatorType; + } + + public void setIndicatorType(IndicatorType indicatorType) { + this.indicatorType = indicatorType; + } + + public PerformanceIndicatorSpecificationMVO derivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + return this; + } + + /** + * A step-by-step procedure used to calculate the value of PerformanceIndicator. + * @return derivationAlgorithm + */ + + @Schema(name = "derivationAlgorithm", description = "A step-by-step procedure used to calculate the value of PerformanceIndicator.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationAlgorithm") + public String getDerivationAlgorithm() { + return derivationAlgorithm; + } + + public void setDerivationAlgorithm(String derivationAlgorithm) { + this.derivationAlgorithm = derivationAlgorithm; + } + + public PerformanceIndicatorSpecificationMVO derivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + return this; + } + + /** + * For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth. + * @return derivationMethod + */ + + @Schema(name = "derivationMethod", description = "For simple calculations, the method used to calculate the value of a PerformanceIndicator, such as average, minimum, maximum, sum and so forth.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("derivationMethod") + public String getDerivationMethod() { + return derivationMethod; + } + + public void setDerivationMethod(String derivationMethod) { + this.derivationMethod = derivationMethod; + } + + public PerformanceIndicatorSpecificationMVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceIndicatorSpecificationMVO collectionType(CollectionType collectionType) { + this.collectionType = collectionType; + return this; + } + + /** + * Get collectionType + * @return collectionType + */ + @Valid + @Schema(name = "collectionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("collectionType") + public CollectionType getCollectionType() { + return collectionType; + } + + public void setCollectionType(CollectionType collectionType) { + this.collectionType = collectionType; + } + + public PerformanceIndicatorSpecificationMVO indicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + return this; + } + + /** + * The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc. + * @return indicatorUnit + */ + + @Schema(name = "indicatorUnit", description = "The unit by which the indicator is measured. For example, seconds, KBs, rate per second, etc.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("indicatorUnit") + public String getIndicatorUnit() { + return indicatorUnit; + } + + public void setIndicatorUnit(String indicatorUnit) { + this.indicatorUnit = indicatorUnit; + } + + public PerformanceIndicatorSpecificationMVO performanceIndicatorSpecRelationship(List performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + return this; + } + + public PerformanceIndicatorSpecificationMVO addPerformanceIndicatorSpecRelationshipItem(PerformanceIndicatorSpecRelationshipMVO performanceIndicatorSpecRelationshipItem) { + if (this.performanceIndicatorSpecRelationship == null) { + this.performanceIndicatorSpecRelationship = new ArrayList<>(); + } + this.performanceIndicatorSpecRelationship.add(performanceIndicatorSpecRelationshipItem); + return this; + } + + /** + * Get performanceIndicatorSpecRelationship + * @return performanceIndicatorSpecRelationship + */ + @Valid @Size(min = 0) + @Schema(name = "performanceIndicatorSpecRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecRelationship") + public List getPerformanceIndicatorSpecRelationship() { + return performanceIndicatorSpecRelationship; + } + + public void setPerformanceIndicatorSpecRelationship(List performanceIndicatorSpecRelationship) { + this.performanceIndicatorSpecRelationship = performanceIndicatorSpecRelationship; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecificationMVO performanceIndicatorSpecificationMVO = (PerformanceIndicatorSpecificationMVO) o; + return Objects.equals(this.atType, performanceIndicatorSpecificationMVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationMVO.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecificationMVO.href) && + Objects.equals(this.id, performanceIndicatorSpecificationMVO.id) && + Objects.equals(this.name, performanceIndicatorSpecificationMVO.name) && + Objects.equals(this.description, performanceIndicatorSpecificationMVO.description) && + Objects.equals(this.perspective, performanceIndicatorSpecificationMVO.perspective) && + Objects.equals(this.indicatorCategory, performanceIndicatorSpecificationMVO.indicatorCategory) && + Objects.equals(this.indicatorType, performanceIndicatorSpecificationMVO.indicatorType) && + Objects.equals(this.derivationAlgorithm, performanceIndicatorSpecificationMVO.derivationAlgorithm) && + Objects.equals(this.derivationMethod, performanceIndicatorSpecificationMVO.derivationMethod) && + Objects.equals(this.validFor, performanceIndicatorSpecificationMVO.validFor) && + Objects.equals(this.collectionType, performanceIndicatorSpecificationMVO.collectionType) && + Objects.equals(this.indicatorUnit, performanceIndicatorSpecificationMVO.indicatorUnit) && + Objects.equals(this.performanceIndicatorSpecRelationship, performanceIndicatorSpecificationMVO.performanceIndicatorSpecRelationship); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationMVO {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); + sb.append(" indicatorCategory: ").append(toIndentedString(indicatorCategory)).append("\n"); + sb.append(" indicatorType: ").append(toIndentedString(indicatorType)).append("\n"); + sb.append(" derivationAlgorithm: ").append(toIndentedString(derivationAlgorithm)).append("\n"); + sb.append(" derivationMethod: ").append(toIndentedString(derivationMethod)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" collectionType: ").append(toIndentedString(collectionType)).append("\n"); + sb.append(" indicatorUnit: ").append(toIndentedString(indicatorUnit)).append("\n"); + sb.append(" performanceIndicatorSpecRelationship: ").append(toIndentedString(performanceIndicatorSpecRelationship)).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/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java new file mode 100644 index 0000000..b4a0a02 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -0,0 +1,271 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecificationRef + */ + + +@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 PerformanceIndicatorSpecificationRef implements PerformanceIndicatorSpecificationRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PerformanceIndicatorSpecificationRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PerformanceIndicatorSpecificationRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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; + } + + public PerformanceIndicatorSpecificationRef version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator specification + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationRef = (PerformanceIndicatorSpecificationRef) o; + return Objects.equals(this.atType, performanceIndicatorSpecificationRef.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRef.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRef.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecificationRef.href) && + Objects.equals(this.id, performanceIndicatorSpecificationRef.id) && + Objects.equals(this.name, performanceIndicatorSpecificationRef.name) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRef.atReferredType) && + Objects.equals(this.version, performanceIndicatorSpecificationRef.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRef {\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(" version: ").append(toIndentedString(version)).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/PerformanceIndicatorSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java new file mode 100644 index 0000000..74f2412 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java @@ -0,0 +1,271 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecificationRefFVO + */ + + +@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 PerformanceIndicatorSpecificationRefFVO implements PerformanceIndicatorSpecificationRefOrValueFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PerformanceIndicatorSpecificationRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationRefFVO(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorSpecificationRefFVO 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 PerformanceIndicatorSpecificationRefFVO 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 PerformanceIndicatorSpecificationRefFVO 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 PerformanceIndicatorSpecificationRefFVO 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 PerformanceIndicatorSpecificationRefFVO 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 PerformanceIndicatorSpecificationRefFVO 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 PerformanceIndicatorSpecificationRefFVO 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; + } + + public PerformanceIndicatorSpecificationRefFVO version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator specification + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecificationRefFVO performanceIndicatorSpecificationRefFVO = (PerformanceIndicatorSpecificationRefFVO) o; + return Objects.equals(this.atType, performanceIndicatorSpecificationRefFVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefFVO.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecificationRefFVO.href) && + Objects.equals(this.id, performanceIndicatorSpecificationRefFVO.id) && + Objects.equals(this.name, performanceIndicatorSpecificationRefFVO.name) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefFVO.atReferredType) && + Objects.equals(this.version, performanceIndicatorSpecificationRefFVO.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRefFVO {\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(" version: ").append(toIndentedString(version)).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/PerformanceIndicatorSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java new file mode 100644 index 0000000..30561cf --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java @@ -0,0 +1,271 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceIndicatorSpecificationRefMVO + */ + + +@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 PerformanceIndicatorSpecificationRefMVO implements PerformanceIndicatorSpecificationRefOrValueMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PerformanceIndicatorSpecificationRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceIndicatorSpecificationRefMVO(String atType) { + this.atType = atType; + } + + public PerformanceIndicatorSpecificationRefMVO 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 PerformanceIndicatorSpecificationRefMVO 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 PerformanceIndicatorSpecificationRefMVO 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 PerformanceIndicatorSpecificationRefMVO 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 PerformanceIndicatorSpecificationRefMVO 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 PerformanceIndicatorSpecificationRefMVO 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 PerformanceIndicatorSpecificationRefMVO 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; + } + + public PerformanceIndicatorSpecificationRefMVO version(String version) { + this.version = version; + return this; + } + + /** + * Version of the performance indicator specification + * @return version + */ + + @Schema(name = "version", description = "Version of the performance indicator specification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorSpecificationRefMVO performanceIndicatorSpecificationRefMVO = (PerformanceIndicatorSpecificationRefMVO) o; + return Objects.equals(this.atType, performanceIndicatorSpecificationRefMVO.atType) && + Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefMVO.atSchemaLocation) && + Objects.equals(this.href, performanceIndicatorSpecificationRefMVO.href) && + Objects.equals(this.id, performanceIndicatorSpecificationRefMVO.id) && + Objects.equals(this.name, performanceIndicatorSpecificationRefMVO.name) && + Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefMVO.atReferredType) && + Objects.equals(this.version, performanceIndicatorSpecificationRefMVO.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorSpecificationRefMVO {\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(" version: ").append(toIndentedString(version)).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/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java new file mode 100644 index 0000000..b6d7c01 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -0,0 +1,44 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationship; +import org.openapitools.model.PerformanceIndicatorSpecification; +import org.openapitools.model.PerformanceIndicatorSpecificationRef; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PerformanceIndicatorSpecification.class, name = "PerformanceIndicatorSpecification"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationRef.class, name = "PerformanceIndicatorSpecificationRef") +}) + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PerformanceIndicatorSpecificationRefOrValue { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java new file mode 100644 index 0000000..3409957 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java @@ -0,0 +1,47 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationshipFVO; +import org.openapitools.model.PerformanceIndicatorSpecificationFVO; +import org.openapitools.model.PerformanceIndicatorSpecificationRefFVO; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PerformanceIndicatorSpecificationFVO.class, name = "PerformanceIndicatorSpecification"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationRefFVO.class, name = "PerformanceIndicatorSpecificationRef"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationRefFVO.class, name = "PerformanceIndicatorSpecificationRef_FVO"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationFVO.class, name = "PerformanceIndicatorSpecification_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 interface PerformanceIndicatorSpecificationRefOrValueFVO { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java new file mode 100644 index 0000000..73543ec --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java @@ -0,0 +1,47 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CollectionType; +import org.openapitools.model.IndicatorType; +import org.openapitools.model.PerformanceIndicatorSpecRelationshipMVO; +import org.openapitools.model.PerformanceIndicatorSpecificationMVO; +import org.openapitools.model.PerformanceIndicatorSpecificationRefMVO; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PerformanceIndicatorSpecificationMVO.class, name = "PerformanceIndicatorSpecification"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationRefMVO.class, name = "PerformanceIndicatorSpecificationRef"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationRefMVO.class, name = "PerformanceIndicatorSpecificationRef_MVO"), + @JsonSubTypes.Type(value = PerformanceIndicatorSpecificationMVO.class, name = "PerformanceIndicatorSpecification_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 interface PerformanceIndicatorSpecificationRefOrValueMVO { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java new file mode 100644 index 0000000..7b31561 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java @@ -0,0 +1,133 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A value of a performance indicator. + */ + +@Schema(name = "PerformanceIndicatorValue", description = "A value of a performance indicator.") +@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 PerformanceIndicatorValue { + + private PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecification; + + private String observedValue; + + private Object tag; + + public PerformanceIndicatorValue performanceIndicatorSpecification(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + return this; + } + + /** + * Get performanceIndicatorSpecification + * @return performanceIndicatorSpecification + */ + @Valid + @Schema(name = "performanceIndicatorSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorSpecification") + public PerformanceIndicatorSpecificationRefOrValue getPerformanceIndicatorSpecification() { + return performanceIndicatorSpecification; + } + + public void setPerformanceIndicatorSpecification(PerformanceIndicatorSpecificationRefOrValue performanceIndicatorSpecification) { + this.performanceIndicatorSpecification = performanceIndicatorSpecification; + } + + public PerformanceIndicatorValue observedValue(String observedValue) { + this.observedValue = observedValue; + return this; + } + + /** + * The measurement value + * @return observedValue + */ + + @Schema(name = "observedValue", description = "The measurement value", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("observedValue") + public String getObservedValue() { + return observedValue; + } + + public void setObservedValue(String observedValue) { + this.observedValue = observedValue; + } + + public PerformanceIndicatorValue tag(Object tag) { + this.tag = tag; + return this; + } + + /** + * The optional tag object attached to this observed value + * @return tag + */ + + @Schema(name = "tag", description = "The optional tag object attached to this observed value", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("tag") + public Object getTag() { + return tag; + } + + public void setTag(Object tag) { + this.tag = tag; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceIndicatorValue performanceIndicatorValue = (PerformanceIndicatorValue) o; + return Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorValue.performanceIndicatorSpecification) && + Objects.equals(this.observedValue, performanceIndicatorValue.observedValue) && + Objects.equals(this.tag, performanceIndicatorValue.tag); + } + + @Override + public int hashCode() { + return Objects.hash(performanceIndicatorSpecification, observedValue, tag); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceIndicatorValue {\n"); + sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); + sb.append(" observedValue: ").append(toIndentedString(observedValue)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).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/PerformanceMeasurement.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java new file mode 100644 index 0000000..42b1c25 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java @@ -0,0 +1,339 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.MeasurementCollectionJobRef; +import org.openapitools.model.PerformanceMeasurementRelationship; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurement + */ + +@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 = PerformanceMeasurement.class, name = "PerformanceMeasurement"), + @JsonSubTypes.Type(value = PerformanceMeasurementAtomic.class, name = "PerformanceMeasurementAtomic"), + @JsonSubTypes.Type(value = PerformanceMeasurementGroup.class, name = "PerformanceMeasurementGroup") +}) + +@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 PerformanceMeasurement implements PerformanceMeasurementRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String description; + + private MeasurementCollectionJobRef measurementCollectionJob; + + private TimePeriod validFor; + + @Valid + private List relatedMeasurement = new ArrayList<>(); + + private Object tag; + + public PerformanceMeasurement() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurement(String atType) { + this.atType = atType; + } + + public PerformanceMeasurement 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 PerformanceMeasurement 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 PerformanceMeasurement 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 PerformanceMeasurement 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 PerformanceMeasurement 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 PerformanceMeasurement description(String description) { + this.description = description; + return this; + } + + /** + * A free-text description of the performance measurement + * @return description + */ + + @Schema(name = "description", description = "A free-text description of the performance measurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceMeasurement measurementCollectionJob(MeasurementCollectionJobRef measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + return this; + } + + /** + * Get measurementCollectionJob + * @return measurementCollectionJob + */ + @Valid + @Schema(name = "measurementCollectionJob", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("measurementCollectionJob") + public MeasurementCollectionJobRef getMeasurementCollectionJob() { + return measurementCollectionJob; + } + + public void setMeasurementCollectionJob(MeasurementCollectionJobRef measurementCollectionJob) { + this.measurementCollectionJob = measurementCollectionJob; + } + + public PerformanceMeasurement validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public PerformanceMeasurement relatedMeasurement(List relatedMeasurement) { + this.relatedMeasurement = relatedMeasurement; + return this; + } + + public PerformanceMeasurement addRelatedMeasurementItem(PerformanceMeasurementRelationship relatedMeasurementItem) { + if (this.relatedMeasurement == null) { + this.relatedMeasurement = new ArrayList<>(); + } + this.relatedMeasurement.add(relatedMeasurementItem); + return this; + } + + /** + * related Performance measurements array + * @return relatedMeasurement + */ + @Valid @Size(min = 0) + @Schema(name = "relatedMeasurement", description = "related Performance measurements array", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedMeasurement") + public List getRelatedMeasurement() { + return relatedMeasurement; + } + + public void setRelatedMeasurement(List relatedMeasurement) { + this.relatedMeasurement = relatedMeasurement; + } + + public PerformanceMeasurement tag(Object tag) { + this.tag = tag; + return this; + } + + /** + * The optional tag object attached to this entire measurement + * @return tag + */ + + @Schema(name = "tag", description = "The optional tag object attached to this entire measurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("tag") + public Object getTag() { + return tag; + } + + public void setTag(Object tag) { + this.tag = tag; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurement performanceMeasurement = (PerformanceMeasurement) o; + return Objects.equals(this.atType, performanceMeasurement.atType) && + Objects.equals(this.atBaseType, performanceMeasurement.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceMeasurement.atSchemaLocation) && + Objects.equals(this.href, performanceMeasurement.href) && + Objects.equals(this.id, performanceMeasurement.id) && + Objects.equals(this.description, performanceMeasurement.description) && + Objects.equals(this.measurementCollectionJob, performanceMeasurement.measurementCollectionJob) && + Objects.equals(this.validFor, performanceMeasurement.validFor) && + Objects.equals(this.relatedMeasurement, performanceMeasurement.relatedMeasurement) && + Objects.equals(this.tag, performanceMeasurement.tag); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, description, measurementCollectionJob, validFor, relatedMeasurement, tag); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurement {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" measurementCollectionJob: ").append(toIndentedString(measurementCollectionJob)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" relatedMeasurement: ").append(toIndentedString(relatedMeasurement)).append("\n"); + sb.append(" tag: ").append(toIndentedString(tag)).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/PerformanceMeasurementAtomic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java new file mode 100644 index 0000000..cb172da --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java @@ -0,0 +1,172 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.MeasurementCollectionJobRef; +import org.openapitools.model.PerformanceIndicatorValue; +import org.openapitools.model.PerformanceMeasurement; +import org.openapitools.model.PerformanceMeasurementRelationship; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementAtomic + */ + + +@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 PerformanceMeasurementAtomic extends PerformanceMeasurement { + + @Valid + private List<@Valid PerformanceIndicatorValue> performanceIndicatorValue = new ArrayList<>(); + + public PerformanceMeasurementAtomic() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurementAtomic(String atType) { + super(atType); + } + + public PerformanceMeasurementAtomic performanceIndicatorValue(List<@Valid PerformanceIndicatorValue> performanceIndicatorValue) { + this.performanceIndicatorValue = performanceIndicatorValue; + return this; + } + + public PerformanceMeasurementAtomic addPerformanceIndicatorValueItem(PerformanceIndicatorValue performanceIndicatorValueItem) { + if (this.performanceIndicatorValue == null) { + this.performanceIndicatorValue = new ArrayList<>(); + } + this.performanceIndicatorValue.add(performanceIndicatorValueItem); + return this; + } + + /** + * Get performanceIndicatorValue + * @return performanceIndicatorValue + */ + @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorValue", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorValue") + public List<@Valid PerformanceIndicatorValue> getPerformanceIndicatorValue() { + return performanceIndicatorValue; + } + + public void setPerformanceIndicatorValue(List<@Valid PerformanceIndicatorValue> performanceIndicatorValue) { + this.performanceIndicatorValue = performanceIndicatorValue; + } + + + public PerformanceMeasurementAtomic atType(String atType) { + super.atType(atType); + return this; + } + + public PerformanceMeasurementAtomic atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public PerformanceMeasurementAtomic atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public PerformanceMeasurementAtomic href(String href) { + super.href(href); + return this; + } + + public PerformanceMeasurementAtomic id(String id) { + super.id(id); + return this; + } + + public PerformanceMeasurementAtomic description(String description) { + super.description(description); + return this; + } + + public PerformanceMeasurementAtomic measurementCollectionJob(MeasurementCollectionJobRef measurementCollectionJob) { + super.measurementCollectionJob(measurementCollectionJob); + return this; + } + + public PerformanceMeasurementAtomic validFor(TimePeriod validFor) { + super.validFor(validFor); + return this; + } + + public PerformanceMeasurementAtomic relatedMeasurement(List relatedMeasurement) { + super.relatedMeasurement(relatedMeasurement); + return this; + } + + public PerformanceMeasurementAtomic addRelatedMeasurementItem(PerformanceMeasurementRelationship relatedMeasurementItem) { + super.addRelatedMeasurementItem(relatedMeasurementItem); + return this; + } + + public PerformanceMeasurementAtomic tag(Object tag) { + super.tag(tag); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementAtomic performanceMeasurementAtomic = (PerformanceMeasurementAtomic) o; + return Objects.equals(this.performanceIndicatorValue, performanceMeasurementAtomic.performanceIndicatorValue) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(performanceIndicatorValue, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementAtomic {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" performanceIndicatorValue: ").append(toIndentedString(performanceIndicatorValue)).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/PerformanceMeasurementCollectionReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java new file mode 100644 index 0000000..98ceaf1 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.PerformanceMeasurementCollectionReadyEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementCollectionReadyEvent + */ + + +@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 PerformanceMeasurementCollectionReadyEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private PerformanceMeasurementCollectionReadyEventPayload event; + + public PerformanceMeasurementCollectionReadyEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurementCollectionReadyEvent(String atType) { + this.atType = atType; + } + + public PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public PerformanceMeasurementCollectionReadyEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public PerformanceMeasurementCollectionReadyEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public PerformanceMeasurementCollectionReadyEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public PerformanceMeasurementCollectionReadyEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public PerformanceMeasurementCollectionReadyEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public PerformanceMeasurementCollectionReadyEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent 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 PerformanceMeasurementCollectionReadyEvent event(PerformanceMeasurementCollectionReadyEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public PerformanceMeasurementCollectionReadyEventPayload getEvent() { + return event; + } + + public void setEvent(PerformanceMeasurementCollectionReadyEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementCollectionReadyEvent performanceMeasurementCollectionReadyEvent = (PerformanceMeasurementCollectionReadyEvent) o; + return Objects.equals(this.atType, performanceMeasurementCollectionReadyEvent.atType) && + Objects.equals(this.atBaseType, performanceMeasurementCollectionReadyEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceMeasurementCollectionReadyEvent.atSchemaLocation) && + Objects.equals(this.href, performanceMeasurementCollectionReadyEvent.href) && + Objects.equals(this.id, performanceMeasurementCollectionReadyEvent.id) && + Objects.equals(this.correlationId, performanceMeasurementCollectionReadyEvent.correlationId) && + Objects.equals(this.domain, performanceMeasurementCollectionReadyEvent.domain) && + Objects.equals(this.title, performanceMeasurementCollectionReadyEvent.title) && + Objects.equals(this.description, performanceMeasurementCollectionReadyEvent.description) && + Objects.equals(this.priority, performanceMeasurementCollectionReadyEvent.priority) && + Objects.equals(this.timeOccurred, performanceMeasurementCollectionReadyEvent.timeOccurred) && + Objects.equals(this.source, performanceMeasurementCollectionReadyEvent.source) && + Objects.equals(this.reportingSystem, performanceMeasurementCollectionReadyEvent.reportingSystem) && + Objects.equals(this.relatedParty, performanceMeasurementCollectionReadyEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, performanceMeasurementCollectionReadyEvent.analyticCharacteristic) && + Objects.equals(this.eventId, performanceMeasurementCollectionReadyEvent.eventId) && + Objects.equals(this.eventTime, performanceMeasurementCollectionReadyEvent.eventTime) && + Objects.equals(this.eventType, performanceMeasurementCollectionReadyEvent.eventType) && + Objects.equals(this.event, performanceMeasurementCollectionReadyEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementCollectionReadyEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/PerformanceMeasurementCollectionReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java new file mode 100644 index 0000000..b1c2b9b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.PerformanceMeasurement; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementCollectionReadyEventPayload generic structure + */ + +@Schema(name = "PerformanceMeasurementCollectionReadyEventPayload", description = "PerformanceMeasurementCollectionReadyEventPayload generic structure") +@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 PerformanceMeasurementCollectionReadyEventPayload { + + private PerformanceMeasurement performanceMeasurement; + + public PerformanceMeasurementCollectionReadyEventPayload performanceMeasurement(PerformanceMeasurement performanceMeasurement) { + this.performanceMeasurement = performanceMeasurement; + return this; + } + + /** + * Get performanceMeasurement + * @return performanceMeasurement + */ + @Valid + @Schema(name = "performanceMeasurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceMeasurement") + public PerformanceMeasurement getPerformanceMeasurement() { + return performanceMeasurement; + } + + public void setPerformanceMeasurement(PerformanceMeasurement performanceMeasurement) { + this.performanceMeasurement = performanceMeasurement; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementCollectionReadyEventPayload performanceMeasurementCollectionReadyEventPayload = (PerformanceMeasurementCollectionReadyEventPayload) o; + return Objects.equals(this.performanceMeasurement, performanceMeasurementCollectionReadyEventPayload.performanceMeasurement); + } + + @Override + public int hashCode() { + return Objects.hash(performanceMeasurement); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementCollectionReadyEventPayload {\n"); + sb.append(" performanceMeasurement: ").append(toIndentedString(performanceMeasurement)).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/PerformanceMeasurementCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java new file mode 100644 index 0000000..f54c59f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java @@ -0,0 +1,559 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.EntityRef; +import org.openapitools.model.PerformanceMeasurementCreateEventPayload; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementCreateEvent + */ + + +@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 PerformanceMeasurementCreateEvent { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String correlationId; + + private String domain; + + private String title; + + private String description; + + private String priority; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime timeOccurred; + + private EntityRef source; + + private EntityRef reportingSystem; + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List analyticCharacteristic = new ArrayList<>(); + + private String eventId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime eventTime; + + private String eventType; + + private PerformanceMeasurementCreateEventPayload event; + + public PerformanceMeasurementCreateEvent() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurementCreateEvent(String atType) { + this.atType = atType; + } + + public PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent description(String description) { + this.description = description; + return this; + } + + /** + * An explanation of the event. + * @return description + */ + + @Schema(name = "description", description = "An explanation of the event.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent timeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + return this; + } + + /** + * The time the event occurred. + * @return timeOccurred + */ + @Valid + @Schema(name = "timeOccurred", description = "The time the event occurred.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("timeOccurred") + public OffsetDateTime getTimeOccurred() { + return timeOccurred; + } + + public void setTimeOccurred(OffsetDateTime timeOccurred) { + this.timeOccurred = timeOccurred; + } + + public PerformanceMeasurementCreateEvent source(EntityRef source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + */ + @Valid + @Schema(name = "source", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("source") + public EntityRef getSource() { + return source; + } + + public void setSource(EntityRef source) { + this.source = source; + } + + public PerformanceMeasurementCreateEvent reportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + return this; + } + + /** + * Get reportingSystem + * @return reportingSystem + */ + @Valid + @Schema(name = "reportingSystem", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("reportingSystem") + public EntityRef getReportingSystem() { + return reportingSystem; + } + + public void setReportingSystem(EntityRef reportingSystem) { + this.reportingSystem = reportingSystem; + } + + public PerformanceMeasurementCreateEvent relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public PerformanceMeasurementCreateEvent addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Collection of related parties + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", description = "Collection of related parties", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public PerformanceMeasurementCreateEvent analyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + return this; + } + + public PerformanceMeasurementCreateEvent addAnalyticCharacteristicItem(Characteristic analyticCharacteristicItem) { + if (this.analyticCharacteristic == null) { + this.analyticCharacteristic = new ArrayList<>(); + } + this.analyticCharacteristic.add(analyticCharacteristicItem); + return this; + } + + /** + * Collection of analytic characteristics + * @return analyticCharacteristic + */ + @Valid + @Schema(name = "analyticCharacteristic", description = "Collection of analytic characteristics", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("analyticCharacteristic") + public List getAnalyticCharacteristic() { + return analyticCharacteristic; + } + + public void setAnalyticCharacteristic(List analyticCharacteristic) { + this.analyticCharacteristic = analyticCharacteristic; + } + + public PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent 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 PerformanceMeasurementCreateEvent event(PerformanceMeasurementCreateEventPayload event) { + this.event = event; + return this; + } + + /** + * Get event + * @return event + */ + @Valid + @Schema(name = "event", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("event") + public PerformanceMeasurementCreateEventPayload getEvent() { + return event; + } + + public void setEvent(PerformanceMeasurementCreateEventPayload event) { + this.event = event; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementCreateEvent performanceMeasurementCreateEvent = (PerformanceMeasurementCreateEvent) o; + return Objects.equals(this.atType, performanceMeasurementCreateEvent.atType) && + Objects.equals(this.atBaseType, performanceMeasurementCreateEvent.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceMeasurementCreateEvent.atSchemaLocation) && + Objects.equals(this.href, performanceMeasurementCreateEvent.href) && + Objects.equals(this.id, performanceMeasurementCreateEvent.id) && + Objects.equals(this.correlationId, performanceMeasurementCreateEvent.correlationId) && + Objects.equals(this.domain, performanceMeasurementCreateEvent.domain) && + Objects.equals(this.title, performanceMeasurementCreateEvent.title) && + Objects.equals(this.description, performanceMeasurementCreateEvent.description) && + Objects.equals(this.priority, performanceMeasurementCreateEvent.priority) && + Objects.equals(this.timeOccurred, performanceMeasurementCreateEvent.timeOccurred) && + Objects.equals(this.source, performanceMeasurementCreateEvent.source) && + Objects.equals(this.reportingSystem, performanceMeasurementCreateEvent.reportingSystem) && + Objects.equals(this.relatedParty, performanceMeasurementCreateEvent.relatedParty) && + Objects.equals(this.analyticCharacteristic, performanceMeasurementCreateEvent.analyticCharacteristic) && + Objects.equals(this.eventId, performanceMeasurementCreateEvent.eventId) && + Objects.equals(this.eventTime, performanceMeasurementCreateEvent.eventTime) && + Objects.equals(this.eventType, performanceMeasurementCreateEvent.eventType) && + Objects.equals(this.event, performanceMeasurementCreateEvent.event); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, correlationId, domain, title, description, priority, timeOccurred, source, reportingSystem, relatedParty, analyticCharacteristic, eventId, eventTime, eventType, event); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementCreateEvent {\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(" 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(" timeOccurred: ").append(toIndentedString(timeOccurred)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" reportingSystem: ").append(toIndentedString(reportingSystem)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" analyticCharacteristic: ").append(toIndentedString(analyticCharacteristic)).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(" 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(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/PerformanceMeasurementCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java new file mode 100644 index 0000000..97d5180 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java @@ -0,0 +1,85 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import org.openapitools.model.PerformanceMeasurement; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementCreateEventPayload generic structure + */ + +@Schema(name = "PerformanceMeasurementCreateEventPayload", description = "PerformanceMeasurementCreateEventPayload generic structure") +@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 PerformanceMeasurementCreateEventPayload { + + private PerformanceMeasurement performanceMeasurement; + + public PerformanceMeasurementCreateEventPayload performanceMeasurement(PerformanceMeasurement performanceMeasurement) { + this.performanceMeasurement = performanceMeasurement; + return this; + } + + /** + * Get performanceMeasurement + * @return performanceMeasurement + */ + @Valid + @Schema(name = "performanceMeasurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceMeasurement") + public PerformanceMeasurement getPerformanceMeasurement() { + return performanceMeasurement; + } + + public void setPerformanceMeasurement(PerformanceMeasurement performanceMeasurement) { + this.performanceMeasurement = performanceMeasurement; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementCreateEventPayload performanceMeasurementCreateEventPayload = (PerformanceMeasurementCreateEventPayload) o; + return Objects.equals(this.performanceMeasurement, performanceMeasurementCreateEventPayload.performanceMeasurement); + } + + @Override + public int hashCode() { + return Objects.hash(performanceMeasurement); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementCreateEventPayload {\n"); + sb.append(" performanceMeasurement: ").append(toIndentedString(performanceMeasurement)).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/PerformanceMeasurementGroup.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java new file mode 100644 index 0000000..bc71cf2 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java @@ -0,0 +1,172 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.MeasurementCollectionJobRef; +import org.openapitools.model.PerformanceIndicatorGroupValue; +import org.openapitools.model.PerformanceMeasurement; +import org.openapitools.model.PerformanceMeasurementRelationship; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementGroup + */ + + +@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 PerformanceMeasurementGroup extends PerformanceMeasurement { + + @Valid + private List<@Valid PerformanceIndicatorGroupValue> performanceIndicatorGroupValue = new ArrayList<>(); + + public PerformanceMeasurementGroup() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurementGroup(String atType) { + super(atType); + } + + public PerformanceMeasurementGroup performanceIndicatorGroupValue(List<@Valid PerformanceIndicatorGroupValue> performanceIndicatorGroupValue) { + this.performanceIndicatorGroupValue = performanceIndicatorGroupValue; + return this; + } + + public PerformanceMeasurementGroup addPerformanceIndicatorGroupValueItem(PerformanceIndicatorGroupValue performanceIndicatorGroupValueItem) { + if (this.performanceIndicatorGroupValue == null) { + this.performanceIndicatorGroupValue = new ArrayList<>(); + } + this.performanceIndicatorGroupValue.add(performanceIndicatorGroupValueItem); + return this; + } + + /** + * Get performanceIndicatorGroupValue + * @return performanceIndicatorGroupValue + */ + @Valid @Size(min = 1) + @Schema(name = "performanceIndicatorGroupValue", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("performanceIndicatorGroupValue") + public List<@Valid PerformanceIndicatorGroupValue> getPerformanceIndicatorGroupValue() { + return performanceIndicatorGroupValue; + } + + public void setPerformanceIndicatorGroupValue(List<@Valid PerformanceIndicatorGroupValue> performanceIndicatorGroupValue) { + this.performanceIndicatorGroupValue = performanceIndicatorGroupValue; + } + + + public PerformanceMeasurementGroup atType(String atType) { + super.atType(atType); + return this; + } + + public PerformanceMeasurementGroup atBaseType(String atBaseType) { + super.atBaseType(atBaseType); + return this; + } + + public PerformanceMeasurementGroup atSchemaLocation(String atSchemaLocation) { + super.atSchemaLocation(atSchemaLocation); + return this; + } + + public PerformanceMeasurementGroup href(String href) { + super.href(href); + return this; + } + + public PerformanceMeasurementGroup id(String id) { + super.id(id); + return this; + } + + public PerformanceMeasurementGroup description(String description) { + super.description(description); + return this; + } + + public PerformanceMeasurementGroup measurementCollectionJob(MeasurementCollectionJobRef measurementCollectionJob) { + super.measurementCollectionJob(measurementCollectionJob); + return this; + } + + public PerformanceMeasurementGroup validFor(TimePeriod validFor) { + super.validFor(validFor); + return this; + } + + public PerformanceMeasurementGroup relatedMeasurement(List relatedMeasurement) { + super.relatedMeasurement(relatedMeasurement); + return this; + } + + public PerformanceMeasurementGroup addRelatedMeasurementItem(PerformanceMeasurementRelationship relatedMeasurementItem) { + super.addRelatedMeasurementItem(relatedMeasurementItem); + return this; + } + + public PerformanceMeasurementGroup tag(Object tag) { + super.tag(tag); + return this; + } + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementGroup performanceMeasurementGroup = (PerformanceMeasurementGroup) o; + return Objects.equals(this.performanceIndicatorGroupValue, performanceMeasurementGroup.performanceIndicatorGroupValue) && + super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(performanceIndicatorGroupValue, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementGroup {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" performanceIndicatorGroupValue: ").append(toIndentedString(performanceIndicatorGroupValue)).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/PerformanceMeasurementRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java new file mode 100644 index 0000000..3e9fb79 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java @@ -0,0 +1,270 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementRef + */ + + +@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 PerformanceMeasurementRef implements PerformanceMeasurementRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PerformanceMeasurementRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurementRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PerformanceMeasurementRef 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 PerformanceMeasurementRef 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 PerformanceMeasurementRef 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 PerformanceMeasurementRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PerformanceMeasurementRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PerformanceMeasurementRef 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 PerformanceMeasurementRef 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; + } + + public PerformanceMeasurementRef version(String version) { + this.version = version; + return this; + } + + /** + * Version of the PerformanceMeasurement + * @return version + */ + + @Schema(name = "version", description = "Version of the PerformanceMeasurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementRef performanceMeasurementRef = (PerformanceMeasurementRef) o; + return Objects.equals(this.atType, performanceMeasurementRef.atType) && + Objects.equals(this.atBaseType, performanceMeasurementRef.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceMeasurementRef.atSchemaLocation) && + Objects.equals(this.href, performanceMeasurementRef.href) && + Objects.equals(this.id, performanceMeasurementRef.id) && + Objects.equals(this.name, performanceMeasurementRef.name) && + Objects.equals(this.atReferredType, performanceMeasurementRef.atReferredType) && + Objects.equals(this.version, performanceMeasurementRef.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementRef {\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(" version: ").append(toIndentedString(version)).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/PerformanceMeasurementRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java new file mode 100644 index 0000000..15ec16c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java @@ -0,0 +1,44 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.MeasurementCollectionJobRef; +import org.openapitools.model.PerformanceMeasurement; +import org.openapitools.model.PerformanceMeasurementRef; +import org.openapitools.model.PerformanceMeasurementRelationship; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = PerformanceMeasurement.class, name = "PerformanceMeasurement"), + @JsonSubTypes.Type(value = PerformanceMeasurementAtomic.class, name = "PerformanceMeasurementAtomic"), + @JsonSubTypes.Type(value = PerformanceMeasurementGroup.class, name = "PerformanceMeasurementGroup"), + @JsonSubTypes.Type(value = PerformanceMeasurementRef.class, name = "PerformanceMeasurementRef") +}) + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface PerformanceMeasurementRefOrValue { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java new file mode 100644 index 0000000..2f346e9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java @@ -0,0 +1,292 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.model.PerformanceMeasurementRefOrValue; +import org.openapitools.model.TimePeriod; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PerformanceMeasurementRelationship + */ + + +@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 PerformanceMeasurementRelationship { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String relationshipType; + + private PerformanceMeasurementRefOrValue relatedMeasurement; + + private String role; + + private TimePeriod validFor; + + public PerformanceMeasurementRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PerformanceMeasurementRelationship(String atType) { + this.atType = atType; + } + + public PerformanceMeasurementRelationship 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 PerformanceMeasurementRelationship 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 PerformanceMeasurementRelationship 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 PerformanceMeasurementRelationship 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 PerformanceMeasurementRelationship 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 PerformanceMeasurementRelationship relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * + * @return relationshipType + */ + + @Schema(name = "relationshipType", description = "", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relationshipType") + public String getRelationshipType() { + return relationshipType; + } + + public void setRelationshipType(String relationshipType) { + this.relationshipType = relationshipType; + } + + public PerformanceMeasurementRelationship relatedMeasurement(PerformanceMeasurementRefOrValue relatedMeasurement) { + this.relatedMeasurement = relatedMeasurement; + return this; + } + + /** + * Get relatedMeasurement + * @return relatedMeasurement + */ + @Valid + @Schema(name = "relatedMeasurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedMeasurement") + public PerformanceMeasurementRefOrValue getRelatedMeasurement() { + return relatedMeasurement; + } + + public void setRelatedMeasurement(PerformanceMeasurementRefOrValue relatedMeasurement) { + this.relatedMeasurement = relatedMeasurement; + } + + public PerformanceMeasurementRelationship role(String role) { + this.role = role; + return this; + } + + /** + * The association role for this PerformanceMeasurement + * @return role + */ + + @Schema(name = "role", description = "The association role for this PerformanceMeasurement", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public PerformanceMeasurementRelationship validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PerformanceMeasurementRelationship performanceMeasurementRelationship = (PerformanceMeasurementRelationship) o; + return Objects.equals(this.atType, performanceMeasurementRelationship.atType) && + Objects.equals(this.atBaseType, performanceMeasurementRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, performanceMeasurementRelationship.atSchemaLocation) && + Objects.equals(this.href, performanceMeasurementRelationship.href) && + Objects.equals(this.id, performanceMeasurementRelationship.id) && + Objects.equals(this.relationshipType, performanceMeasurementRelationship.relationshipType) && + Objects.equals(this.relatedMeasurement, performanceMeasurementRelationship.relatedMeasurement) && + Objects.equals(this.role, performanceMeasurementRelationship.role) && + Objects.equals(this.validFor, performanceMeasurementRelationship.validFor); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, relatedMeasurement, role, validFor); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PerformanceMeasurementRelationship {\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(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); + sb.append(" relatedMeasurement: ").append(toIndentedString(relatedMeasurement)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).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/PlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java new file mode 100644 index 0000000..32060e2 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Place reference. + */ + +@Schema(name = "PlaceRef", description = "Place reference.") + +@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 PlaceRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public PlaceRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PlaceRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PlaceRef 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 PlaceRef 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 PlaceRef 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 PlaceRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public PlaceRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PlaceRef 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 PlaceRef 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; + } + PlaceRef placeRef = (PlaceRef) o; + return Objects.equals(this.atType, placeRef.atType) && + Objects.equals(this.atBaseType, placeRef.atBaseType) && + Objects.equals(this.atSchemaLocation, placeRef.atSchemaLocation) && + Objects.equals(this.href, placeRef.href) && + Objects.equals(this.id, placeRef.id) && + Objects.equals(this.name, placeRef.name) && + Objects.equals(this.atReferredType, placeRef.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 PlaceRef {\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/PlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java new file mode 100644 index 0000000..7a3ac3a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Place reference. + */ + +@Schema(name = "PlaceRef_FVO", description = "Place reference.") + +@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 PlaceRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public PlaceRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PlaceRefFVO(String atType) { + this.atType = atType; + } + + public PlaceRefFVO 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 PlaceRefFVO 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 PlaceRefFVO 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 PlaceRefFVO 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 PlaceRefFVO 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 PlaceRefFVO 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 PlaceRefFVO 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; + } + PlaceRefFVO placeRefFVO = (PlaceRefFVO) o; + return Objects.equals(this.atType, placeRefFVO.atType) && + Objects.equals(this.atBaseType, placeRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, placeRefFVO.atSchemaLocation) && + Objects.equals(this.href, placeRefFVO.href) && + Objects.equals(this.id, placeRefFVO.id) && + Objects.equals(this.name, placeRefFVO.name) && + Objects.equals(this.atReferredType, placeRefFVO.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 PlaceRefFVO {\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/PlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java new file mode 100644 index 0000000..982e62a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java @@ -0,0 +1,244 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Place reference. + */ + +@Schema(name = "PlaceRef_MVO", description = "Place reference.") + +@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 PlaceRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public PlaceRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PlaceRefMVO(String atType) { + this.atType = atType; + } + + public PlaceRefMVO 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 PlaceRefMVO 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 PlaceRefMVO 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 PlaceRefMVO 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 PlaceRefMVO 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 PlaceRefMVO 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 PlaceRefMVO 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; + } + PlaceRefMVO placeRefMVO = (PlaceRefMVO) o; + return Objects.equals(this.atType, placeRefMVO.atType) && + Objects.equals(this.atBaseType, placeRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, placeRefMVO.atSchemaLocation) && + Objects.equals(this.href, placeRefMVO.href) && + Objects.equals(this.id, placeRefMVO.id) && + Objects.equals(this.name, placeRefMVO.name) && + Objects.equals(this.atReferredType, placeRefMVO.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 PlaceRefMVO {\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/PolicyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java new file mode 100644 index 0000000..3f689c8 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PolicyRef + */ + + +@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 PolicyRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PolicyRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PolicyRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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; + } + + public PolicyRef version(String version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + */ + + @Schema(name = "version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyRef policyRef = (PolicyRef) o; + return Objects.equals(this.atType, policyRef.atType) && + Objects.equals(this.atBaseType, policyRef.atBaseType) && + Objects.equals(this.atSchemaLocation, policyRef.atSchemaLocation) && + Objects.equals(this.href, policyRef.href) && + Objects.equals(this.id, policyRef.id) && + Objects.equals(this.name, policyRef.name) && + Objects.equals(this.atReferredType, policyRef.atReferredType) && + Objects.equals(this.version, policyRef.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyRef {\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(" version: ").append(toIndentedString(version)).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/PolicyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java new file mode 100644 index 0000000..514d98c --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PolicyRefFVO + */ + + +@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 PolicyRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PolicyRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PolicyRefFVO(String atType) { + this.atType = atType; + } + + public PolicyRefFVO 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 PolicyRefFVO 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 PolicyRefFVO 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 PolicyRefFVO 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 PolicyRefFVO 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 PolicyRefFVO 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 PolicyRefFVO 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; + } + + public PolicyRefFVO version(String version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + */ + + @Schema(name = "version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyRefFVO policyRefFVO = (PolicyRefFVO) o; + return Objects.equals(this.atType, policyRefFVO.atType) && + Objects.equals(this.atBaseType, policyRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, policyRefFVO.atSchemaLocation) && + Objects.equals(this.href, policyRefFVO.href) && + Objects.equals(this.id, policyRefFVO.id) && + Objects.equals(this.name, policyRefFVO.name) && + Objects.equals(this.atReferredType, policyRefFVO.atReferredType) && + Objects.equals(this.version, policyRefFVO.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyRefFVO {\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(" version: ").append(toIndentedString(version)).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/PolicyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java new file mode 100644 index 0000000..2b2d0b8 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * PolicyRefMVO + */ + + +@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 PolicyRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public PolicyRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public PolicyRefMVO(String atType) { + this.atType = atType; + } + + public PolicyRefMVO 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 PolicyRefMVO 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 PolicyRefMVO 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 PolicyRefMVO 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 PolicyRefMVO 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 PolicyRefMVO 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 PolicyRefMVO 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; + } + + public PolicyRefMVO version(String version) { + this.version = version; + return this; + } + + /** + * Get version + * @return version + */ + + @Schema(name = "version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyRefMVO policyRefMVO = (PolicyRefMVO) o; + return Objects.equals(this.atType, policyRefMVO.atType) && + Objects.equals(this.atBaseType, policyRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, policyRefMVO.atSchemaLocation) && + Objects.equals(this.href, policyRefMVO.href) && + Objects.equals(this.id, policyRefMVO.id) && + Objects.equals(this.name, policyRefMVO.name) && + Objects.equals(this.atReferredType, policyRefMVO.atReferredType) && + Objects.equals(this.version, policyRefMVO.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyRefMVO {\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(" version: ").append(toIndentedString(version)).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/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java new file mode 100644 index 0000000..5f9cb67 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -0,0 +1,96 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ProtocolTransferData + */ + +@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 = FileTransferData.class, name = "FileTransferData"), + @JsonSubTypes.Type(value = FileTransferDataMVO.class, name = "FileTransferData_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 ProtocolTransferData { + + private String transportProtocol; + + public ProtocolTransferData transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } + + /** + * Get transportProtocol + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProtocolTransferData protocolTransferData = (ProtocolTransferData) o; + return Objects.equals(this.transportProtocol, protocolTransferData.transportProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(transportProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProtocolTransferData {\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).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/ProtocolTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java new file mode 100644 index 0000000..7371b5d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java @@ -0,0 +1,96 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ProtocolTransferDataFVO + */ + +@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 = FileTransferDataFVO.class, name = "FileTransferData") +}) + +@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 ProtocolTransferDataFVO { + + private String transportProtocol; + + public ProtocolTransferDataFVO transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } + + /** + * Get transportProtocol + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProtocolTransferDataFVO protocolTransferDataFVO = (ProtocolTransferDataFVO) o; + return Objects.equals(this.transportProtocol, protocolTransferDataFVO.transportProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(transportProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProtocolTransferDataFVO {\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).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/ProtocolTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java new file mode 100644 index 0000000..e205996 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java @@ -0,0 +1,88 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ProtocolTransferDataMVO + */ + + +@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 ProtocolTransferDataMVO { + + private String transportProtocol; + + public ProtocolTransferDataMVO transportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + return this; + } + + /** + * Get transportProtocol + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProtocolTransferDataMVO protocolTransferDataMVO = (ProtocolTransferDataMVO) o; + return Objects.equals(this.transportProtocol, protocolTransferDataMVO.transportProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(transportProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProtocolTransferDataMVO {\n"); + sb.append(" transportProtocol: ").append(toIndentedString(transportProtocol)).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/RelatedPartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java new file mode 100644 index 0000000..3d13f70 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java @@ -0,0 +1,195 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.model.PartyRefOrPartyRoleRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedPartyRefOrPartyRoleRef + */ + + +@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 RelatedPartyRefOrPartyRoleRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String role; + + private PartyRefOrPartyRoleRef partyOrPartyRole; + + public RelatedPartyRefOrPartyRoleRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedPartyRefOrPartyRoleRef(String atType) { + this.atType = atType; + } + + public RelatedPartyRefOrPartyRoleRef 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 RelatedPartyRefOrPartyRoleRef 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 RelatedPartyRefOrPartyRoleRef 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 RelatedPartyRefOrPartyRoleRef role(String role) { + this.role = role; + return this; + } + + /** + * Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user' + * @return role + */ + + @Schema(name = "role", description = "Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public RelatedPartyRefOrPartyRoleRef partyOrPartyRole(PartyRefOrPartyRoleRef partyOrPartyRole) { + this.partyOrPartyRole = partyOrPartyRole; + return this; + } + + /** + * Get partyOrPartyRole + * @return partyOrPartyRole + */ + @Valid + @Schema(name = "partyOrPartyRole", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyOrPartyRole") + public PartyRefOrPartyRoleRef getPartyOrPartyRole() { + return partyOrPartyRole; + } + + public void setPartyOrPartyRole(PartyRefOrPartyRoleRef partyOrPartyRole) { + this.partyOrPartyRole = partyOrPartyRole; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedPartyRefOrPartyRoleRef relatedPartyRefOrPartyRoleRef = (RelatedPartyRefOrPartyRoleRef) o; + return Objects.equals(this.atType, relatedPartyRefOrPartyRoleRef.atType) && + Objects.equals(this.atBaseType, relatedPartyRefOrPartyRoleRef.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedPartyRefOrPartyRoleRef.atSchemaLocation) && + Objects.equals(this.role, relatedPartyRefOrPartyRoleRef.role) && + Objects.equals(this.partyOrPartyRole, relatedPartyRefOrPartyRoleRef.partyOrPartyRole); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, role, partyOrPartyRole); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedPartyRefOrPartyRoleRef {\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(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" partyOrPartyRole: ").append(toIndentedString(partyOrPartyRole)).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/RelatedPartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java new file mode 100644 index 0000000..3c8b08f --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java @@ -0,0 +1,197 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.PartyRefOrPartyRoleRefFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedPartyRefOrPartyRoleRefFVO + */ + + +@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 RelatedPartyRefOrPartyRoleRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String role; + + private PartyRefOrPartyRoleRefFVO partyOrPartyRole; + + public RelatedPartyRefOrPartyRoleRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedPartyRefOrPartyRoleRefFVO(String atType, String role) { + this.atType = atType; + this.role = role; + } + + public RelatedPartyRefOrPartyRoleRefFVO 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 RelatedPartyRefOrPartyRoleRefFVO 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 RelatedPartyRefOrPartyRoleRefFVO 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 RelatedPartyRefOrPartyRoleRefFVO role(String role) { + this.role = role; + return this; + } + + /** + * Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user' + * @return role + */ + @NotNull + @Schema(name = "role", description = "Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public RelatedPartyRefOrPartyRoleRefFVO partyOrPartyRole(PartyRefOrPartyRoleRefFVO partyOrPartyRole) { + this.partyOrPartyRole = partyOrPartyRole; + return this; + } + + /** + * Get partyOrPartyRole + * @return partyOrPartyRole + */ + @Valid + @Schema(name = "partyOrPartyRole", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyOrPartyRole") + public PartyRefOrPartyRoleRefFVO getPartyOrPartyRole() { + return partyOrPartyRole; + } + + public void setPartyOrPartyRole(PartyRefOrPartyRoleRefFVO partyOrPartyRole) { + this.partyOrPartyRole = partyOrPartyRole; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedPartyRefOrPartyRoleRefFVO relatedPartyRefOrPartyRoleRefFVO = (RelatedPartyRefOrPartyRoleRefFVO) o; + return Objects.equals(this.atType, relatedPartyRefOrPartyRoleRefFVO.atType) && + Objects.equals(this.atBaseType, relatedPartyRefOrPartyRoleRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedPartyRefOrPartyRoleRefFVO.atSchemaLocation) && + Objects.equals(this.role, relatedPartyRefOrPartyRoleRefFVO.role) && + Objects.equals(this.partyOrPartyRole, relatedPartyRefOrPartyRoleRefFVO.partyOrPartyRole); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, role, partyOrPartyRole); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedPartyRefOrPartyRoleRefFVO {\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(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" partyOrPartyRole: ").append(toIndentedString(partyOrPartyRole)).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/RelatedPartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java new file mode 100644 index 0000000..7309888 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java @@ -0,0 +1,197 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.PartyRefOrPartyRoleRefMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedPartyRefOrPartyRoleRefMVO + */ + + +@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 RelatedPartyRefOrPartyRoleRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String role; + + private PartyRefOrPartyRoleRefMVO partyOrPartyRole; + + public RelatedPartyRefOrPartyRoleRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedPartyRefOrPartyRoleRefMVO(String atType, String role) { + this.atType = atType; + this.role = role; + } + + public RelatedPartyRefOrPartyRoleRefMVO 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 RelatedPartyRefOrPartyRoleRefMVO 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 RelatedPartyRefOrPartyRoleRefMVO 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 RelatedPartyRefOrPartyRoleRefMVO role(String role) { + this.role = role; + return this; + } + + /** + * Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user' + * @return role + */ + @NotNull + @Schema(name = "role", description = "Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public RelatedPartyRefOrPartyRoleRefMVO partyOrPartyRole(PartyRefOrPartyRoleRefMVO partyOrPartyRole) { + this.partyOrPartyRole = partyOrPartyRole; + return this; + } + + /** + * Get partyOrPartyRole + * @return partyOrPartyRole + */ + @Valid + @Schema(name = "partyOrPartyRole", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("partyOrPartyRole") + public PartyRefOrPartyRoleRefMVO getPartyOrPartyRole() { + return partyOrPartyRole; + } + + public void setPartyOrPartyRole(PartyRefOrPartyRoleRefMVO partyOrPartyRole) { + this.partyOrPartyRole = partyOrPartyRole; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedPartyRefOrPartyRoleRefMVO relatedPartyRefOrPartyRoleRefMVO = (RelatedPartyRefOrPartyRoleRefMVO) o; + return Objects.equals(this.atType, relatedPartyRefOrPartyRoleRefMVO.atType) && + Objects.equals(this.atBaseType, relatedPartyRefOrPartyRoleRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedPartyRefOrPartyRoleRefMVO.atSchemaLocation) && + Objects.equals(this.role, relatedPartyRefOrPartyRoleRefMVO.role) && + Objects.equals(this.partyOrPartyRole, relatedPartyRefOrPartyRoleRefMVO.partyOrPartyRole); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, role, partyOrPartyRole); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedPartyRefOrPartyRoleRefMVO {\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(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" partyOrPartyRole: ").append(toIndentedString(partyOrPartyRole)).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/RelatedPlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java new file mode 100644 index 0000000..83eb15a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java @@ -0,0 +1,195 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.model.PlaceRef; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedPlaceRef + */ + + +@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 RelatedPlaceRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String role; + + private PlaceRef place; + + public RelatedPlaceRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedPlaceRef(String atType) { + this.atType = atType; + } + + public RelatedPlaceRef 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 RelatedPlaceRef 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 RelatedPlaceRef 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 RelatedPlaceRef role(String role) { + this.role = role; + return this; + } + + /** + * Get role + * @return role + */ + + @Schema(name = "role", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public RelatedPlaceRef place(PlaceRef place) { + this.place = place; + return this; + } + + /** + * Get place + * @return place + */ + @Valid + @Schema(name = "place", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("place") + public PlaceRef getPlace() { + return place; + } + + public void setPlace(PlaceRef place) { + this.place = place; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedPlaceRef relatedPlaceRef = (RelatedPlaceRef) o; + return Objects.equals(this.atType, relatedPlaceRef.atType) && + Objects.equals(this.atBaseType, relatedPlaceRef.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedPlaceRef.atSchemaLocation) && + Objects.equals(this.role, relatedPlaceRef.role) && + Objects.equals(this.place, relatedPlaceRef.place); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, role, place); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedPlaceRef {\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(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" place: ").append(toIndentedString(place)).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/RelatedPlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java new file mode 100644 index 0000000..870b244 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java @@ -0,0 +1,198 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.PlaceRefFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedPlaceRefFVO + */ + + +@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 RelatedPlaceRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String role; + + private PlaceRefFVO place; + + public RelatedPlaceRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedPlaceRefFVO(String atType, String role, PlaceRefFVO place) { + this.atType = atType; + this.role = role; + this.place = place; + } + + public RelatedPlaceRefFVO 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 RelatedPlaceRefFVO 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 RelatedPlaceRefFVO 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 RelatedPlaceRefFVO role(String role) { + this.role = role; + return this; + } + + /** + * Get role + * @return role + */ + @NotNull + @Schema(name = "role", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public RelatedPlaceRefFVO place(PlaceRefFVO place) { + this.place = place; + return this; + } + + /** + * Get place + * @return place + */ + @NotNull @Valid + @Schema(name = "place", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("place") + public PlaceRefFVO getPlace() { + return place; + } + + public void setPlace(PlaceRefFVO place) { + this.place = place; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedPlaceRefFVO relatedPlaceRefFVO = (RelatedPlaceRefFVO) o; + return Objects.equals(this.atType, relatedPlaceRefFVO.atType) && + Objects.equals(this.atBaseType, relatedPlaceRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedPlaceRefFVO.atSchemaLocation) && + Objects.equals(this.role, relatedPlaceRefFVO.role) && + Objects.equals(this.place, relatedPlaceRefFVO.place); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, role, place); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedPlaceRefFVO {\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(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" place: ").append(toIndentedString(place)).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/RelatedPlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java new file mode 100644 index 0000000..828658a --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java @@ -0,0 +1,198 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.model.PlaceRefMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedPlaceRefMVO + */ + + +@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 RelatedPlaceRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String role; + + private PlaceRefMVO place; + + public RelatedPlaceRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedPlaceRefMVO(String atType, String role, PlaceRefMVO place) { + this.atType = atType; + this.role = role; + this.place = place; + } + + public RelatedPlaceRefMVO 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 RelatedPlaceRefMVO 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 RelatedPlaceRefMVO 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 RelatedPlaceRefMVO role(String role) { + this.role = role; + return this; + } + + /** + * Get role + * @return role + */ + @NotNull + @Schema(name = "role", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + public RelatedPlaceRefMVO place(PlaceRefMVO place) { + this.place = place; + return this; + } + + /** + * Get place + * @return place + */ + @NotNull @Valid + @Schema(name = "place", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("place") + public PlaceRefMVO getPlace() { + return place; + } + + public void setPlace(PlaceRefMVO place) { + this.place = place; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedPlaceRefMVO relatedPlaceRefMVO = (RelatedPlaceRefMVO) o; + return Objects.equals(this.atType, relatedPlaceRefMVO.atType) && + Objects.equals(this.atBaseType, relatedPlaceRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedPlaceRefMVO.atSchemaLocation) && + Objects.equals(this.role, relatedPlaceRefMVO.role) && + Objects.equals(this.place, relatedPlaceRefMVO.place); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, role, place); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedPlaceRefMVO {\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(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" place: ").append(toIndentedString(place)).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/RelatedResourceOrderItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java new file mode 100644 index 0000000..f43fce3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java @@ -0,0 +1,292 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.OrderItemActionType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedResourceOrderItem + */ + + +@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 RelatedResourceOrderItem { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String atReferredType; + + private String resourceOrderHref; + + private String resourceOrderId; + + private OrderItemActionType itemAction; + + private String itemId; + + private String role; + + public RelatedResourceOrderItem() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedResourceOrderItem(String atType) { + this.atType = atType; + } + + public RelatedResourceOrderItem 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 RelatedResourceOrderItem 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 RelatedResourceOrderItem 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 RelatedResourceOrderItem 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; + } + + public RelatedResourceOrderItem resourceOrderHref(String resourceOrderHref) { + this.resourceOrderHref = resourceOrderHref; + return this; + } + + /** + * Reference of the related entity. + * @return resourceOrderHref + */ + + @Schema(name = "resourceOrderHref", description = "Reference of the related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderHref") + public String getResourceOrderHref() { + return resourceOrderHref; + } + + public void setResourceOrderHref(String resourceOrderHref) { + this.resourceOrderHref = resourceOrderHref; + } + + public RelatedResourceOrderItem resourceOrderId(String resourceOrderId) { + this.resourceOrderId = resourceOrderId; + return this; + } + + /** + * Unique identifier of a related entity. + * @return resourceOrderId + */ + + @Schema(name = "resourceOrderId", description = "Unique identifier of a related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderId") + public String getResourceOrderId() { + return resourceOrderId; + } + + public void setResourceOrderId(String resourceOrderId) { + this.resourceOrderId = resourceOrderId; + } + + public RelatedResourceOrderItem itemAction(OrderItemActionType itemAction) { + this.itemAction = itemAction; + return this; + } + + /** + * Get itemAction + * @return itemAction + */ + @Valid + @Schema(name = "itemAction", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("itemAction") + public OrderItemActionType getItemAction() { + return itemAction; + } + + public void setItemAction(OrderItemActionType itemAction) { + this.itemAction = itemAction; + } + + public RelatedResourceOrderItem itemId(String itemId) { + this.itemId = itemId; + return this; + } + + /** + * Identifier of the order item where the resource was managed + * @return itemId + */ + + @Schema(name = "itemId", description = "Identifier of the order item where the resource was managed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("itemId") + public String getItemId() { + return itemId; + } + + public void setItemId(String itemId) { + this.itemId = itemId; + } + + public RelatedResourceOrderItem role(String role) { + this.role = role; + return this; + } + + /** + * role of the resource order item for this resource + * @return role + */ + + @Schema(name = "role", description = "role of the resource order item for this resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedResourceOrderItem relatedResourceOrderItem = (RelatedResourceOrderItem) o; + return Objects.equals(this.atType, relatedResourceOrderItem.atType) && + Objects.equals(this.atBaseType, relatedResourceOrderItem.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedResourceOrderItem.atSchemaLocation) && + Objects.equals(this.atReferredType, relatedResourceOrderItem.atReferredType) && + Objects.equals(this.resourceOrderHref, relatedResourceOrderItem.resourceOrderHref) && + Objects.equals(this.resourceOrderId, relatedResourceOrderItem.resourceOrderId) && + Objects.equals(this.itemAction, relatedResourceOrderItem.itemAction) && + Objects.equals(this.itemId, relatedResourceOrderItem.itemId) && + Objects.equals(this.role, relatedResourceOrderItem.role); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, atReferredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedResourceOrderItem {\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(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" resourceOrderHref: ").append(toIndentedString(resourceOrderHref)).append("\n"); + sb.append(" resourceOrderId: ").append(toIndentedString(resourceOrderId)).append("\n"); + sb.append(" itemAction: ").append(toIndentedString(itemAction)).append("\n"); + sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).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/RelatedResourceOrderItemFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java new file mode 100644 index 0000000..f4672e3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java @@ -0,0 +1,293 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.OrderItemActionType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedResourceOrderItemFVO + */ + + +@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 RelatedResourceOrderItemFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String atReferredType; + + private String resourceOrderHref; + + private String resourceOrderId; + + private OrderItemActionType itemAction; + + private String itemId; + + private String role; + + public RelatedResourceOrderItemFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedResourceOrderItemFVO(String atType) { + this.atType = atType; + } + + public RelatedResourceOrderItemFVO 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 RelatedResourceOrderItemFVO 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 RelatedResourceOrderItemFVO 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 RelatedResourceOrderItemFVO 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; + } + + public RelatedResourceOrderItemFVO resourceOrderHref(String resourceOrderHref) { + this.resourceOrderHref = resourceOrderHref; + return this; + } + + /** + * Reference of the related entity. + * @return resourceOrderHref + */ + + @Schema(name = "resourceOrderHref", description = "Reference of the related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderHref") + public String getResourceOrderHref() { + return resourceOrderHref; + } + + public void setResourceOrderHref(String resourceOrderHref) { + this.resourceOrderHref = resourceOrderHref; + } + + public RelatedResourceOrderItemFVO resourceOrderId(String resourceOrderId) { + this.resourceOrderId = resourceOrderId; + return this; + } + + /** + * Unique identifier of a related entity. + * @return resourceOrderId + */ + + @Schema(name = "resourceOrderId", description = "Unique identifier of a related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderId") + public String getResourceOrderId() { + return resourceOrderId; + } + + public void setResourceOrderId(String resourceOrderId) { + this.resourceOrderId = resourceOrderId; + } + + public RelatedResourceOrderItemFVO itemAction(OrderItemActionType itemAction) { + this.itemAction = itemAction; + return this; + } + + /** + * Get itemAction + * @return itemAction + */ + @Valid + @Schema(name = "itemAction", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("itemAction") + public OrderItemActionType getItemAction() { + return itemAction; + } + + public void setItemAction(OrderItemActionType itemAction) { + this.itemAction = itemAction; + } + + public RelatedResourceOrderItemFVO itemId(String itemId) { + this.itemId = itemId; + return this; + } + + /** + * Identifier of the order item where the resource was managed + * @return itemId + */ + + @Schema(name = "itemId", description = "Identifier of the order item where the resource was managed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("itemId") + public String getItemId() { + return itemId; + } + + public void setItemId(String itemId) { + this.itemId = itemId; + } + + public RelatedResourceOrderItemFVO role(String role) { + this.role = role; + return this; + } + + /** + * role of the resource order item for this resource + * @return role + */ + + @Schema(name = "role", description = "role of the resource order item for this resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedResourceOrderItemFVO relatedResourceOrderItemFVO = (RelatedResourceOrderItemFVO) o; + return Objects.equals(this.atType, relatedResourceOrderItemFVO.atType) && + Objects.equals(this.atBaseType, relatedResourceOrderItemFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedResourceOrderItemFVO.atSchemaLocation) && + Objects.equals(this.atReferredType, relatedResourceOrderItemFVO.atReferredType) && + Objects.equals(this.resourceOrderHref, relatedResourceOrderItemFVO.resourceOrderHref) && + Objects.equals(this.resourceOrderId, relatedResourceOrderItemFVO.resourceOrderId) && + Objects.equals(this.itemAction, relatedResourceOrderItemFVO.itemAction) && + Objects.equals(this.itemId, relatedResourceOrderItemFVO.itemId) && + Objects.equals(this.role, relatedResourceOrderItemFVO.role); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, atReferredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedResourceOrderItemFVO {\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(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" resourceOrderHref: ").append(toIndentedString(resourceOrderHref)).append("\n"); + sb.append(" resourceOrderId: ").append(toIndentedString(resourceOrderId)).append("\n"); + sb.append(" itemAction: ").append(toIndentedString(itemAction)).append("\n"); + sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).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/RelatedResourceOrderItemMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java new file mode 100644 index 0000000..d557358 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java @@ -0,0 +1,293 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.model.OrderItemActionType; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * RelatedResourceOrderItemMVO + */ + + +@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 RelatedResourceOrderItemMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String atReferredType; + + private String resourceOrderHref; + + private String resourceOrderId; + + private OrderItemActionType itemAction; + + private String itemId; + + private String role; + + public RelatedResourceOrderItemMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public RelatedResourceOrderItemMVO(String atType) { + this.atType = atType; + } + + public RelatedResourceOrderItemMVO 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 RelatedResourceOrderItemMVO 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 RelatedResourceOrderItemMVO 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 RelatedResourceOrderItemMVO 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; + } + + public RelatedResourceOrderItemMVO resourceOrderHref(String resourceOrderHref) { + this.resourceOrderHref = resourceOrderHref; + return this; + } + + /** + * Reference of the related entity. + * @return resourceOrderHref + */ + + @Schema(name = "resourceOrderHref", description = "Reference of the related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderHref") + public String getResourceOrderHref() { + return resourceOrderHref; + } + + public void setResourceOrderHref(String resourceOrderHref) { + this.resourceOrderHref = resourceOrderHref; + } + + public RelatedResourceOrderItemMVO resourceOrderId(String resourceOrderId) { + this.resourceOrderId = resourceOrderId; + return this; + } + + /** + * Unique identifier of a related entity. + * @return resourceOrderId + */ + + @Schema(name = "resourceOrderId", description = "Unique identifier of a related entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderId") + public String getResourceOrderId() { + return resourceOrderId; + } + + public void setResourceOrderId(String resourceOrderId) { + this.resourceOrderId = resourceOrderId; + } + + public RelatedResourceOrderItemMVO itemAction(OrderItemActionType itemAction) { + this.itemAction = itemAction; + return this; + } + + /** + * Get itemAction + * @return itemAction + */ + @Valid + @Schema(name = "itemAction", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("itemAction") + public OrderItemActionType getItemAction() { + return itemAction; + } + + public void setItemAction(OrderItemActionType itemAction) { + this.itemAction = itemAction; + } + + public RelatedResourceOrderItemMVO itemId(String itemId) { + this.itemId = itemId; + return this; + } + + /** + * Identifier of the order item where the resource was managed + * @return itemId + */ + + @Schema(name = "itemId", description = "Identifier of the order item where the resource was managed", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("itemId") + public String getItemId() { + return itemId; + } + + public void setItemId(String itemId) { + this.itemId = itemId; + } + + public RelatedResourceOrderItemMVO role(String role) { + this.role = role; + return this; + } + + /** + * role of the resource order item for this resource + * @return role + */ + + @Schema(name = "role", description = "role of the resource order item for this resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("role") + public String getRole() { + return role; + } + + public void setRole(String role) { + this.role = role; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RelatedResourceOrderItemMVO relatedResourceOrderItemMVO = (RelatedResourceOrderItemMVO) o; + return Objects.equals(this.atType, relatedResourceOrderItemMVO.atType) && + Objects.equals(this.atBaseType, relatedResourceOrderItemMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, relatedResourceOrderItemMVO.atSchemaLocation) && + Objects.equals(this.atReferredType, relatedResourceOrderItemMVO.atReferredType) && + Objects.equals(this.resourceOrderHref, relatedResourceOrderItemMVO.resourceOrderHref) && + Objects.equals(this.resourceOrderId, relatedResourceOrderItemMVO.resourceOrderId) && + Objects.equals(this.itemAction, relatedResourceOrderItemMVO.itemAction) && + Objects.equals(this.itemId, relatedResourceOrderItemMVO.itemId) && + Objects.equals(this.role, relatedResourceOrderItemMVO.role); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, atReferredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RelatedResourceOrderItemMVO {\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(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" resourceOrderHref: ").append(toIndentedString(resourceOrderHref)).append("\n"); + sb.append(" resourceOrderId: ").append(toIndentedString(resourceOrderId)).append("\n"); + sb.append(" itemAction: ").append(toIndentedString(itemAction)).append("\n"); + sb.append(" itemId: ").append(toIndentedString(itemId)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).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/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java new file mode 100644 index 0000000..0026866 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java @@ -0,0 +1,66 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Possible values for the reporting period + */ + +@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 ReportingPeriod { + + R_1MN("r_1mn"), + + R_5MN("r_5mn"), + + R_15MN("r_15mn"), + + R_30MN("r_30mn"), + + R_1H("r_1h"), + + R_24H("r_24h"), + + NA("na"); + + private String value; + + ReportingPeriod(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReportingPeriod fromValue(String value) { + for (ReportingPeriod b : ReportingPeriod.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/Resource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java new file mode 100644 index 0000000..2f82adb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java @@ -0,0 +1,837 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRef; +import org.openapitools.model.Characteristic; +import org.openapitools.model.ExternalIdentifier; +import org.openapitools.model.Feature; +import org.openapitools.model.IntentRef; +import org.openapitools.model.Note; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.openapitools.model.RelatedPlaceRef; +import org.openapitools.model.RelatedResourceOrderItem; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationship; +import org.openapitools.model.ResourceSpecificationRef; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Resource + */ + +@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 = DataAccessEndpoint.class, name = "DataAccessEndpoint"), + @JsonSubTypes.Type(value = LogicalResource.class, name = "LogicalResource"), + @JsonSubTypes.Type(value = Resource.class, name = "Resource") +}) + +@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 Resource implements ResourceRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String category; + + private String description; + + private String name; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endOperatingDate; + + private ResourceAdministrativeStateType administrativeState; + + private ResourceOperationalStateType operationalState; + + private ResourceStatusType resourceStatus; + + private ResourceUsageStateType usageState; + + private TimePeriod validFor; + + @Valid + private List note = new ArrayList<>(); + + @Valid + private List resourceOrderItem = new ArrayList<>(); + + @Valid + private List place = new ArrayList<>(); + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List resourceRelationship = new ArrayList<>(); + + @Valid + private List resourceCharacteristic = new ArrayList<>(); + + @Valid + private List attachment = new ArrayList<>(); + + private ResourceSpecificationRef resourceSpecification; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startOperatingDate; + + private String resourceVersion; + + @Valid + private List activationFeature = new ArrayList<>(); + + private IntentRef intent; + + @Valid + private List externalIdentifier = new ArrayList<>(); + + public Resource() { + super(); + } + + /** + * Constructor with only required parameters + */ + public Resource(String atType) { + this.atType = atType; + } + + public Resource 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 Resource 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 Resource 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 Resource 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 Resource 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 Resource category(String category) { + this.category = category; + return this; + } + + /** + * Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource + * @return category + */ + + @Schema(name = "category", description = "Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("category") + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public Resource description(String description) { + this.description = description; + return this; + } + + /** + * free-text description of the resource + * @return description + */ + + @Schema(name = "description", description = "free-text description of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Resource name(String name) { + this.name = name; + return this; + } + + /** + * the name of the resource + * @return name + */ + + @Schema(name = "name", description = "the name of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Resource endOperatingDate(OffsetDateTime endOperatingDate) { + this.endOperatingDate = endOperatingDate; + return this; + } + + /** + * A date time( DateTime). The date till the resource is operating + * @return endOperatingDate + */ + @Valid + @Schema(name = "endOperatingDate", description = "A date time( DateTime). The date till the resource is operating", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("endOperatingDate") + public OffsetDateTime getEndOperatingDate() { + return endOperatingDate; + } + + public void setEndOperatingDate(OffsetDateTime endOperatingDate) { + this.endOperatingDate = endOperatingDate; + } + + public Resource administrativeState(ResourceAdministrativeStateType administrativeState) { + this.administrativeState = administrativeState; + return this; + } + + /** + * Get administrativeState + * @return administrativeState + */ + @Valid + @Schema(name = "administrativeState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("administrativeState") + public ResourceAdministrativeStateType getAdministrativeState() { + return administrativeState; + } + + public void setAdministrativeState(ResourceAdministrativeStateType administrativeState) { + this.administrativeState = administrativeState; + } + + public Resource operationalState(ResourceOperationalStateType operationalState) { + this.operationalState = operationalState; + return this; + } + + /** + * Get operationalState + * @return operationalState + */ + @Valid + @Schema(name = "operationalState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("operationalState") + public ResourceOperationalStateType getOperationalState() { + return operationalState; + } + + public void setOperationalState(ResourceOperationalStateType operationalState) { + this.operationalState = operationalState; + } + + public Resource resourceStatus(ResourceStatusType resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Get resourceStatus + * @return resourceStatus + */ + @Valid + @Schema(name = "resourceStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceStatus") + public ResourceStatusType getResourceStatus() { + return resourceStatus; + } + + public void setResourceStatus(ResourceStatusType resourceStatus) { + this.resourceStatus = resourceStatus; + } + + public Resource usageState(ResourceUsageStateType usageState) { + this.usageState = usageState; + return this; + } + + /** + * Get usageState + * @return usageState + */ + @Valid + @Schema(name = "usageState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("usageState") + public ResourceUsageStateType getUsageState() { + return usageState; + } + + public void setUsageState(ResourceUsageStateType usageState) { + this.usageState = usageState; + } + + public Resource validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public Resource note(List note) { + this.note = note; + return this; + } + + public Resource addNoteItem(Note noteItem) { + if (this.note == null) { + this.note = new ArrayList<>(); + } + this.note.add(noteItem); + return this; + } + + /** + * Get note + * @return note + */ + @Valid + @Schema(name = "note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("note") + public List getNote() { + return note; + } + + public void setNote(List note) { + this.note = note; + } + + public Resource resourceOrderItem(List resourceOrderItem) { + this.resourceOrderItem = resourceOrderItem; + return this; + } + + public Resource addResourceOrderItemItem(RelatedResourceOrderItem resourceOrderItemItem) { + if (this.resourceOrderItem == null) { + this.resourceOrderItem = new ArrayList<>(); + } + this.resourceOrderItem.add(resourceOrderItemItem); + return this; + } + + /** + * A list of resource order items related to this resource + * @return resourceOrderItem + */ + @Valid + @Schema(name = "resourceOrderItem", description = "A list of resource order items related to this resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderItem") + public List getResourceOrderItem() { + return resourceOrderItem; + } + + public void setResourceOrderItem(List resourceOrderItem) { + this.resourceOrderItem = resourceOrderItem; + } + + public Resource place(List place) { + this.place = place; + return this; + } + + public Resource addPlaceItem(RelatedPlaceRef placeItem) { + if (this.place == null) { + this.place = new ArrayList<>(); + } + this.place.add(placeItem); + return this; + } + + /** + * Get place + * @return place + */ + @Valid + @Schema(name = "place", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("place") + public List getPlace() { + return place; + } + + public void setPlace(List place) { + this.place = place; + } + + public Resource relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public Resource addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Get relatedParty + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public Resource resourceRelationship(List resourceRelationship) { + this.resourceRelationship = resourceRelationship; + return this; + } + + public Resource addResourceRelationshipItem(ResourceRelationship resourceRelationshipItem) { + if (this.resourceRelationship == null) { + this.resourceRelationship = new ArrayList<>(); + } + this.resourceRelationship.add(resourceRelationshipItem); + return this; + } + + /** + * Get resourceRelationship + * @return resourceRelationship + */ + @Valid + @Schema(name = "resourceRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceRelationship") + public List getResourceRelationship() { + return resourceRelationship; + } + + public void setResourceRelationship(List resourceRelationship) { + this.resourceRelationship = resourceRelationship; + } + + public Resource resourceCharacteristic(List resourceCharacteristic) { + this.resourceCharacteristic = resourceCharacteristic; + return this; + } + + public Resource addResourceCharacteristicItem(Characteristic resourceCharacteristicItem) { + if (this.resourceCharacteristic == null) { + this.resourceCharacteristic = new ArrayList<>(); + } + this.resourceCharacteristic.add(resourceCharacteristicItem); + return this; + } + + /** + * Get resourceCharacteristic + * @return resourceCharacteristic + */ + @Valid + @Schema(name = "resourceCharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceCharacteristic") + public List getResourceCharacteristic() { + return resourceCharacteristic; + } + + public void setResourceCharacteristic(List resourceCharacteristic) { + this.resourceCharacteristic = resourceCharacteristic; + } + + public Resource attachment(List attachment) { + this.attachment = attachment; + return this; + } + + public Resource addAttachmentItem(AttachmentRef attachmentItem) { + if (this.attachment == null) { + this.attachment = new ArrayList<>(); + } + this.attachment.add(attachmentItem); + return this; + } + + /** + * Get attachment + * @return attachment + */ + @Valid + @Schema(name = "attachment", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("attachment") + public List getAttachment() { + return attachment; + } + + public void setAttachment(List attachment) { + this.attachment = attachment; + } + + public Resource resourceSpecification(ResourceSpecificationRef resourceSpecification) { + this.resourceSpecification = resourceSpecification; + return this; + } + + /** + * Get resourceSpecification + * @return resourceSpecification + */ + @Valid + @Schema(name = "resourceSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceSpecification") + public ResourceSpecificationRef getResourceSpecification() { + return resourceSpecification; + } + + public void setResourceSpecification(ResourceSpecificationRef resourceSpecification) { + this.resourceSpecification = resourceSpecification; + } + + public Resource startOperatingDate(OffsetDateTime startOperatingDate) { + this.startOperatingDate = startOperatingDate; + return this; + } + + /** + * A date time( DateTime). The date from which the resource is operating + * @return startOperatingDate + */ + @Valid + @Schema(name = "startOperatingDate", description = "A date time( DateTime). The date from which the resource is operating", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("startOperatingDate") + public OffsetDateTime getStartOperatingDate() { + return startOperatingDate; + } + + public void setStartOperatingDate(OffsetDateTime startOperatingDate) { + this.startOperatingDate = startOperatingDate; + } + + public Resource resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * A field that identifies the specific version of an instance of a resource. + * @return resourceVersion + */ + + @Schema(name = "resourceVersion", description = "A field that identifies the specific version of an instance of a resource.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceVersion") + public String getResourceVersion() { + return resourceVersion; + } + + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public Resource activationFeature(List activationFeature) { + this.activationFeature = activationFeature; + return this; + } + + public Resource addActivationFeatureItem(Feature activationFeatureItem) { + if (this.activationFeature == null) { + this.activationFeature = new ArrayList<>(); + } + this.activationFeature.add(activationFeatureItem); + return this; + } + + /** + * Configuration features + * @return activationFeature + */ + @Valid + @Schema(name = "activationFeature", description = "Configuration features", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("activationFeature") + public List getActivationFeature() { + return activationFeature; + } + + public void setActivationFeature(List activationFeature) { + this.activationFeature = activationFeature; + } + + public Resource intent(IntentRef intent) { + this.intent = intent; + return this; + } + + /** + * Get intent + * @return intent + */ + @Valid + @Schema(name = "intent", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("intent") + public IntentRef getIntent() { + return intent; + } + + public void setIntent(IntentRef intent) { + this.intent = intent; + } + + public Resource externalIdentifier(List externalIdentifier) { + this.externalIdentifier = externalIdentifier; + return this; + } + + public Resource addExternalIdentifierItem(ExternalIdentifier externalIdentifierItem) { + if (this.externalIdentifier == null) { + this.externalIdentifier = new ArrayList<>(); + } + this.externalIdentifier.add(externalIdentifierItem); + return this; + } + + /** + * An identification of this resource that is owned by or originates in a software system different from the current system. The structure identifies the system itself, the nature of the resource within the system and the unique ID of the resource within the system. It is anticipated that multiple external IDs can be held for a single resource, e.g. if the resource passed through multiple systems on the way to the current system. + * @return externalIdentifier + */ + @Valid + @Schema(name = "externalIdentifier", description = "An identification of this resource that is owned by or originates in a software system different from the current system. The structure identifies the system itself, the nature of the resource within the system and the unique ID of the resource within the system. It is anticipated that multiple external IDs can be held for a single resource, e.g. if the resource passed through multiple systems on the way to the current system.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("externalIdentifier") + public List getExternalIdentifier() { + return externalIdentifier; + } + + public void setExternalIdentifier(List externalIdentifier) { + this.externalIdentifier = externalIdentifier; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Resource resource = (Resource) o; + return Objects.equals(this.atType, resource.atType) && + Objects.equals(this.atBaseType, resource.atBaseType) && + Objects.equals(this.atSchemaLocation, resource.atSchemaLocation) && + Objects.equals(this.href, resource.href) && + Objects.equals(this.id, resource.id) && + Objects.equals(this.category, resource.category) && + Objects.equals(this.description, resource.description) && + Objects.equals(this.name, resource.name) && + Objects.equals(this.endOperatingDate, resource.endOperatingDate) && + Objects.equals(this.administrativeState, resource.administrativeState) && + Objects.equals(this.operationalState, resource.operationalState) && + Objects.equals(this.resourceStatus, resource.resourceStatus) && + Objects.equals(this.usageState, resource.usageState) && + Objects.equals(this.validFor, resource.validFor) && + Objects.equals(this.note, resource.note) && + Objects.equals(this.resourceOrderItem, resource.resourceOrderItem) && + Objects.equals(this.place, resource.place) && + Objects.equals(this.relatedParty, resource.relatedParty) && + Objects.equals(this.resourceRelationship, resource.resourceRelationship) && + Objects.equals(this.resourceCharacteristic, resource.resourceCharacteristic) && + Objects.equals(this.attachment, resource.attachment) && + Objects.equals(this.resourceSpecification, resource.resourceSpecification) && + Objects.equals(this.startOperatingDate, resource.startOperatingDate) && + Objects.equals(this.resourceVersion, resource.resourceVersion) && + Objects.equals(this.activationFeature, resource.activationFeature) && + Objects.equals(this.intent, resource.intent) && + Objects.equals(this.externalIdentifier, resource.externalIdentifier); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Resource {\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(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" endOperatingDate: ").append(toIndentedString(endOperatingDate)).append("\n"); + sb.append(" administrativeState: ").append(toIndentedString(administrativeState)).append("\n"); + sb.append(" operationalState: ").append(toIndentedString(operationalState)).append("\n"); + sb.append(" resourceStatus: ").append(toIndentedString(resourceStatus)).append("\n"); + sb.append(" usageState: ").append(toIndentedString(usageState)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" resourceOrderItem: ").append(toIndentedString(resourceOrderItem)).append("\n"); + sb.append(" place: ").append(toIndentedString(place)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" resourceRelationship: ").append(toIndentedString(resourceRelationship)).append("\n"); + sb.append(" resourceCharacteristic: ").append(toIndentedString(resourceCharacteristic)).append("\n"); + sb.append(" attachment: ").append(toIndentedString(attachment)).append("\n"); + sb.append(" resourceSpecification: ").append(toIndentedString(resourceSpecification)).append("\n"); + sb.append(" startOperatingDate: ").append(toIndentedString(startOperatingDate)).append("\n"); + sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); + sb.append(" activationFeature: ").append(toIndentedString(activationFeature)).append("\n"); + sb.append(" intent: ").append(toIndentedString(intent)).append("\n"); + sb.append(" externalIdentifier: ").append(toIndentedString(externalIdentifier)).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/ResourceAdministrativeStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java new file mode 100644 index 0000000..5a771ee --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java @@ -0,0 +1,58 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * ResourceAdministrativeStateType enumerations + */ + +@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 ResourceAdministrativeStateType { + + LOCKED("locked"), + + UNLOCKED("unlocked"), + + SHUTDOWN("shutdown"); + + private String value; + + ResourceAdministrativeStateType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ResourceAdministrativeStateType fromValue(String value) { + for (ResourceAdministrativeStateType b : ResourceAdministrativeStateType.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/ResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java new file mode 100644 index 0000000..0ff727d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java @@ -0,0 +1,838 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefFVO; +import org.openapitools.model.CharacteristicFVO; +import org.openapitools.model.ExternalIdentifierFVO; +import org.openapitools.model.FeatureFVO; +import org.openapitools.model.IntentRefFVO; +import org.openapitools.model.NoteFVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.openapitools.model.RelatedPlaceRefFVO; +import org.openapitools.model.RelatedResourceOrderItemFVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationshipFVO; +import org.openapitools.model.ResourceSpecificationRefFVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceFVO + */ + +@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 = DataAccessEndpointFVO.class, name = "DataAccessEndpoint"), + @JsonSubTypes.Type(value = LogicalResourceFVO.class, name = "LogicalResource"), + @JsonSubTypes.Type(value = ResourceFVO.class, name = "Resource") +}) + +@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 ResourceFVO implements ResourceRefOrValueFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String category; + + private String description; + + private String name; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endOperatingDate; + + private ResourceAdministrativeStateType administrativeState; + + private ResourceOperationalStateType operationalState; + + private ResourceStatusType resourceStatus; + + private ResourceUsageStateType usageState; + + private TimePeriod validFor; + + @Valid + private List note = new ArrayList<>(); + + @Valid + private List resourceOrderItem = new ArrayList<>(); + + @Valid + private List place = new ArrayList<>(); + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List resourceRelationship = new ArrayList<>(); + + @Valid + private List resourceCharacteristic = new ArrayList<>(); + + @Valid + private List attachment = new ArrayList<>(); + + private ResourceSpecificationRefFVO resourceSpecification; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startOperatingDate; + + private String resourceVersion; + + @Valid + private List activationFeature = new ArrayList<>(); + + private IntentRefFVO intent; + + @Valid + private List externalIdentifier = new ArrayList<>(); + + public ResourceFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceFVO(String atType) { + this.atType = atType; + } + + public ResourceFVO 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 ResourceFVO 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 ResourceFVO 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 ResourceFVO 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 ResourceFVO 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 ResourceFVO category(String category) { + this.category = category; + return this; + } + + /** + * Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource + * @return category + */ + + @Schema(name = "category", description = "Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("category") + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public ResourceFVO description(String description) { + this.description = description; + return this; + } + + /** + * free-text description of the resource + * @return description + */ + + @Schema(name = "description", description = "free-text description of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ResourceFVO name(String name) { + this.name = name; + return this; + } + + /** + * the name of the resource + * @return name + */ + + @Schema(name = "name", description = "the name of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ResourceFVO endOperatingDate(OffsetDateTime endOperatingDate) { + this.endOperatingDate = endOperatingDate; + return this; + } + + /** + * A date time( DateTime). The date till the resource is operating + * @return endOperatingDate + */ + @Valid + @Schema(name = "endOperatingDate", description = "A date time( DateTime). The date till the resource is operating", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("endOperatingDate") + public OffsetDateTime getEndOperatingDate() { + return endOperatingDate; + } + + public void setEndOperatingDate(OffsetDateTime endOperatingDate) { + this.endOperatingDate = endOperatingDate; + } + + public ResourceFVO administrativeState(ResourceAdministrativeStateType administrativeState) { + this.administrativeState = administrativeState; + return this; + } + + /** + * Get administrativeState + * @return administrativeState + */ + @Valid + @Schema(name = "administrativeState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("administrativeState") + public ResourceAdministrativeStateType getAdministrativeState() { + return administrativeState; + } + + public void setAdministrativeState(ResourceAdministrativeStateType administrativeState) { + this.administrativeState = administrativeState; + } + + public ResourceFVO operationalState(ResourceOperationalStateType operationalState) { + this.operationalState = operationalState; + return this; + } + + /** + * Get operationalState + * @return operationalState + */ + @Valid + @Schema(name = "operationalState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("operationalState") + public ResourceOperationalStateType getOperationalState() { + return operationalState; + } + + public void setOperationalState(ResourceOperationalStateType operationalState) { + this.operationalState = operationalState; + } + + public ResourceFVO resourceStatus(ResourceStatusType resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Get resourceStatus + * @return resourceStatus + */ + @Valid + @Schema(name = "resourceStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceStatus") + public ResourceStatusType getResourceStatus() { + return resourceStatus; + } + + public void setResourceStatus(ResourceStatusType resourceStatus) { + this.resourceStatus = resourceStatus; + } + + public ResourceFVO usageState(ResourceUsageStateType usageState) { + this.usageState = usageState; + return this; + } + + /** + * Get usageState + * @return usageState + */ + @Valid + @Schema(name = "usageState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("usageState") + public ResourceUsageStateType getUsageState() { + return usageState; + } + + public void setUsageState(ResourceUsageStateType usageState) { + this.usageState = usageState; + } + + public ResourceFVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public ResourceFVO note(List note) { + this.note = note; + return this; + } + + public ResourceFVO addNoteItem(NoteFVO noteItem) { + if (this.note == null) { + this.note = new ArrayList<>(); + } + this.note.add(noteItem); + return this; + } + + /** + * Get note + * @return note + */ + @Valid + @Schema(name = "note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("note") + public List getNote() { + return note; + } + + public void setNote(List note) { + this.note = note; + } + + public ResourceFVO resourceOrderItem(List resourceOrderItem) { + this.resourceOrderItem = resourceOrderItem; + return this; + } + + public ResourceFVO addResourceOrderItemItem(RelatedResourceOrderItemFVO resourceOrderItemItem) { + if (this.resourceOrderItem == null) { + this.resourceOrderItem = new ArrayList<>(); + } + this.resourceOrderItem.add(resourceOrderItemItem); + return this; + } + + /** + * A list of resource order items related to this resource + * @return resourceOrderItem + */ + @Valid + @Schema(name = "resourceOrderItem", description = "A list of resource order items related to this resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderItem") + public List getResourceOrderItem() { + return resourceOrderItem; + } + + public void setResourceOrderItem(List resourceOrderItem) { + this.resourceOrderItem = resourceOrderItem; + } + + public ResourceFVO place(List place) { + this.place = place; + return this; + } + + public ResourceFVO addPlaceItem(RelatedPlaceRefFVO placeItem) { + if (this.place == null) { + this.place = new ArrayList<>(); + } + this.place.add(placeItem); + return this; + } + + /** + * Get place + * @return place + */ + @Valid + @Schema(name = "place", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("place") + public List getPlace() { + return place; + } + + public void setPlace(List place) { + this.place = place; + } + + public ResourceFVO relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public ResourceFVO addRelatedPartyItem(RelatedPartyRefOrPartyRoleRefFVO relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Get relatedParty + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public ResourceFVO resourceRelationship(List resourceRelationship) { + this.resourceRelationship = resourceRelationship; + return this; + } + + public ResourceFVO addResourceRelationshipItem(ResourceRelationshipFVO resourceRelationshipItem) { + if (this.resourceRelationship == null) { + this.resourceRelationship = new ArrayList<>(); + } + this.resourceRelationship.add(resourceRelationshipItem); + return this; + } + + /** + * Get resourceRelationship + * @return resourceRelationship + */ + @Valid + @Schema(name = "resourceRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceRelationship") + public List getResourceRelationship() { + return resourceRelationship; + } + + public void setResourceRelationship(List resourceRelationship) { + this.resourceRelationship = resourceRelationship; + } + + public ResourceFVO resourceCharacteristic(List resourceCharacteristic) { + this.resourceCharacteristic = resourceCharacteristic; + return this; + } + + public ResourceFVO addResourceCharacteristicItem(CharacteristicFVO resourceCharacteristicItem) { + if (this.resourceCharacteristic == null) { + this.resourceCharacteristic = new ArrayList<>(); + } + this.resourceCharacteristic.add(resourceCharacteristicItem); + return this; + } + + /** + * Get resourceCharacteristic + * @return resourceCharacteristic + */ + @Valid + @Schema(name = "resourceCharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceCharacteristic") + public List getResourceCharacteristic() { + return resourceCharacteristic; + } + + public void setResourceCharacteristic(List resourceCharacteristic) { + this.resourceCharacteristic = resourceCharacteristic; + } + + public ResourceFVO attachment(List attachment) { + this.attachment = attachment; + return this; + } + + public ResourceFVO addAttachmentItem(AttachmentRefFVO attachmentItem) { + if (this.attachment == null) { + this.attachment = new ArrayList<>(); + } + this.attachment.add(attachmentItem); + return this; + } + + /** + * Get attachment + * @return attachment + */ + @Valid + @Schema(name = "attachment", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("attachment") + public List getAttachment() { + return attachment; + } + + public void setAttachment(List attachment) { + this.attachment = attachment; + } + + public ResourceFVO resourceSpecification(ResourceSpecificationRefFVO resourceSpecification) { + this.resourceSpecification = resourceSpecification; + return this; + } + + /** + * Get resourceSpecification + * @return resourceSpecification + */ + @Valid + @Schema(name = "resourceSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceSpecification") + public ResourceSpecificationRefFVO getResourceSpecification() { + return resourceSpecification; + } + + public void setResourceSpecification(ResourceSpecificationRefFVO resourceSpecification) { + this.resourceSpecification = resourceSpecification; + } + + public ResourceFVO startOperatingDate(OffsetDateTime startOperatingDate) { + this.startOperatingDate = startOperatingDate; + return this; + } + + /** + * A date time( DateTime). The date from which the resource is operating + * @return startOperatingDate + */ + @Valid + @Schema(name = "startOperatingDate", description = "A date time( DateTime). The date from which the resource is operating", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("startOperatingDate") + public OffsetDateTime getStartOperatingDate() { + return startOperatingDate; + } + + public void setStartOperatingDate(OffsetDateTime startOperatingDate) { + this.startOperatingDate = startOperatingDate; + } + + public ResourceFVO resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * A field that identifies the specific version of an instance of a resource. + * @return resourceVersion + */ + + @Schema(name = "resourceVersion", description = "A field that identifies the specific version of an instance of a resource.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceVersion") + public String getResourceVersion() { + return resourceVersion; + } + + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public ResourceFVO activationFeature(List activationFeature) { + this.activationFeature = activationFeature; + return this; + } + + public ResourceFVO addActivationFeatureItem(FeatureFVO activationFeatureItem) { + if (this.activationFeature == null) { + this.activationFeature = new ArrayList<>(); + } + this.activationFeature.add(activationFeatureItem); + return this; + } + + /** + * Configuration features + * @return activationFeature + */ + @Valid + @Schema(name = "activationFeature", description = "Configuration features", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("activationFeature") + public List getActivationFeature() { + return activationFeature; + } + + public void setActivationFeature(List activationFeature) { + this.activationFeature = activationFeature; + } + + public ResourceFVO intent(IntentRefFVO intent) { + this.intent = intent; + return this; + } + + /** + * Get intent + * @return intent + */ + @Valid + @Schema(name = "intent", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("intent") + public IntentRefFVO getIntent() { + return intent; + } + + public void setIntent(IntentRefFVO intent) { + this.intent = intent; + } + + public ResourceFVO externalIdentifier(List externalIdentifier) { + this.externalIdentifier = externalIdentifier; + return this; + } + + public ResourceFVO addExternalIdentifierItem(ExternalIdentifierFVO externalIdentifierItem) { + if (this.externalIdentifier == null) { + this.externalIdentifier = new ArrayList<>(); + } + this.externalIdentifier.add(externalIdentifierItem); + return this; + } + + /** + * An identification of this resource that is owned by or originates in a software system different from the current system. The structure identifies the system itself, the nature of the resource within the system and the unique ID of the resource within the system. It is anticipated that multiple external IDs can be held for a single resource, e.g. if the resource passed through multiple systems on the way to the current system. + * @return externalIdentifier + */ + @Valid + @Schema(name = "externalIdentifier", description = "An identification of this resource that is owned by or originates in a software system different from the current system. The structure identifies the system itself, the nature of the resource within the system and the unique ID of the resource within the system. It is anticipated that multiple external IDs can be held for a single resource, e.g. if the resource passed through multiple systems on the way to the current system.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("externalIdentifier") + public List getExternalIdentifier() { + return externalIdentifier; + } + + public void setExternalIdentifier(List externalIdentifier) { + this.externalIdentifier = externalIdentifier; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceFVO resourceFVO = (ResourceFVO) o; + return Objects.equals(this.atType, resourceFVO.atType) && + Objects.equals(this.atBaseType, resourceFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceFVO.atSchemaLocation) && + Objects.equals(this.href, resourceFVO.href) && + Objects.equals(this.id, resourceFVO.id) && + Objects.equals(this.category, resourceFVO.category) && + Objects.equals(this.description, resourceFVO.description) && + Objects.equals(this.name, resourceFVO.name) && + Objects.equals(this.endOperatingDate, resourceFVO.endOperatingDate) && + Objects.equals(this.administrativeState, resourceFVO.administrativeState) && + Objects.equals(this.operationalState, resourceFVO.operationalState) && + Objects.equals(this.resourceStatus, resourceFVO.resourceStatus) && + Objects.equals(this.usageState, resourceFVO.usageState) && + Objects.equals(this.validFor, resourceFVO.validFor) && + Objects.equals(this.note, resourceFVO.note) && + Objects.equals(this.resourceOrderItem, resourceFVO.resourceOrderItem) && + Objects.equals(this.place, resourceFVO.place) && + Objects.equals(this.relatedParty, resourceFVO.relatedParty) && + Objects.equals(this.resourceRelationship, resourceFVO.resourceRelationship) && + Objects.equals(this.resourceCharacteristic, resourceFVO.resourceCharacteristic) && + Objects.equals(this.attachment, resourceFVO.attachment) && + Objects.equals(this.resourceSpecification, resourceFVO.resourceSpecification) && + Objects.equals(this.startOperatingDate, resourceFVO.startOperatingDate) && + Objects.equals(this.resourceVersion, resourceFVO.resourceVersion) && + Objects.equals(this.activationFeature, resourceFVO.activationFeature) && + Objects.equals(this.intent, resourceFVO.intent) && + Objects.equals(this.externalIdentifier, resourceFVO.externalIdentifier); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceFVO {\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(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" endOperatingDate: ").append(toIndentedString(endOperatingDate)).append("\n"); + sb.append(" administrativeState: ").append(toIndentedString(administrativeState)).append("\n"); + sb.append(" operationalState: ").append(toIndentedString(operationalState)).append("\n"); + sb.append(" resourceStatus: ").append(toIndentedString(resourceStatus)).append("\n"); + sb.append(" usageState: ").append(toIndentedString(usageState)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" resourceOrderItem: ").append(toIndentedString(resourceOrderItem)).append("\n"); + sb.append(" place: ").append(toIndentedString(place)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" resourceRelationship: ").append(toIndentedString(resourceRelationship)).append("\n"); + sb.append(" resourceCharacteristic: ").append(toIndentedString(resourceCharacteristic)).append("\n"); + sb.append(" attachment: ").append(toIndentedString(attachment)).append("\n"); + sb.append(" resourceSpecification: ").append(toIndentedString(resourceSpecification)).append("\n"); + sb.append(" startOperatingDate: ").append(toIndentedString(startOperatingDate)).append("\n"); + sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); + sb.append(" activationFeature: ").append(toIndentedString(activationFeature)).append("\n"); + sb.append(" intent: ").append(toIndentedString(intent)).append("\n"); + sb.append(" externalIdentifier: ").append(toIndentedString(externalIdentifier)).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/ResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java new file mode 100644 index 0000000..609b346 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java @@ -0,0 +1,838 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefMVO; +import org.openapitools.model.CharacteristicMVO; +import org.openapitools.model.ExternalIdentifierMVO; +import org.openapitools.model.FeatureMVO; +import org.openapitools.model.IntentRefMVO; +import org.openapitools.model.NoteMVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.openapitools.model.RelatedPlaceRefMVO; +import org.openapitools.model.RelatedResourceOrderItemMVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRelationshipMVO; +import org.openapitools.model.ResourceSpecificationRefMVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceMVO + */ + +@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 = DataAccessEndpointMVO.class, name = "DataAccessEndpoint"), + @JsonSubTypes.Type(value = LogicalResourceMVO.class, name = "LogicalResource"), + @JsonSubTypes.Type(value = ResourceMVO.class, name = "Resource") +}) + +@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 ResourceMVO implements ResourceRefOrValueMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String category; + + private String description; + + private String name; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endOperatingDate; + + private ResourceAdministrativeStateType administrativeState; + + private ResourceOperationalStateType operationalState; + + private ResourceStatusType resourceStatus; + + private ResourceUsageStateType usageState; + + private TimePeriod validFor; + + @Valid + private List note = new ArrayList<>(); + + @Valid + private List resourceOrderItem = new ArrayList<>(); + + @Valid + private List place = new ArrayList<>(); + + @Valid + private List relatedParty = new ArrayList<>(); + + @Valid + private List resourceRelationship = new ArrayList<>(); + + @Valid + private List resourceCharacteristic = new ArrayList<>(); + + @Valid + private List attachment = new ArrayList<>(); + + private ResourceSpecificationRefMVO resourceSpecification; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startOperatingDate; + + private String resourceVersion; + + @Valid + private List activationFeature = new ArrayList<>(); + + private IntentRefMVO intent; + + @Valid + private List externalIdentifier = new ArrayList<>(); + + public ResourceMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceMVO(String atType) { + this.atType = atType; + } + + public ResourceMVO 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 ResourceMVO 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 ResourceMVO 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 ResourceMVO 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 ResourceMVO 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 ResourceMVO category(String category) { + this.category = category; + return this; + } + + /** + * Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource + * @return category + */ + + @Schema(name = "category", description = "Category of the concrete resource. e.g Gold, Silver for MSISDN concrete resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("category") + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public ResourceMVO description(String description) { + this.description = description; + return this; + } + + /** + * free-text description of the resource + * @return description + */ + + @Schema(name = "description", description = "free-text description of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ResourceMVO name(String name) { + this.name = name; + return this; + } + + /** + * the name of the resource + * @return name + */ + + @Schema(name = "name", description = "the name of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("name") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ResourceMVO endOperatingDate(OffsetDateTime endOperatingDate) { + this.endOperatingDate = endOperatingDate; + return this; + } + + /** + * A date time( DateTime). The date till the resource is operating + * @return endOperatingDate + */ + @Valid + @Schema(name = "endOperatingDate", description = "A date time( DateTime). The date till the resource is operating", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("endOperatingDate") + public OffsetDateTime getEndOperatingDate() { + return endOperatingDate; + } + + public void setEndOperatingDate(OffsetDateTime endOperatingDate) { + this.endOperatingDate = endOperatingDate; + } + + public ResourceMVO administrativeState(ResourceAdministrativeStateType administrativeState) { + this.administrativeState = administrativeState; + return this; + } + + /** + * Get administrativeState + * @return administrativeState + */ + @Valid + @Schema(name = "administrativeState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("administrativeState") + public ResourceAdministrativeStateType getAdministrativeState() { + return administrativeState; + } + + public void setAdministrativeState(ResourceAdministrativeStateType administrativeState) { + this.administrativeState = administrativeState; + } + + public ResourceMVO operationalState(ResourceOperationalStateType operationalState) { + this.operationalState = operationalState; + return this; + } + + /** + * Get operationalState + * @return operationalState + */ + @Valid + @Schema(name = "operationalState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("operationalState") + public ResourceOperationalStateType getOperationalState() { + return operationalState; + } + + public void setOperationalState(ResourceOperationalStateType operationalState) { + this.operationalState = operationalState; + } + + public ResourceMVO resourceStatus(ResourceStatusType resourceStatus) { + this.resourceStatus = resourceStatus; + return this; + } + + /** + * Get resourceStatus + * @return resourceStatus + */ + @Valid + @Schema(name = "resourceStatus", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceStatus") + public ResourceStatusType getResourceStatus() { + return resourceStatus; + } + + public void setResourceStatus(ResourceStatusType resourceStatus) { + this.resourceStatus = resourceStatus; + } + + public ResourceMVO usageState(ResourceUsageStateType usageState) { + this.usageState = usageState; + return this; + } + + /** + * Get usageState + * @return usageState + */ + @Valid + @Schema(name = "usageState", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("usageState") + public ResourceUsageStateType getUsageState() { + return usageState; + } + + public void setUsageState(ResourceUsageStateType usageState) { + this.usageState = usageState; + } + + public ResourceMVO validFor(TimePeriod validFor) { + this.validFor = validFor; + return this; + } + + /** + * Get validFor + * @return validFor + */ + @Valid + @Schema(name = "validFor", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("validFor") + public TimePeriod getValidFor() { + return validFor; + } + + public void setValidFor(TimePeriod validFor) { + this.validFor = validFor; + } + + public ResourceMVO note(List note) { + this.note = note; + return this; + } + + public ResourceMVO addNoteItem(NoteMVO noteItem) { + if (this.note == null) { + this.note = new ArrayList<>(); + } + this.note.add(noteItem); + return this; + } + + /** + * Get note + * @return note + */ + @Valid + @Schema(name = "note", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("note") + public List getNote() { + return note; + } + + public void setNote(List note) { + this.note = note; + } + + public ResourceMVO resourceOrderItem(List resourceOrderItem) { + this.resourceOrderItem = resourceOrderItem; + return this; + } + + public ResourceMVO addResourceOrderItemItem(RelatedResourceOrderItemMVO resourceOrderItemItem) { + if (this.resourceOrderItem == null) { + this.resourceOrderItem = new ArrayList<>(); + } + this.resourceOrderItem.add(resourceOrderItemItem); + return this; + } + + /** + * A list of resource order items related to this resource + * @return resourceOrderItem + */ + @Valid + @Schema(name = "resourceOrderItem", description = "A list of resource order items related to this resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceOrderItem") + public List getResourceOrderItem() { + return resourceOrderItem; + } + + public void setResourceOrderItem(List resourceOrderItem) { + this.resourceOrderItem = resourceOrderItem; + } + + public ResourceMVO place(List place) { + this.place = place; + return this; + } + + public ResourceMVO addPlaceItem(RelatedPlaceRefMVO placeItem) { + if (this.place == null) { + this.place = new ArrayList<>(); + } + this.place.add(placeItem); + return this; + } + + /** + * Get place + * @return place + */ + @Valid + @Schema(name = "place", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("place") + public List getPlace() { + return place; + } + + public void setPlace(List place) { + this.place = place; + } + + public ResourceMVO relatedParty(List relatedParty) { + this.relatedParty = relatedParty; + return this; + } + + public ResourceMVO addRelatedPartyItem(RelatedPartyRefOrPartyRoleRefMVO relatedPartyItem) { + if (this.relatedParty == null) { + this.relatedParty = new ArrayList<>(); + } + this.relatedParty.add(relatedPartyItem); + return this; + } + + /** + * Get relatedParty + * @return relatedParty + */ + @Valid + @Schema(name = "relatedParty", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("relatedParty") + public List getRelatedParty() { + return relatedParty; + } + + public void setRelatedParty(List relatedParty) { + this.relatedParty = relatedParty; + } + + public ResourceMVO resourceRelationship(List resourceRelationship) { + this.resourceRelationship = resourceRelationship; + return this; + } + + public ResourceMVO addResourceRelationshipItem(ResourceRelationshipMVO resourceRelationshipItem) { + if (this.resourceRelationship == null) { + this.resourceRelationship = new ArrayList<>(); + } + this.resourceRelationship.add(resourceRelationshipItem); + return this; + } + + /** + * Get resourceRelationship + * @return resourceRelationship + */ + @Valid + @Schema(name = "resourceRelationship", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceRelationship") + public List getResourceRelationship() { + return resourceRelationship; + } + + public void setResourceRelationship(List resourceRelationship) { + this.resourceRelationship = resourceRelationship; + } + + public ResourceMVO resourceCharacteristic(List resourceCharacteristic) { + this.resourceCharacteristic = resourceCharacteristic; + return this; + } + + public ResourceMVO addResourceCharacteristicItem(CharacteristicMVO resourceCharacteristicItem) { + if (this.resourceCharacteristic == null) { + this.resourceCharacteristic = new ArrayList<>(); + } + this.resourceCharacteristic.add(resourceCharacteristicItem); + return this; + } + + /** + * Get resourceCharacteristic + * @return resourceCharacteristic + */ + @Valid + @Schema(name = "resourceCharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceCharacteristic") + public List getResourceCharacteristic() { + return resourceCharacteristic; + } + + public void setResourceCharacteristic(List resourceCharacteristic) { + this.resourceCharacteristic = resourceCharacteristic; + } + + public ResourceMVO attachment(List attachment) { + this.attachment = attachment; + return this; + } + + public ResourceMVO addAttachmentItem(AttachmentRefMVO attachmentItem) { + if (this.attachment == null) { + this.attachment = new ArrayList<>(); + } + this.attachment.add(attachmentItem); + return this; + } + + /** + * Get attachment + * @return attachment + */ + @Valid + @Schema(name = "attachment", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("attachment") + public List getAttachment() { + return attachment; + } + + public void setAttachment(List attachment) { + this.attachment = attachment; + } + + public ResourceMVO resourceSpecification(ResourceSpecificationRefMVO resourceSpecification) { + this.resourceSpecification = resourceSpecification; + return this; + } + + /** + * Get resourceSpecification + * @return resourceSpecification + */ + @Valid + @Schema(name = "resourceSpecification", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceSpecification") + public ResourceSpecificationRefMVO getResourceSpecification() { + return resourceSpecification; + } + + public void setResourceSpecification(ResourceSpecificationRefMVO resourceSpecification) { + this.resourceSpecification = resourceSpecification; + } + + public ResourceMVO startOperatingDate(OffsetDateTime startOperatingDate) { + this.startOperatingDate = startOperatingDate; + return this; + } + + /** + * A date time( DateTime). The date from which the resource is operating + * @return startOperatingDate + */ + @Valid + @Schema(name = "startOperatingDate", description = "A date time( DateTime). The date from which the resource is operating", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("startOperatingDate") + public OffsetDateTime getStartOperatingDate() { + return startOperatingDate; + } + + public void setStartOperatingDate(OffsetDateTime startOperatingDate) { + this.startOperatingDate = startOperatingDate; + } + + public ResourceMVO resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * A field that identifies the specific version of an instance of a resource. + * @return resourceVersion + */ + + @Schema(name = "resourceVersion", description = "A field that identifies the specific version of an instance of a resource.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceVersion") + public String getResourceVersion() { + return resourceVersion; + } + + public void setResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public ResourceMVO activationFeature(List activationFeature) { + this.activationFeature = activationFeature; + return this; + } + + public ResourceMVO addActivationFeatureItem(FeatureMVO activationFeatureItem) { + if (this.activationFeature == null) { + this.activationFeature = new ArrayList<>(); + } + this.activationFeature.add(activationFeatureItem); + return this; + } + + /** + * Configuration features + * @return activationFeature + */ + @Valid + @Schema(name = "activationFeature", description = "Configuration features", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("activationFeature") + public List getActivationFeature() { + return activationFeature; + } + + public void setActivationFeature(List activationFeature) { + this.activationFeature = activationFeature; + } + + public ResourceMVO intent(IntentRefMVO intent) { + this.intent = intent; + return this; + } + + /** + * Get intent + * @return intent + */ + @Valid + @Schema(name = "intent", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("intent") + public IntentRefMVO getIntent() { + return intent; + } + + public void setIntent(IntentRefMVO intent) { + this.intent = intent; + } + + public ResourceMVO externalIdentifier(List externalIdentifier) { + this.externalIdentifier = externalIdentifier; + return this; + } + + public ResourceMVO addExternalIdentifierItem(ExternalIdentifierMVO externalIdentifierItem) { + if (this.externalIdentifier == null) { + this.externalIdentifier = new ArrayList<>(); + } + this.externalIdentifier.add(externalIdentifierItem); + return this; + } + + /** + * An identification of this resource that is owned by or originates in a software system different from the current system. The structure identifies the system itself, the nature of the resource within the system and the unique ID of the resource within the system. It is anticipated that multiple external IDs can be held for a single resource, e.g. if the resource passed through multiple systems on the way to the current system. + * @return externalIdentifier + */ + @Valid + @Schema(name = "externalIdentifier", description = "An identification of this resource that is owned by or originates in a software system different from the current system. The structure identifies the system itself, the nature of the resource within the system and the unique ID of the resource within the system. It is anticipated that multiple external IDs can be held for a single resource, e.g. if the resource passed through multiple systems on the way to the current system.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("externalIdentifier") + public List getExternalIdentifier() { + return externalIdentifier; + } + + public void setExternalIdentifier(List externalIdentifier) { + this.externalIdentifier = externalIdentifier; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceMVO resourceMVO = (ResourceMVO) o; + return Objects.equals(this.atType, resourceMVO.atType) && + Objects.equals(this.atBaseType, resourceMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceMVO.atSchemaLocation) && + Objects.equals(this.href, resourceMVO.href) && + Objects.equals(this.id, resourceMVO.id) && + Objects.equals(this.category, resourceMVO.category) && + Objects.equals(this.description, resourceMVO.description) && + Objects.equals(this.name, resourceMVO.name) && + Objects.equals(this.endOperatingDate, resourceMVO.endOperatingDate) && + Objects.equals(this.administrativeState, resourceMVO.administrativeState) && + Objects.equals(this.operationalState, resourceMVO.operationalState) && + Objects.equals(this.resourceStatus, resourceMVO.resourceStatus) && + Objects.equals(this.usageState, resourceMVO.usageState) && + Objects.equals(this.validFor, resourceMVO.validFor) && + Objects.equals(this.note, resourceMVO.note) && + Objects.equals(this.resourceOrderItem, resourceMVO.resourceOrderItem) && + Objects.equals(this.place, resourceMVO.place) && + Objects.equals(this.relatedParty, resourceMVO.relatedParty) && + Objects.equals(this.resourceRelationship, resourceMVO.resourceRelationship) && + Objects.equals(this.resourceCharacteristic, resourceMVO.resourceCharacteristic) && + Objects.equals(this.attachment, resourceMVO.attachment) && + Objects.equals(this.resourceSpecification, resourceMVO.resourceSpecification) && + Objects.equals(this.startOperatingDate, resourceMVO.startOperatingDate) && + Objects.equals(this.resourceVersion, resourceMVO.resourceVersion) && + Objects.equals(this.activationFeature, resourceMVO.activationFeature) && + Objects.equals(this.intent, resourceMVO.intent) && + Objects.equals(this.externalIdentifier, resourceMVO.externalIdentifier); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceMVO {\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(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" endOperatingDate: ").append(toIndentedString(endOperatingDate)).append("\n"); + sb.append(" administrativeState: ").append(toIndentedString(administrativeState)).append("\n"); + sb.append(" operationalState: ").append(toIndentedString(operationalState)).append("\n"); + sb.append(" resourceStatus: ").append(toIndentedString(resourceStatus)).append("\n"); + sb.append(" usageState: ").append(toIndentedString(usageState)).append("\n"); + sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" resourceOrderItem: ").append(toIndentedString(resourceOrderItem)).append("\n"); + sb.append(" place: ").append(toIndentedString(place)).append("\n"); + sb.append(" relatedParty: ").append(toIndentedString(relatedParty)).append("\n"); + sb.append(" resourceRelationship: ").append(toIndentedString(resourceRelationship)).append("\n"); + sb.append(" resourceCharacteristic: ").append(toIndentedString(resourceCharacteristic)).append("\n"); + sb.append(" attachment: ").append(toIndentedString(attachment)).append("\n"); + sb.append(" resourceSpecification: ").append(toIndentedString(resourceSpecification)).append("\n"); + sb.append(" startOperatingDate: ").append(toIndentedString(startOperatingDate)).append("\n"); + sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); + sb.append(" activationFeature: ").append(toIndentedString(activationFeature)).append("\n"); + sb.append(" intent: ").append(toIndentedString(intent)).append("\n"); + sb.append(" externalIdentifier: ").append(toIndentedString(externalIdentifier)).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/ResourceOperationalStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java new file mode 100644 index 0000000..d0ee5cf --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java @@ -0,0 +1,56 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * ResourceOperationalStateType enumerations + */ + +@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 ResourceOperationalStateType { + + ENABLE("enable"), + + DISABLE("disable"); + + private String value; + + ResourceOperationalStateType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ResourceOperationalStateType fromValue(String value) { + for (ResourceOperationalStateType b : ResourceOperationalStateType.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/ResourceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java new file mode 100644 index 0000000..532ecd7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java @@ -0,0 +1,250 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Resource reference, for when Resource is used by other entities. + */ + +@Schema(name = "ResourceRef", description = "Resource reference, for when Resource is used by other entities.") + +@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 ResourceRef implements ResourceRefOrValue { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public ResourceRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public ResourceRef 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 ResourceRef 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 ResourceRef 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 ResourceRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public ResourceRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ResourceRef 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 ResourceRef 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; + } + ResourceRef resourceRef = (ResourceRef) o; + return Objects.equals(this.atType, resourceRef.atType) && + Objects.equals(this.atBaseType, resourceRef.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceRef.atSchemaLocation) && + Objects.equals(this.href, resourceRef.href) && + Objects.equals(this.id, resourceRef.id) && + Objects.equals(this.name, resourceRef.name) && + Objects.equals(this.atReferredType, resourceRef.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 ResourceRef {\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/ResourceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java new file mode 100644 index 0000000..ece8f6b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java @@ -0,0 +1,250 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Resource reference, for when Resource is used by other entities. + */ + +@Schema(name = "ResourceRef_FVO", description = "Resource reference, for when Resource is used by other entities.") + +@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 ResourceRefFVO implements ResourceRefOrValueFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public ResourceRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceRefFVO(String atType) { + this.atType = atType; + } + + public ResourceRefFVO 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 ResourceRefFVO 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 ResourceRefFVO 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 ResourceRefFVO 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 ResourceRefFVO 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 ResourceRefFVO 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 ResourceRefFVO 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; + } + ResourceRefFVO resourceRefFVO = (ResourceRefFVO) o; + return Objects.equals(this.atType, resourceRefFVO.atType) && + Objects.equals(this.atBaseType, resourceRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceRefFVO.atSchemaLocation) && + Objects.equals(this.href, resourceRefFVO.href) && + Objects.equals(this.id, resourceRefFVO.id) && + Objects.equals(this.name, resourceRefFVO.name) && + Objects.equals(this.atReferredType, resourceRefFVO.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 ResourceRefFVO {\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/ResourceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java new file mode 100644 index 0000000..885a592 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java @@ -0,0 +1,250 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * Resource reference, for when Resource is used by other entities. + */ + +@Schema(name = "ResourceRef_MVO", description = "Resource reference, for when Resource is used by other entities.") + +@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 ResourceRefMVO implements ResourceRefOrValueMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + public ResourceRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceRefMVO(String atType) { + this.atType = atType; + } + + public ResourceRefMVO 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 ResourceRefMVO 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 ResourceRefMVO 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 ResourceRefMVO 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 ResourceRefMVO 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 ResourceRefMVO 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 ResourceRefMVO 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; + } + ResourceRefMVO resourceRefMVO = (ResourceRefMVO) o; + return Objects.equals(this.atType, resourceRefMVO.atType) && + Objects.equals(this.atBaseType, resourceRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceRefMVO.atSchemaLocation) && + Objects.equals(this.href, resourceRefMVO.href) && + Objects.equals(this.id, resourceRefMVO.id) && + Objects.equals(this.name, resourceRefMVO.name) && + Objects.equals(this.atReferredType, resourceRefMVO.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 ResourceRefMVO {\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/ResourceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java new file mode 100644 index 0000000..b1b42a3 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java @@ -0,0 +1,60 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRef; +import org.openapitools.model.Characteristic; +import org.openapitools.model.ExternalIdentifier; +import org.openapitools.model.Feature; +import org.openapitools.model.IntentRef; +import org.openapitools.model.Note; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.openapitools.model.RelatedPlaceRef; +import org.openapitools.model.RelatedResourceOrderItem; +import org.openapitools.model.Resource; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRef; +import org.openapitools.model.ResourceRelationship; +import org.openapitools.model.ResourceSpecificationRef; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = DataAccessEndpoint.class, name = "DataAccessEndpoint"), + @JsonSubTypes.Type(value = LogicalResource.class, name = "LogicalResource"), + @JsonSubTypes.Type(value = Resource.class, name = "Resource"), + @JsonSubTypes.Type(value = ResourceRef.class, name = "ResourceRef") +}) + +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") +public interface ResourceRefOrValue { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java new file mode 100644 index 0000000..743a86d --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java @@ -0,0 +1,63 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefFVO; +import org.openapitools.model.CharacteristicFVO; +import org.openapitools.model.ExternalIdentifierFVO; +import org.openapitools.model.FeatureFVO; +import org.openapitools.model.IntentRefFVO; +import org.openapitools.model.NoteFVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.openapitools.model.RelatedPlaceRefFVO; +import org.openapitools.model.RelatedResourceOrderItemFVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceFVO; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRefFVO; +import org.openapitools.model.ResourceRelationshipFVO; +import org.openapitools.model.ResourceSpecificationRefFVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = DataAccessEndpointFVO.class, name = "DataAccessEndpoint"), + @JsonSubTypes.Type(value = LogicalResourceFVO.class, name = "LogicalResource"), + @JsonSubTypes.Type(value = ResourceFVO.class, name = "Resource"), + @JsonSubTypes.Type(value = ResourceRefFVO.class, name = "ResourceRef"), + @JsonSubTypes.Type(value = ResourceRefFVO.class, name = "ResourceRef_FVO"), + @JsonSubTypes.Type(value = ResourceFVO.class, name = "Resource_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 interface ResourceRefOrValueFVO { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java new file mode 100644 index 0000000..173c8fc --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java @@ -0,0 +1,63 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.AttachmentRefMVO; +import org.openapitools.model.CharacteristicMVO; +import org.openapitools.model.ExternalIdentifierMVO; +import org.openapitools.model.FeatureMVO; +import org.openapitools.model.IntentRefMVO; +import org.openapitools.model.NoteMVO; +import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.openapitools.model.RelatedPlaceRefMVO; +import org.openapitools.model.RelatedResourceOrderItemMVO; +import org.openapitools.model.ResourceAdministrativeStateType; +import org.openapitools.model.ResourceMVO; +import org.openapitools.model.ResourceOperationalStateType; +import org.openapitools.model.ResourceRefMVO; +import org.openapitools.model.ResourceRelationshipMVO; +import org.openapitools.model.ResourceSpecificationRefMVO; +import org.openapitools.model.ResourceStatusType; +import org.openapitools.model.ResourceUsageStateType; +import org.openapitools.model.TimePeriod; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + + +@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 = DataAccessEndpointMVO.class, name = "DataAccessEndpoint"), + @JsonSubTypes.Type(value = LogicalResourceMVO.class, name = "LogicalResource"), + @JsonSubTypes.Type(value = ResourceMVO.class, name = "Resource"), + @JsonSubTypes.Type(value = ResourceRefMVO.class, name = "ResourceRef"), + @JsonSubTypes.Type(value = ResourceRefMVO.class, name = "ResourceRef_MVO"), + @JsonSubTypes.Type(value = ResourceMVO.class, name = "Resource_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 interface ResourceRefOrValueMVO { + public String getAtType(); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java new file mode 100644 index 0000000..782e9d9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java @@ -0,0 +1,232 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.openapitools.model.ResourceRefOrValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceRelationship + */ + + +@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 ResourceRelationship { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List resourceRelationshipCharacteristic = new ArrayList<>(); + + private ResourceRefOrValue resource; + + private String relationshipType; + + public ResourceRelationship() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceRelationship(String atType) { + this.atType = atType; + } + + public ResourceRelationship 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 ResourceRelationship 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 ResourceRelationship 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 ResourceRelationship resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { + this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; + return this; + } + + public ResourceRelationship addResourceRelationshipCharacteristicItem(Characteristic resourceRelationshipCharacteristicItem) { + if (this.resourceRelationshipCharacteristic == null) { + this.resourceRelationshipCharacteristic = new ArrayList<>(); + } + this.resourceRelationshipCharacteristic.add(resourceRelationshipCharacteristicItem); + return this; + } + + /** + * Get resourceRelationshipCharacteristic + * @return resourceRelationshipCharacteristic + */ + @Valid + @Schema(name = "resourceRelationshipCharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceRelationshipCharacteristic") + public List getResourceRelationshipCharacteristic() { + return resourceRelationshipCharacteristic; + } + + public void setResourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { + this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; + } + + public ResourceRelationship resource(ResourceRefOrValue resource) { + this.resource = resource; + return this; + } + + /** + * Get resource + * @return resource + */ + @Valid + @Schema(name = "resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resource") + public ResourceRefOrValue getResource() { + return resource; + } + + public void setResource(ResourceRefOrValue resource) { + this.resource = resource; + } + + public ResourceRelationship relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (eg: an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful + * @return relationshipType + */ + + @Schema(name = "relationshipType", description = "Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (eg: an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful", 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; + } + ResourceRelationship resourceRelationship = (ResourceRelationship) o; + return Objects.equals(this.atType, resourceRelationship.atType) && + Objects.equals(this.atBaseType, resourceRelationship.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceRelationship.atSchemaLocation) && + Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationship.resourceRelationshipCharacteristic) && + Objects.equals(this.resource, resourceRelationship.resource) && + Objects.equals(this.relationshipType, resourceRelationship.relationshipType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceRelationship {\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(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).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/ResourceRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java new file mode 100644 index 0000000..0b18cd5 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java @@ -0,0 +1,235 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicFVO; +import org.openapitools.model.ResourceRefOrValueFVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceRelationshipFVO + */ + + +@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 ResourceRelationshipFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List resourceRelationshipCharacteristic = new ArrayList<>(); + + private ResourceRefOrValueFVO resource; + + private String relationshipType; + + public ResourceRelationshipFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceRelationshipFVO(String atType, ResourceRefOrValueFVO resource, String relationshipType) { + this.atType = atType; + this.resource = resource; + this.relationshipType = relationshipType; + } + + public ResourceRelationshipFVO 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 ResourceRelationshipFVO 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 ResourceRelationshipFVO 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 ResourceRelationshipFVO resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { + this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; + return this; + } + + public ResourceRelationshipFVO addResourceRelationshipCharacteristicItem(CharacteristicFVO resourceRelationshipCharacteristicItem) { + if (this.resourceRelationshipCharacteristic == null) { + this.resourceRelationshipCharacteristic = new ArrayList<>(); + } + this.resourceRelationshipCharacteristic.add(resourceRelationshipCharacteristicItem); + return this; + } + + /** + * Get resourceRelationshipCharacteristic + * @return resourceRelationshipCharacteristic + */ + @Valid + @Schema(name = "resourceRelationshipCharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceRelationshipCharacteristic") + public List getResourceRelationshipCharacteristic() { + return resourceRelationshipCharacteristic; + } + + public void setResourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { + this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; + } + + public ResourceRelationshipFVO resource(ResourceRefOrValueFVO resource) { + this.resource = resource; + return this; + } + + /** + * Get resource + * @return resource + */ + @NotNull @Valid + @Schema(name = "resource", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("resource") + public ResourceRefOrValueFVO getResource() { + return resource; + } + + public void setResource(ResourceRefOrValueFVO resource) { + this.resource = resource; + } + + public ResourceRelationshipFVO relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (eg: an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", description = "Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (eg: an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful", 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; + } + ResourceRelationshipFVO resourceRelationshipFVO = (ResourceRelationshipFVO) o; + return Objects.equals(this.atType, resourceRelationshipFVO.atType) && + Objects.equals(this.atBaseType, resourceRelationshipFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceRelationshipFVO.atSchemaLocation) && + Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationshipFVO.resourceRelationshipCharacteristic) && + Objects.equals(this.resource, resourceRelationshipFVO.resource) && + Objects.equals(this.relationshipType, resourceRelationshipFVO.relationshipType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceRelationshipFVO {\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(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).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/ResourceRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java new file mode 100644 index 0000000..b87d263 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java @@ -0,0 +1,235 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicMVO; +import org.openapitools.model.ResourceRefOrValueMVO; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceRelationshipMVO + */ + + +@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 ResourceRelationshipMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @Valid + private List resourceRelationshipCharacteristic = new ArrayList<>(); + + private ResourceRefOrValueMVO resource; + + private String relationshipType; + + public ResourceRelationshipMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceRelationshipMVO(String atType, ResourceRefOrValueMVO resource, String relationshipType) { + this.atType = atType; + this.resource = resource; + this.relationshipType = relationshipType; + } + + public ResourceRelationshipMVO 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 ResourceRelationshipMVO 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 ResourceRelationshipMVO 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 ResourceRelationshipMVO resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { + this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; + return this; + } + + public ResourceRelationshipMVO addResourceRelationshipCharacteristicItem(CharacteristicMVO resourceRelationshipCharacteristicItem) { + if (this.resourceRelationshipCharacteristic == null) { + this.resourceRelationshipCharacteristic = new ArrayList<>(); + } + this.resourceRelationshipCharacteristic.add(resourceRelationshipCharacteristicItem); + return this; + } + + /** + * Get resourceRelationshipCharacteristic + * @return resourceRelationshipCharacteristic + */ + @Valid + @Schema(name = "resourceRelationshipCharacteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("resourceRelationshipCharacteristic") + public List getResourceRelationshipCharacteristic() { + return resourceRelationshipCharacteristic; + } + + public void setResourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { + this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; + } + + public ResourceRelationshipMVO resource(ResourceRefOrValueMVO resource) { + this.resource = resource; + return this; + } + + /** + * Get resource + * @return resource + */ + @NotNull @Valid + @Schema(name = "resource", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("resource") + public ResourceRefOrValueMVO getResource() { + return resource; + } + + public void setResource(ResourceRefOrValueMVO resource) { + this.resource = resource; + } + + public ResourceRelationshipMVO relationshipType(String relationshipType) { + this.relationshipType = relationshipType; + return this; + } + + /** + * Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (eg: an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful + * @return relationshipType + */ + @NotNull + @Schema(name = "relationshipType", description = "Type of the resource relationship, such as [bundled] if the resource is a bundle and you want to describe the bundled resources inside this bundle; [reliesOn] if the resource needs another already owned resource to rely on (eg: an option on an already owned mobile access resource) [targets] or [isTargeted] (depending on the way of expressing the link) for any other kind of links that may be useful", 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; + } + ResourceRelationshipMVO resourceRelationshipMVO = (ResourceRelationshipMVO) o; + return Objects.equals(this.atType, resourceRelationshipMVO.atType) && + Objects.equals(this.atBaseType, resourceRelationshipMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceRelationshipMVO.atSchemaLocation) && + Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationshipMVO.resourceRelationshipCharacteristic) && + Objects.equals(this.resource, resourceRelationshipMVO.resource) && + Objects.equals(this.relationshipType, resourceRelationshipMVO.relationshipType); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceRelationshipMVO {\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(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).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/ResourceSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java new file mode 100644 index 0000000..b4aca78 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceSpecificationRef + */ + + +@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 ResourceSpecificationRef { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public ResourceSpecificationRef() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceSpecificationRef(String atType, String id) { + this.atType = atType; + this.id = id; + } + + public ResourceSpecificationRef 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 ResourceSpecificationRef 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 ResourceSpecificationRef 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 ResourceSpecificationRef href(String href) { + this.href = href; + return this; + } + + /** + * The URI of the referred entity. + * @return href + */ + + @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("href") + public String getHref() { + return href; + } + + public void setHref(String href) { + this.href = href; + } + + public ResourceSpecificationRef id(String id) { + this.id = id; + return this; + } + + /** + * The identifier of the referred entity. + * @return id + */ + @NotNull + @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ResourceSpecificationRef 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 ResourceSpecificationRef 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; + } + + public ResourceSpecificationRef version(String version) { + this.version = version; + return this; + } + + /** + * Resource Specification version + * @return version + */ + + @Schema(name = "version", description = "Resource Specification version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceSpecificationRef resourceSpecificationRef = (ResourceSpecificationRef) o; + return Objects.equals(this.atType, resourceSpecificationRef.atType) && + Objects.equals(this.atBaseType, resourceSpecificationRef.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceSpecificationRef.atSchemaLocation) && + Objects.equals(this.href, resourceSpecificationRef.href) && + Objects.equals(this.id, resourceSpecificationRef.id) && + Objects.equals(this.name, resourceSpecificationRef.name) && + Objects.equals(this.atReferredType, resourceSpecificationRef.atReferredType) && + Objects.equals(this.version, resourceSpecificationRef.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceSpecificationRef {\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(" version: ").append(toIndentedString(version)).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/ResourceSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java new file mode 100644 index 0000000..3f24141 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceSpecificationRefFVO + */ + + +@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 ResourceSpecificationRefFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public ResourceSpecificationRefFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceSpecificationRefFVO(String atType) { + this.atType = atType; + } + + public ResourceSpecificationRefFVO 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 ResourceSpecificationRefFVO 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 ResourceSpecificationRefFVO 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 ResourceSpecificationRefFVO 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 ResourceSpecificationRefFVO 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 ResourceSpecificationRefFVO 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 ResourceSpecificationRefFVO 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; + } + + public ResourceSpecificationRefFVO version(String version) { + this.version = version; + return this; + } + + /** + * Resource Specification version + * @return version + */ + + @Schema(name = "version", description = "Resource Specification version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceSpecificationRefFVO resourceSpecificationRefFVO = (ResourceSpecificationRefFVO) o; + return Objects.equals(this.atType, resourceSpecificationRefFVO.atType) && + Objects.equals(this.atBaseType, resourceSpecificationRefFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceSpecificationRefFVO.atSchemaLocation) && + Objects.equals(this.href, resourceSpecificationRefFVO.href) && + Objects.equals(this.id, resourceSpecificationRefFVO.id) && + Objects.equals(this.name, resourceSpecificationRefFVO.name) && + Objects.equals(this.atReferredType, resourceSpecificationRefFVO.atReferredType) && + Objects.equals(this.version, resourceSpecificationRefFVO.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceSpecificationRefFVO {\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(" version: ").append(toIndentedString(version)).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/ResourceSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java new file mode 100644 index 0000000..6ab1f81 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java @@ -0,0 +1,267 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ResourceSpecificationRefMVO + */ + + +@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 ResourceSpecificationRefMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; + + private String name; + + private String atReferredType; + + private String version; + + public ResourceSpecificationRefMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ResourceSpecificationRefMVO(String atType) { + this.atType = atType; + } + + public ResourceSpecificationRefMVO 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 ResourceSpecificationRefMVO 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 ResourceSpecificationRefMVO 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 ResourceSpecificationRefMVO 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 ResourceSpecificationRefMVO 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 ResourceSpecificationRefMVO 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 ResourceSpecificationRefMVO 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; + } + + public ResourceSpecificationRefMVO version(String version) { + this.version = version; + return this; + } + + /** + * Resource Specification version + * @return version + */ + + @Schema(name = "version", description = "Resource Specification version", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("version") + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResourceSpecificationRefMVO resourceSpecificationRefMVO = (ResourceSpecificationRefMVO) o; + return Objects.equals(this.atType, resourceSpecificationRefMVO.atType) && + Objects.equals(this.atBaseType, resourceSpecificationRefMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, resourceSpecificationRefMVO.atSchemaLocation) && + Objects.equals(this.href, resourceSpecificationRefMVO.href) && + Objects.equals(this.id, resourceSpecificationRefMVO.id) && + Objects.equals(this.name, resourceSpecificationRefMVO.name) && + Objects.equals(this.atReferredType, resourceSpecificationRefMVO.atReferredType) && + Objects.equals(this.version, resourceSpecificationRefMVO.version); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResourceSpecificationRefMVO {\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(" version: ").append(toIndentedString(version)).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/ResourceStatusType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java new file mode 100644 index 0000000..0e8d32b --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java @@ -0,0 +1,72 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * ResourceStatusType enumerations + */ + +@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 ResourceStatusType { + + ALARM("alarm"), + + AVAILABLE("available"), + + INSTALLED("installed"), + + NOT_EXISTS("not exists"), + + PENDINGREMOVAL("pendingRemoval"), + + PLANNED("planned"), + + RESERVED("reserved"), + + STANDBY("standby"), + + SUSPENDED("suspended"), + + UNKNOWN("unknown"); + + private String value; + + ResourceStatusType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ResourceStatusType fromValue(String value) { + for (ResourceStatusType b : ResourceStatusType.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/ResourceUsageStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java new file mode 100644 index 0000000..b8b1ccd --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java @@ -0,0 +1,58 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonValue; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * ResourceUsageStateType enumerations + */ + +@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 ResourceUsageStateType { + + IDLE("idle"), + + ACTIVE("active"), + + BUSY("busy"); + + private String value; + + ResourceUsageStateType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ResourceUsageStateType fromValue(String value) { + for (ResourceUsageStateType b : ResourceUsageStateType.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/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java new file mode 100644 index 0000000..ad4a9d7 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -0,0 +1,431 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DayOfWeekRecurrence; +import org.openapitools.model.MonthlyScheduleDayOfWeekDefinition; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ScheduleDefinition + */ + + +@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 ScheduleDefinition { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionStartTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionEndTime; + + private String recurringFrequency; + + @Valid + private List excludedDate = new ArrayList<>(); + + private String scheduleDefinitionHourRange; + + @Valid + private List weeklyScheduledDefinition = new ArrayList<>(); + + @Valid + private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + + private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; + + @Valid + private List dateScheduleDefintion = new ArrayList<>(); + + public ScheduleDefinition() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ScheduleDefinition(String atType) { + this.atType = atType; + } + + public ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the schedule definition + * @return id + */ + + @Schema(name = "id", description = "Identifier of the schedule definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ScheduleDefinition scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + return this; + } + + /** + * The Start time of the Schedule Definition + * @return scheduleDefinitionStartTime + */ + @Valid + @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionStartTime") + public OffsetDateTime getScheduleDefinitionStartTime() { + return scheduleDefinitionStartTime; + } + + public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + } + + public ScheduleDefinition scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + return this; + } + + /** + * The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. + * @return scheduleDefinitionEndTime + */ + @Valid + @Schema(name = "scheduleDefinitionEndTime", description = "The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionEndTime") + public OffsetDateTime getScheduleDefinitionEndTime() { + return scheduleDefinitionEndTime; + } + + public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + } + + public ScheduleDefinition recurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + return this; + } + + /** + * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour + * @return recurringFrequency + */ + + @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringFrequency") + public String getRecurringFrequency() { + return recurringFrequency; + } + + public void setRecurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + } + + public ScheduleDefinition excludedDate(List excludedDate) { + this.excludedDate = excludedDate; + return this; + } + + public ScheduleDefinition addExcludedDateItem(OffsetDateTime excludedDateItem) { + if (this.excludedDate == null) { + this.excludedDate = new ArrayList<>(); + } + this.excludedDate.add(excludedDateItem); + return this; + } + + /** + * A list of specific dates that should be excluded from the Schedule Definition. + * @return excludedDate + */ + @Valid + @Schema(name = "excludedDate", description = "A list of specific dates that should be excluded from the Schedule Definition.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("excludedDate") + public List getExcludedDate() { + return excludedDate; + } + + public void setExcludedDate(List excludedDate) { + this.excludedDate = excludedDate; + } + + public ScheduleDefinition scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + return this; + } + + /** + * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. + * @return scheduleDefinitionHourRange + */ + + @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionHourRange") + public String getScheduleDefinitionHourRange() { + return scheduleDefinitionHourRange; + } + + public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + } + + public ScheduleDefinition weeklyScheduledDefinition(List weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + return this; + } + + public ScheduleDefinition addWeeklyScheduledDefinitionItem(DayOfWeekRecurrence weeklyScheduledDefinitionItem) { + if (this.weeklyScheduledDefinition == null) { + this.weeklyScheduledDefinition = new ArrayList<>(); + } + this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); + return this; + } + + /** + * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. + * @return weeklyScheduledDefinition + */ + @Valid + @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("WeeklyScheduledDefinition") + public List getWeeklyScheduledDefinition() { + return weeklyScheduledDefinition; + } + + public void setWeeklyScheduledDefinition(List weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + } + + public ScheduleDefinition monthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + return this; + } + + public ScheduleDefinition addMonthlyScheduleDayOfMonthDefinitionItem(OffsetDateTime monthlyScheduleDayOfMonthDefinitionItem) { + if (this.monthlyScheduleDayOfMonthDefinition == null) { + this.monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + } + this.monthlyScheduleDayOfMonthDefinition.add(monthlyScheduleDayOfMonthDefinitionItem); + return this; + } + + /** + * The schedule definition for running the threshold job + * @return monthlyScheduleDayOfMonthDefinition + */ + @Valid + @Schema(name = "monthlyScheduleDayOfMonthDefinition", description = "The schedule definition for running the threshold job", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monthlyScheduleDayOfMonthDefinition") + public List getMonthlyScheduleDayOfMonthDefinition() { + return monthlyScheduleDayOfMonthDefinition; + } + + public void setMonthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + } + + public ScheduleDefinition monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + return this; + } + + /** + * Get monthlyScheduleDayOfWeekDefinition + * @return monthlyScheduleDayOfWeekDefinition + */ + @Valid + @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") + public MonthlyScheduleDayOfWeekDefinition getMonthlyScheduleDayOfWeekDefinition() { + return monthlyScheduleDayOfWeekDefinition; + } + + public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + } + + public ScheduleDefinition dateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + return this; + } + + public ScheduleDefinition addDateScheduleDefintionItem(OffsetDateTime dateScheduleDefintionItem) { + if (this.dateScheduleDefintion == null) { + this.dateScheduleDefintion = new ArrayList<>(); + } + this.dateScheduleDefintion.add(dateScheduleDefintionItem); + return this; + } + + /** + * The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013 + * @return dateScheduleDefintion + */ + @Valid + @Schema(name = "dateScheduleDefintion", description = "The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dateScheduleDefintion") + public List getDateScheduleDefintion() { + return dateScheduleDefintion; + } + + public void setDateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScheduleDefinition scheduleDefinition = (ScheduleDefinition) o; + return Objects.equals(this.atType, scheduleDefinition.atType) && + Objects.equals(this.atBaseType, scheduleDefinition.atBaseType) && + Objects.equals(this.atSchemaLocation, scheduleDefinition.atSchemaLocation) && + Objects.equals(this.id, scheduleDefinition.id) && + Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinition.scheduleDefinitionStartTime) && + Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinition.scheduleDefinitionEndTime) && + Objects.equals(this.recurringFrequency, scheduleDefinition.recurringFrequency) && + Objects.equals(this.excludedDate, scheduleDefinition.excludedDate) && + Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinition.scheduleDefinitionHourRange) && + Objects.equals(this.weeklyScheduledDefinition, scheduleDefinition.weeklyScheduledDefinition) && + Objects.equals(this.monthlyScheduleDayOfMonthDefinition, scheduleDefinition.monthlyScheduleDayOfMonthDefinition) && + Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinition.monthlyScheduleDayOfWeekDefinition) && + Objects.equals(this.dateScheduleDefintion, scheduleDefinition.dateScheduleDefintion); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleDefinition {\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(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); + sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); + sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); + sb.append(" excludedDate: ").append(toIndentedString(excludedDate)).append("\n"); + sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); + sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).append("\n"); + sb.append(" monthlyScheduleDayOfMonthDefinition: ").append(toIndentedString(monthlyScheduleDayOfMonthDefinition)).append("\n"); + sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); + sb.append(" dateScheduleDefintion: ").append(toIndentedString(dateScheduleDefintion)).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/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java new file mode 100644 index 0000000..af6b1b1 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -0,0 +1,408 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DayOfWeekRecurrenceFVO; +import org.openapitools.model.MonthlyScheduleDayOfWeekDefinitionFVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ScheduleDefinitionFVO + */ + + +@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 ScheduleDefinitionFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionStartTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionEndTime; + + private String recurringFrequency; + + @Valid + private List excludedDate = new ArrayList<>(); + + private String scheduleDefinitionHourRange; + + @Valid + private List weeklyScheduledDefinition = new ArrayList<>(); + + @Valid + private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + + private MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition; + + @Valid + private List dateScheduleDefintion = new ArrayList<>(); + + public ScheduleDefinitionFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ScheduleDefinitionFVO(String atType) { + this.atType = atType; + } + + public ScheduleDefinitionFVO 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 ScheduleDefinitionFVO 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 ScheduleDefinitionFVO 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 ScheduleDefinitionFVO scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + return this; + } + + /** + * The Start time of the Schedule Definition + * @return scheduleDefinitionStartTime + */ + @Valid + @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionStartTime") + public OffsetDateTime getScheduleDefinitionStartTime() { + return scheduleDefinitionStartTime; + } + + public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + } + + public ScheduleDefinitionFVO scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + return this; + } + + /** + * The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. + * @return scheduleDefinitionEndTime + */ + @Valid + @Schema(name = "scheduleDefinitionEndTime", description = "The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionEndTime") + public OffsetDateTime getScheduleDefinitionEndTime() { + return scheduleDefinitionEndTime; + } + + public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + } + + public ScheduleDefinitionFVO recurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + return this; + } + + /** + * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour + * @return recurringFrequency + */ + + @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringFrequency") + public String getRecurringFrequency() { + return recurringFrequency; + } + + public void setRecurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + } + + public ScheduleDefinitionFVO excludedDate(List excludedDate) { + this.excludedDate = excludedDate; + return this; + } + + public ScheduleDefinitionFVO addExcludedDateItem(OffsetDateTime excludedDateItem) { + if (this.excludedDate == null) { + this.excludedDate = new ArrayList<>(); + } + this.excludedDate.add(excludedDateItem); + return this; + } + + /** + * A list of specific dates that should be excluded from the Schedule Definition. + * @return excludedDate + */ + @Valid + @Schema(name = "excludedDate", description = "A list of specific dates that should be excluded from the Schedule Definition.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("excludedDate") + public List getExcludedDate() { + return excludedDate; + } + + public void setExcludedDate(List excludedDate) { + this.excludedDate = excludedDate; + } + + public ScheduleDefinitionFVO scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + return this; + } + + /** + * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. + * @return scheduleDefinitionHourRange + */ + + @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionHourRange") + public String getScheduleDefinitionHourRange() { + return scheduleDefinitionHourRange; + } + + public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + } + + public ScheduleDefinitionFVO weeklyScheduledDefinition(List weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + return this; + } + + public ScheduleDefinitionFVO addWeeklyScheduledDefinitionItem(DayOfWeekRecurrenceFVO weeklyScheduledDefinitionItem) { + if (this.weeklyScheduledDefinition == null) { + this.weeklyScheduledDefinition = new ArrayList<>(); + } + this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); + return this; + } + + /** + * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. + * @return weeklyScheduledDefinition + */ + @Valid + @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("WeeklyScheduledDefinition") + public List getWeeklyScheduledDefinition() { + return weeklyScheduledDefinition; + } + + public void setWeeklyScheduledDefinition(List weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + } + + public ScheduleDefinitionFVO monthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + return this; + } + + public ScheduleDefinitionFVO addMonthlyScheduleDayOfMonthDefinitionItem(OffsetDateTime monthlyScheduleDayOfMonthDefinitionItem) { + if (this.monthlyScheduleDayOfMonthDefinition == null) { + this.monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + } + this.monthlyScheduleDayOfMonthDefinition.add(monthlyScheduleDayOfMonthDefinitionItem); + return this; + } + + /** + * The schedule definition for running the threshold job + * @return monthlyScheduleDayOfMonthDefinition + */ + @Valid + @Schema(name = "monthlyScheduleDayOfMonthDefinition", description = "The schedule definition for running the threshold job", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monthlyScheduleDayOfMonthDefinition") + public List getMonthlyScheduleDayOfMonthDefinition() { + return monthlyScheduleDayOfMonthDefinition; + } + + public void setMonthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + } + + public ScheduleDefinitionFVO monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + return this; + } + + /** + * Get monthlyScheduleDayOfWeekDefinition + * @return monthlyScheduleDayOfWeekDefinition + */ + @Valid + @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") + public MonthlyScheduleDayOfWeekDefinitionFVO getMonthlyScheduleDayOfWeekDefinition() { + return monthlyScheduleDayOfWeekDefinition; + } + + public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + } + + public ScheduleDefinitionFVO dateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + return this; + } + + public ScheduleDefinitionFVO addDateScheduleDefintionItem(OffsetDateTime dateScheduleDefintionItem) { + if (this.dateScheduleDefintion == null) { + this.dateScheduleDefintion = new ArrayList<>(); + } + this.dateScheduleDefintion.add(dateScheduleDefintionItem); + return this; + } + + /** + * The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013 + * @return dateScheduleDefintion + */ + @Valid + @Schema(name = "dateScheduleDefintion", description = "The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dateScheduleDefintion") + public List getDateScheduleDefintion() { + return dateScheduleDefintion; + } + + public void setDateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScheduleDefinitionFVO scheduleDefinitionFVO = (ScheduleDefinitionFVO) o; + return Objects.equals(this.atType, scheduleDefinitionFVO.atType) && + Objects.equals(this.atBaseType, scheduleDefinitionFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, scheduleDefinitionFVO.atSchemaLocation) && + Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinitionFVO.scheduleDefinitionStartTime) && + Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinitionFVO.scheduleDefinitionEndTime) && + Objects.equals(this.recurringFrequency, scheduleDefinitionFVO.recurringFrequency) && + Objects.equals(this.excludedDate, scheduleDefinitionFVO.excludedDate) && + Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinitionFVO.scheduleDefinitionHourRange) && + Objects.equals(this.weeklyScheduledDefinition, scheduleDefinitionFVO.weeklyScheduledDefinition) && + Objects.equals(this.monthlyScheduleDayOfMonthDefinition, scheduleDefinitionFVO.monthlyScheduleDayOfMonthDefinition) && + Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinitionFVO.monthlyScheduleDayOfWeekDefinition) && + Objects.equals(this.dateScheduleDefintion, scheduleDefinitionFVO.dateScheduleDefintion); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleDefinitionFVO {\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(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); + sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); + sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); + sb.append(" excludedDate: ").append(toIndentedString(excludedDate)).append("\n"); + sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); + sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).append("\n"); + sb.append(" monthlyScheduleDayOfMonthDefinition: ").append(toIndentedString(monthlyScheduleDayOfMonthDefinition)).append("\n"); + sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); + sb.append(" dateScheduleDefintion: ").append(toIndentedString(dateScheduleDefintion)).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/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java new file mode 100644 index 0000000..9d26cf6 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -0,0 +1,432 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.DayOfWeekRecurrenceMVO; +import org.openapitools.model.MonthlyScheduleDayOfWeekDefinitionMVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * ScheduleDefinitionMVO + */ + + +@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 ScheduleDefinitionMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String id; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionStartTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionEndTime; + + private String recurringFrequency; + + @Valid + private List excludedDate = new ArrayList<>(); + + private String scheduleDefinitionHourRange; + + @Valid + private List weeklyScheduledDefinition = new ArrayList<>(); + + @Valid + private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + + private MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinition; + + @Valid + private List dateScheduleDefintion = new ArrayList<>(); + + public ScheduleDefinitionMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public ScheduleDefinitionMVO(String atType) { + this.atType = atType; + } + + public ScheduleDefinitionMVO 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 ScheduleDefinitionMVO 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 ScheduleDefinitionMVO 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 ScheduleDefinitionMVO id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the schedule definition + * @return id + */ + + @Schema(name = "id", description = "Identifier of the schedule definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("id") + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ScheduleDefinitionMVO scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + return this; + } + + /** + * The Start time of the Schedule Definition + * @return scheduleDefinitionStartTime + */ + @Valid + @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionStartTime") + public OffsetDateTime getScheduleDefinitionStartTime() { + return scheduleDefinitionStartTime; + } + + public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + } + + public ScheduleDefinitionMVO scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + return this; + } + + /** + * The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. + * @return scheduleDefinitionEndTime + */ + @Valid + @Schema(name = "scheduleDefinitionEndTime", description = "The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionEndTime") + public OffsetDateTime getScheduleDefinitionEndTime() { + return scheduleDefinitionEndTime; + } + + public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + } + + public ScheduleDefinitionMVO recurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + return this; + } + + /** + * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour + * @return recurringFrequency + */ + + @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringFrequency") + public String getRecurringFrequency() { + return recurringFrequency; + } + + public void setRecurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + } + + public ScheduleDefinitionMVO excludedDate(List excludedDate) { + this.excludedDate = excludedDate; + return this; + } + + public ScheduleDefinitionMVO addExcludedDateItem(OffsetDateTime excludedDateItem) { + if (this.excludedDate == null) { + this.excludedDate = new ArrayList<>(); + } + this.excludedDate.add(excludedDateItem); + return this; + } + + /** + * A list of specific dates that should be excluded from the Schedule Definition. + * @return excludedDate + */ + @Valid + @Schema(name = "excludedDate", description = "A list of specific dates that should be excluded from the Schedule Definition.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("excludedDate") + public List getExcludedDate() { + return excludedDate; + } + + public void setExcludedDate(List excludedDate) { + this.excludedDate = excludedDate; + } + + public ScheduleDefinitionMVO scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + return this; + } + + /** + * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. + * @return scheduleDefinitionHourRange + */ + + @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionHourRange") + public String getScheduleDefinitionHourRange() { + return scheduleDefinitionHourRange; + } + + public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + } + + public ScheduleDefinitionMVO weeklyScheduledDefinition(List weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + return this; + } + + public ScheduleDefinitionMVO addWeeklyScheduledDefinitionItem(DayOfWeekRecurrenceMVO weeklyScheduledDefinitionItem) { + if (this.weeklyScheduledDefinition == null) { + this.weeklyScheduledDefinition = new ArrayList<>(); + } + this.weeklyScheduledDefinition.add(weeklyScheduledDefinitionItem); + return this; + } + + /** + * The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday. + * @return weeklyScheduledDefinition + */ + @Valid + @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("WeeklyScheduledDefinition") + public List getWeeklyScheduledDefinition() { + return weeklyScheduledDefinition; + } + + public void setWeeklyScheduledDefinition(List weeklyScheduledDefinition) { + this.weeklyScheduledDefinition = weeklyScheduledDefinition; + } + + public ScheduleDefinitionMVO monthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + return this; + } + + public ScheduleDefinitionMVO addMonthlyScheduleDayOfMonthDefinitionItem(OffsetDateTime monthlyScheduleDayOfMonthDefinitionItem) { + if (this.monthlyScheduleDayOfMonthDefinition == null) { + this.monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + } + this.monthlyScheduleDayOfMonthDefinition.add(monthlyScheduleDayOfMonthDefinitionItem); + return this; + } + + /** + * The schedule definition for running the threshold job + * @return monthlyScheduleDayOfMonthDefinition + */ + @Valid + @Schema(name = "monthlyScheduleDayOfMonthDefinition", description = "The schedule definition for running the threshold job", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monthlyScheduleDayOfMonthDefinition") + public List getMonthlyScheduleDayOfMonthDefinition() { + return monthlyScheduleDayOfMonthDefinition; + } + + public void setMonthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + } + + public ScheduleDefinitionMVO monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + return this; + } + + /** + * Get monthlyScheduleDayOfWeekDefinition + * @return monthlyScheduleDayOfWeekDefinition + */ + @Valid + @Schema(name = "MonthlyScheduleDayOfWeekDefinition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") + public MonthlyScheduleDayOfWeekDefinitionMVO getMonthlyScheduleDayOfWeekDefinition() { + return monthlyScheduleDayOfWeekDefinition; + } + + public void setMonthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinition) { + this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; + } + + public ScheduleDefinitionMVO dateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + return this; + } + + public ScheduleDefinitionMVO addDateScheduleDefintionItem(OffsetDateTime dateScheduleDefintionItem) { + if (this.dateScheduleDefintion == null) { + this.dateScheduleDefintion = new ArrayList<>(); + } + this.dateScheduleDefintion.add(dateScheduleDefintionItem); + return this; + } + + /** + * The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013 + * @return dateScheduleDefintion + */ + @Valid + @Schema(name = "dateScheduleDefintion", description = "The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dateScheduleDefintion") + public List getDateScheduleDefintion() { + return dateScheduleDefintion; + } + + public void setDateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScheduleDefinitionMVO scheduleDefinitionMVO = (ScheduleDefinitionMVO) o; + return Objects.equals(this.atType, scheduleDefinitionMVO.atType) && + Objects.equals(this.atBaseType, scheduleDefinitionMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, scheduleDefinitionMVO.atSchemaLocation) && + Objects.equals(this.id, scheduleDefinitionMVO.id) && + Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinitionMVO.scheduleDefinitionStartTime) && + Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinitionMVO.scheduleDefinitionEndTime) && + Objects.equals(this.recurringFrequency, scheduleDefinitionMVO.recurringFrequency) && + Objects.equals(this.excludedDate, scheduleDefinitionMVO.excludedDate) && + Objects.equals(this.scheduleDefinitionHourRange, scheduleDefinitionMVO.scheduleDefinitionHourRange) && + Objects.equals(this.weeklyScheduledDefinition, scheduleDefinitionMVO.weeklyScheduledDefinition) && + Objects.equals(this.monthlyScheduleDayOfMonthDefinition, scheduleDefinitionMVO.monthlyScheduleDayOfMonthDefinition) && + Objects.equals(this.monthlyScheduleDayOfWeekDefinition, scheduleDefinitionMVO.monthlyScheduleDayOfWeekDefinition) && + Objects.equals(this.dateScheduleDefintion, scheduleDefinitionMVO.dateScheduleDefintion); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, id, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleDefinitionMVO {\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(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); + sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); + sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); + sb.append(" excludedDate: ").append(toIndentedString(excludedDate)).append("\n"); + sb.append(" scheduleDefinitionHourRange: ").append(toIndentedString(scheduleDefinitionHourRange)).append("\n"); + sb.append(" weeklyScheduledDefinition: ").append(toIndentedString(weeklyScheduledDefinition)).append("\n"); + sb.append(" monthlyScheduleDayOfMonthDefinition: ").append(toIndentedString(monthlyScheduleDayOfMonthDefinition)).append("\n"); + sb.append(" monthlyScheduleDayOfWeekDefinition: ").append(toIndentedString(monthlyScheduleDayOfWeekDefinition)).append("\n"); + sb.append(" dateScheduleDefintion: ").append(toIndentedString(dateScheduleDefintion)).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/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java new file mode 100644 index 0000000..9073aa9 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -0,0 +1,112 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.time.OffsetDateTime; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * A period of time, either as a deadline (endDateTime only) a startDateTime only, or both + */ + +@Schema(name = "TimePeriod", description = "A period of time, either as a deadline (endDateTime only) a startDateTime only, or both") +@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 TimePeriod { + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime startDateTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime endDateTime; + + public TimePeriod startDateTime(OffsetDateTime startDateTime) { + this.startDateTime = startDateTime; + return this; + } + + /** + * Start of the time period, using IETC-RFC-3339 format + * @return startDateTime + */ + @Valid + @Schema(name = "startDateTime", example = "1985-04-12T23:20:50.520Z", description = "Start of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("startDateTime") + public OffsetDateTime getStartDateTime() { + return startDateTime; + } + + public void setStartDateTime(OffsetDateTime startDateTime) { + this.startDateTime = startDateTime; + } + + public TimePeriod endDateTime(OffsetDateTime endDateTime) { + this.endDateTime = endDateTime; + return this; + } + + /** + * End of the time period, using IETC-RFC-3339 format + * @return endDateTime + */ + @Valid + @Schema(name = "endDateTime", example = "1985-04-12T23:20:50.520Z", description = "End of the time period, using IETC-RFC-3339 format", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("endDateTime") + public OffsetDateTime getEndDateTime() { + return endDateTime; + } + + public void setEndDateTime(OffsetDateTime endDateTime) { + this.endDateTime = endDateTime; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TimePeriod timePeriod = (TimePeriod) o; + return Objects.equals(this.startDateTime, timePeriod.startDateTime) && + Objects.equals(this.endDateTime, timePeriod.endDateTime); + } + + @Override + public int hashCode() { + return Objects.hash(startDateTime, endDateTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TimePeriod {\n"); + sb.append(" startDateTime: ").append(toIndentedString(startDateTime)).append("\n"); + sb.append(" endDateTime: ").append(toIndentedString(endDateTime)).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/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java new file mode 100644 index 0000000..c9e1bdf --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -0,0 +1,306 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.Characteristic; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * TrackingRecord + */ + + +@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 TrackingRecord { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String description; + + @Valid + private List characteristic = new ArrayList<>(); + + private String systemId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime time; + + private String user; + + private String id; + + public TrackingRecord() { + super(); + } + + /** + * Constructor with only required parameters + */ + public TrackingRecord(String atType) { + this.atType = atType; + } + + public TrackingRecord 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 TrackingRecord 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 TrackingRecord 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 TrackingRecord description(String description) { + this.description = description; + return this; + } + + /** + * Describes the action being done, such as: ack, clear + * @return description + */ + + @Schema(name = "description", example = "[\"acknowledge\",\"clear\"]", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TrackingRecord characteristic(List characteristic) { + this.characteristic = characteristic; + return this; + } + + public TrackingRecord addCharacteristicItem(Characteristic characteristicItem) { + if (this.characteristic == null) { + this.characteristic = new ArrayList<>(); + } + this.characteristic.add(characteristicItem); + return this; + } + + /** + * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces + * @return characteristic + */ + @Valid + @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristic") + public List getCharacteristic() { + return characteristic; + } + + public void setCharacteristic(List characteristic) { + this.characteristic = characteristic; + } + + public TrackingRecord systemId(String systemId) { + this.systemId = systemId; + return this; + } + + /** + * Describes the system Id from which the action was done + * @return systemId + */ + + @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("systemId") + public String getSystemId() { + return systemId; + } + + public void setSystemId(String systemId) { + this.systemId = systemId; + } + + public TrackingRecord time(OffsetDateTime time) { + this.time = time; + return this; + } + + /** + * Describes the time at which the action was done + * @return time + */ + @Valid + @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + public void setTime(OffsetDateTime time) { + this.time = time; + } + + public TrackingRecord user(String user) { + this.user = user; + return this; + } + + /** + * Describes the user doing the action + * @return user + */ + + @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("user") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public TrackingRecord id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the TrackingRecord. + * @return id + */ + + @Schema(name = "id", description = "Identifier of the TrackingRecord.", 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; + } + TrackingRecord trackingRecord = (TrackingRecord) o; + return Objects.equals(this.atType, trackingRecord.atType) && + Objects.equals(this.atBaseType, trackingRecord.atBaseType) && + Objects.equals(this.atSchemaLocation, trackingRecord.atSchemaLocation) && + Objects.equals(this.description, trackingRecord.description) && + Objects.equals(this.characteristic, trackingRecord.characteristic) && + Objects.equals(this.systemId, trackingRecord.systemId) && + Objects.equals(this.time, trackingRecord.time) && + Objects.equals(this.user, trackingRecord.user) && + Objects.equals(this.id, trackingRecord.id); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, description, characteristic, systemId, time, user, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrackingRecord {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" characteristic: ").append(toIndentedString(characteristic)).append("\n"); + sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\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/TrackingRecordFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java new file mode 100644 index 0000000..a5522cb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java @@ -0,0 +1,283 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicFVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * TrackingRecordFVO + */ + + +@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 TrackingRecordFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String description; + + @Valid + private List characteristic = new ArrayList<>(); + + private String systemId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime time; + + private String user; + + public TrackingRecordFVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public TrackingRecordFVO(String atType) { + this.atType = atType; + } + + public TrackingRecordFVO 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 TrackingRecordFVO 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 TrackingRecordFVO 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 TrackingRecordFVO description(String description) { + this.description = description; + return this; + } + + /** + * Describes the action being done, such as: ack, clear + * @return description + */ + + @Schema(name = "description", example = "[\"acknowledge\",\"clear\"]", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TrackingRecordFVO characteristic(List characteristic) { + this.characteristic = characteristic; + return this; + } + + public TrackingRecordFVO addCharacteristicItem(CharacteristicFVO characteristicItem) { + if (this.characteristic == null) { + this.characteristic = new ArrayList<>(); + } + this.characteristic.add(characteristicItem); + return this; + } + + /** + * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces + * @return characteristic + */ + @Valid + @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristic") + public List getCharacteristic() { + return characteristic; + } + + public void setCharacteristic(List characteristic) { + this.characteristic = characteristic; + } + + public TrackingRecordFVO systemId(String systemId) { + this.systemId = systemId; + return this; + } + + /** + * Describes the system Id from which the action was done + * @return systemId + */ + + @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("systemId") + public String getSystemId() { + return systemId; + } + + public void setSystemId(String systemId) { + this.systemId = systemId; + } + + public TrackingRecordFVO time(OffsetDateTime time) { + this.time = time; + return this; + } + + /** + * Describes the time at which the action was done + * @return time + */ + @Valid + @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + public void setTime(OffsetDateTime time) { + this.time = time; + } + + public TrackingRecordFVO user(String user) { + this.user = user; + return this; + } + + /** + * Describes the user doing the action + * @return user + */ + + @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("user") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TrackingRecordFVO trackingRecordFVO = (TrackingRecordFVO) o; + return Objects.equals(this.atType, trackingRecordFVO.atType) && + Objects.equals(this.atBaseType, trackingRecordFVO.atBaseType) && + Objects.equals(this.atSchemaLocation, trackingRecordFVO.atSchemaLocation) && + Objects.equals(this.description, trackingRecordFVO.description) && + Objects.equals(this.characteristic, trackingRecordFVO.characteristic) && + Objects.equals(this.systemId, trackingRecordFVO.systemId) && + Objects.equals(this.time, trackingRecordFVO.time) && + Objects.equals(this.user, trackingRecordFVO.user); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, description, characteristic, systemId, time, user); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrackingRecordFVO {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" characteristic: ").append(toIndentedString(characteristic)).append("\n"); + sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).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/TrackingRecordMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java new file mode 100644 index 0000000..cd28e75 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java @@ -0,0 +1,307 @@ +package org.etsi.osl.tmf.pm628.model; + +import java.net.URI; +import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonTypeName; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.model.CharacteristicMVO; +import org.springframework.format.annotation.DateTimeFormat; +import org.openapitools.jackson.nullable.JsonNullable; +import java.time.OffsetDateTime; +import javax.validation.Valid; +import javax.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import java.util.*; +import javax.annotation.Generated; + +/** + * TrackingRecordMVO + */ + + +@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 TrackingRecordMVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String description; + + @Valid + private List characteristic = new ArrayList<>(); + + private String systemId; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime time; + + private String user; + + private String id; + + public TrackingRecordMVO() { + super(); + } + + /** + * Constructor with only required parameters + */ + public TrackingRecordMVO(String atType) { + this.atType = atType; + } + + public TrackingRecordMVO 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 TrackingRecordMVO 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 TrackingRecordMVO 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 TrackingRecordMVO description(String description) { + this.description = description; + return this; + } + + /** + * Describes the action being done, such as: ack, clear + * @return description + */ + + @Schema(name = "description", example = "[\"acknowledge\",\"clear\"]", description = "Describes the action being done, such as: ack, clear", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("description") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public TrackingRecordMVO characteristic(List characteristic) { + this.characteristic = characteristic; + return this; + } + + public TrackingRecordMVO addCharacteristicItem(CharacteristicMVO characteristicItem) { + if (this.characteristic == null) { + this.characteristic = new ArrayList<>(); + } + this.characteristic.add(characteristicItem); + return this; + } + + /** + * A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces + * @return characteristic + */ + @Valid + @Schema(name = "characteristic", description = "A generic list of any type of elements. Used for vendor Extensions or loose element encapsulation from other namespaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("characteristic") + public List getCharacteristic() { + return characteristic; + } + + public void setCharacteristic(List characteristic) { + this.characteristic = characteristic; + } + + public TrackingRecordMVO systemId(String systemId) { + this.systemId = systemId; + return this; + } + + /** + * Describes the system Id from which the action was done + * @return systemId + */ + + @Schema(name = "systemId", description = "Describes the system Id from which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("systemId") + public String getSystemId() { + return systemId; + } + + public void setSystemId(String systemId) { + this.systemId = systemId; + } + + public TrackingRecordMVO time(OffsetDateTime time) { + this.time = time; + return this; + } + + /** + * Describes the time at which the action was done + * @return time + */ + @Valid + @Schema(name = "time", description = "Describes the time at which the action was done", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + public void setTime(OffsetDateTime time) { + this.time = time; + } + + public TrackingRecordMVO user(String user) { + this.user = user; + return this; + } + + /** + * Describes the user doing the action + * @return user + */ + + @Schema(name = "user", description = "Describes the user doing the action", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("user") + public String getUser() { + return user; + } + + public void setUser(String user) { + this.user = user; + } + + public TrackingRecordMVO id(String id) { + this.id = id; + return this; + } + + /** + * Identifier of the TrackingRecord. + * @return id + */ + + @Schema(name = "id", description = "Identifier of the TrackingRecord.", 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; + } + TrackingRecordMVO trackingRecordMVO = (TrackingRecordMVO) o; + return Objects.equals(this.atType, trackingRecordMVO.atType) && + Objects.equals(this.atBaseType, trackingRecordMVO.atBaseType) && + Objects.equals(this.atSchemaLocation, trackingRecordMVO.atSchemaLocation) && + Objects.equals(this.description, trackingRecordMVO.description) && + Objects.equals(this.characteristic, trackingRecordMVO.characteristic) && + Objects.equals(this.systemId, trackingRecordMVO.systemId) && + Objects.equals(this.time, trackingRecordMVO.time) && + Objects.equals(this.user, trackingRecordMVO.user) && + Objects.equals(this.id, trackingRecordMVO.id); + } + + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, description, characteristic, systemId, time, user, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrackingRecordMVO {\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(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" characteristic: ").append(toIndentedString(characteristic)).append("\n"); + sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\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 "); + } +} + -- GitLab From dbe8305c9d721b83b2ca92820dd88436fcd4bcd0 Mon Sep 17 00:00:00 2001 From: nkyriakoulis Date: Wed, 15 May 2024 23:57:16 +0300 Subject: [PATCH 08/19] Corrected model imports from the right package --- .../osl/tmf/pm628/model/Characteristic.java | 2 +- .../tmf/pm628/model/CharacteristicFVO.java | 2 +- .../tmf/pm628/model/CharacteristicMVO.java | 2 +- .../osl/tmf/pm628/model/CompressionType.java | 2 +- .../tmf/pm628/model/DataAccessEndpoint.java | 36 +++++++++---------- .../pm628/model/DataAccessEndpointFVO.java | 36 +++++++++---------- .../pm628/model/DataAccessEndpointMVO.java | 36 +++++++++---------- .../model/DataFilterAttributeStringArray.java | 2 +- .../osl/tmf/pm628/model/DataFilterMap.java | 2 +- .../osl/tmf/pm628/model/DataFilterMapFVO.java | 2 +- .../tmf/pm628/model/DataFilterMapItem.java | 4 +-- .../tmf/pm628/model/DataFilterMapItemFVO.java | 4 +-- .../tmf/pm628/model/DataFilterMapItemMVO.java | 4 +-- .../osl/tmf/pm628/model/DataFilterMapMVO.java | 2 +- .../org/etsi/osl/tmf/pm628/model/Event.java | 6 ++-- .../org/etsi/osl/tmf/pm628/model/Feature.java | 6 ++-- .../etsi/osl/tmf/pm628/model/FeatureFVO.java | 6 ++-- .../etsi/osl/tmf/pm628/model/FeatureMVO.java | 6 ++-- .../tmf/pm628/model/FeatureRelationship.java | 2 +- .../pm628/model/FeatureRelationshipFVO.java | 2 +- .../pm628/model/FeatureRelationshipMVO.java | 2 +- .../osl/tmf/pm628/model/FileTransferData.java | 8 ++--- .../tmf/pm628/model/FileTransferDataFVO.java | 8 ++--- .../tmf/pm628/model/FileTransferDataMVO.java | 8 ++--- .../osl/tmf/pm628/model/LogicalResource.java | 34 +++++++++--------- .../tmf/pm628/model/LogicalResourceFVO.java | 34 +++++++++--------- .../tmf/pm628/model/LogicalResourceMVO.java | 34 +++++++++--------- .../osl/tmf/pm628/model/ManagementJob.java | 10 +++--- .../osl/tmf/pm628/model/ManagementJobFVO.java | 10 +++--- .../osl/tmf/pm628/model/ManagementJobMVO.java | 6 ++-- .../pm628/model/MeasurementCollectionJob.java | 28 +++++++-------- ...ollectionJobAttributeValueChangeEvent.java | 8 ++--- ...onJobAttributeValueChangeEventPayload.java | 2 +- .../MeasurementCollectionJobCreateEvent.java | 8 ++--- ...rementCollectionJobCreateEventPayload.java | 2 +- .../MeasurementCollectionJobDeleteEvent.java | 8 ++--- ...rementCollectionJobDeleteEventPayload.java | 2 +- ...ollectionJobExecutionStateChangeEvent.java | 8 ++--- ...onJobExecutionStateChangeEventPayload.java | 2 +- .../model/MeasurementCollectionJobFVO.java | 28 +++++++-------- ...llectionJobFilesPreparationErrorEvent.java | 8 ++--- ...nJobFilesPreparationErrorEventPayload.java | 2 +- ...asurementCollectionJobFilesReadyEvent.java | 8 ++--- ...ntCollectionJobFilesReadyEventPayload.java | 2 +- .../model/MeasurementCollectionJobMVO.java | 20 +++++------ .../osl/tmf/pm628/model/MeasurementJob.java | 24 ++++++------- .../tmf/pm628/model/MeasurementJobFVO.java | 24 ++++++------- .../tmf/pm628/model/MeasurementJobMVO.java | 16 ++++----- .../MonthlyScheduleDayOfWeekDefinition.java | 2 +- ...MonthlyScheduleDayOfWeekDefinitionFVO.java | 2 +- ...MonthlyScheduleDayOfWeekDefinitionMVO.java | 2 +- .../etsi/osl/tmf/pm628/model/PackingType.java | 2 +- .../pm628/model/PartyRefOrPartyRoleRef.java | 4 +-- .../model/PartyRefOrPartyRoleRefFVO.java | 4 +-- .../model/PartyRefOrPartyRoleRefMVO.java | 4 +-- ...chMeasurementCollectionJob200Response.java | 28 +++++++-------- ...ndicatorGroupSpecification200Response.java | 4 +-- ...anceIndicatorSpecification200Response.java | 10 +++--- ...erformanceIndicatorGroupSpecification.java | 2 +- ...ormanceIndicatorGroupSpecificationFVO.java | 2 +- ...ormanceIndicatorGroupSpecificationMVO.java | 2 +- ...IndicatorGroupSpecificationRefOrValue.java | 6 ++-- .../model/PerformanceIndicatorGroupValue.java | 4 +-- .../PerformanceIndicatorSpecRelationship.java | 2 +- ...rformanceIndicatorSpecRelationshipFVO.java | 2 +- ...rformanceIndicatorSpecRelationshipMVO.java | 2 +- .../PerformanceIndicatorSpecification.java | 8 ++--- .../PerformanceIndicatorSpecificationFVO.java | 8 ++--- .../PerformanceIndicatorSpecificationMVO.java | 8 ++--- ...manceIndicatorSpecificationRefOrValue.java | 12 +++---- ...ceIndicatorSpecificationRefOrValueFVO.java | 12 +++---- ...ceIndicatorSpecificationRefOrValueMVO.java | 12 +++---- .../model/PerformanceIndicatorValue.java | 2 +- .../pm628/model/PerformanceMeasurement.java | 6 ++-- .../model/PerformanceMeasurementAtomic.java | 10 +++--- ...rmanceMeasurementCollectionReadyEvent.java | 8 ++--- ...easurementCollectionReadyEventPayload.java | 2 +- .../PerformanceMeasurementCreateEvent.java | 8 ++--- ...formanceMeasurementCreateEventPayload.java | 2 +- .../model/PerformanceMeasurementGroup.java | 10 +++--- .../PerformanceMeasurementRefOrValue.java | 10 +++--- .../PerformanceMeasurementRelationship.java | 4 +-- .../model/RelatedPartyRefOrPartyRoleRef.java | 2 +- .../RelatedPartyRefOrPartyRoleRefFVO.java | 2 +- .../RelatedPartyRefOrPartyRoleRefMVO.java | 2 +- .../osl/tmf/pm628/model/RelatedPlaceRef.java | 2 +- .../tmf/pm628/model/RelatedPlaceRefFVO.java | 2 +- .../tmf/pm628/model/RelatedPlaceRefMVO.java | 2 +- .../pm628/model/RelatedResourceOrderItem.java | 2 +- .../model/RelatedResourceOrderItemFVO.java | 2 +- .../model/RelatedResourceOrderItemMVO.java | 2 +- .../etsi/osl/tmf/pm628/model/Resource.java | 32 ++++++++--------- .../etsi/osl/tmf/pm628/model/ResourceFVO.java | 32 ++++++++--------- .../etsi/osl/tmf/pm628/model/ResourceMVO.java | 32 ++++++++--------- .../tmf/pm628/model/ResourceRefOrValue.java | 36 +++++++++---------- .../pm628/model/ResourceRefOrValueFVO.java | 36 +++++++++---------- .../pm628/model/ResourceRefOrValueMVO.java | 36 +++++++++---------- .../tmf/pm628/model/ResourceRelationship.java | 4 +-- .../pm628/model/ResourceRelationshipFVO.java | 4 +-- .../pm628/model/ResourceRelationshipMVO.java | 4 +-- .../tmf/pm628/model/ScheduleDefinition.java | 4 +-- .../pm628/model/ScheduleDefinitionFVO.java | 4 +-- .../pm628/model/ScheduleDefinitionMVO.java | 4 +-- .../osl/tmf/pm628/model/TrackingRecord.java | 2 +- .../tmf/pm628/model/TrackingRecordFVO.java | 2 +- .../tmf/pm628/model/TrackingRecordMVO.java | 2 +- 106 files changed, 488 insertions(+), 488 deletions(-) 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 index 00abbe9..464e945 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicRelationship; +import org.etsi.osl.tmf.pm628.model.CharacteristicRelationship; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index 4ba0a4b..bc0ac02 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicRelationshipFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index 7b329f3..2d80c6d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicRelationshipMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index ae1e890..fe22602 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -5,7 +5,7 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.CompressionEnumType; +import org.etsi.osl.tmf.pm628.model.CompressionEnumType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index ef8d9a4..eaedc69 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -13,24 +13,24 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRef; -import org.openapitools.model.Characteristic; -import org.openapitools.model.DataFilterMap; -import org.openapitools.model.ExternalIdentifier; -import org.openapitools.model.Feature; -import org.openapitools.model.IntentRef; -import org.openapitools.model.LogicalResource; -import org.openapitools.model.Note; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; -import org.openapitools.model.RelatedPlaceRef; -import org.openapitools.model.RelatedResourceOrderItem; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationship; -import org.openapitools.model.ResourceSpecificationRef; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.DataFilterMap; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; +import org.etsi.osl.tmf.pm628.model.Feature; +import org.etsi.osl.tmf.pm628.model.IntentRef; +import org.etsi.osl.tmf.pm628.model.LogicalResource; +import org.etsi.osl.tmf.pm628.model.Note; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationship; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; 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 index 187edad..26a44a2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java @@ -14,24 +14,24 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefFVO; -import org.openapitools.model.CharacteristicFVO; -import org.openapitools.model.DataFilterMapFVO; -import org.openapitools.model.ExternalIdentifierFVO; -import org.openapitools.model.FeatureFVO; -import org.openapitools.model.IntentRefFVO; -import org.openapitools.model.LogicalResourceFVO; -import org.openapitools.model.NoteFVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.openapitools.model.RelatedPlaceRefFVO; -import org.openapitools.model.RelatedResourceOrderItemFVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationshipFVO; -import org.openapitools.model.ResourceSpecificationRefFVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.DataFilterMapFVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; +import org.etsi.osl.tmf.pm628.model.FeatureFVO; +import org.etsi.osl.tmf.pm628.model.IntentRefFVO; +import org.etsi.osl.tmf.pm628.model.LogicalResourceFVO; +import org.etsi.osl.tmf.pm628.model.NoteFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; 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 index e092f7c..2702cb8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java @@ -14,24 +14,24 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefMVO; -import org.openapitools.model.CharacteristicMVO; -import org.openapitools.model.DataFilterMapMVO; -import org.openapitools.model.ExternalIdentifierMVO; -import org.openapitools.model.FeatureMVO; -import org.openapitools.model.IntentRefMVO; -import org.openapitools.model.LogicalResourceMVO; -import org.openapitools.model.NoteMVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.openapitools.model.RelatedPlaceRefMVO; -import org.openapitools.model.RelatedResourceOrderItemMVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationshipMVO; -import org.openapitools.model.ResourceSpecificationRefMVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.DataFilterMapMVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; +import org.etsi.osl.tmf.pm628.model.FeatureMVO; +import org.etsi.osl.tmf.pm628.model.IntentRefMVO; +import org.etsi.osl.tmf.pm628.model.LogicalResourceMVO; +import org.etsi.osl.tmf.pm628.model.NoteMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; 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 index b5be0ec..ad06e42 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataFilterAttribute; +import org.etsi.osl.tmf.pm628.model.DataFilterAttribute; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index 6c3ac20..b581ae6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataFilterMapItem; +import org.etsi.osl.tmf.pm628.model.DataFilterMapItem; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index af74f3b..80b080d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataFilterMapItemFVO; +import org.etsi.osl.tmf.pm628.model.DataFilterMapItemFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index 3beba81..bd21041 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java @@ -4,8 +4,8 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.DataFilterAttributeStringArray; -import org.openapitools.model.DataFilterTemplate; +import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; +import org.etsi.osl.tmf.pm628.model.DataFilterTemplate; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index e00ab29..9d182a4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.DataFilterAttributeStringArray; -import org.openapitools.model.DataFilterTemplateFVO; +import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; +import org.etsi.osl.tmf.pm628.model.DataFilterTemplateFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index 80a9137..a84943d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.DataFilterAttributeStringArray; -import org.openapitools.model.DataFilterTemplateMVO; +import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; +import org.etsi.osl.tmf.pm628.model.DataFilterTemplateMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index 8e529df..a0c98d6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataFilterMapItemMVO; +import org.etsi.osl.tmf.pm628.model.DataFilterMapItemMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; 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 index cd93428..4be5168 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java @@ -8,9 +8,9 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java index 9037538..c98d1e2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.FeatureRelationship; -import org.openapitools.model.PolicyRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.FeatureRelationship; +import org.etsi.osl.tmf.pm628.model.PolicyRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java index cceaf38..1083b20 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicFVO; -import org.openapitools.model.FeatureRelationshipFVO; -import org.openapitools.model.PolicyRefFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.FeatureRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.PolicyRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java index 0c68d65..dca970d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicMVO; -import org.openapitools.model.FeatureRelationshipMVO; -import org.openapitools.model.PolicyRefMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.FeatureRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.PolicyRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java index 2d81a15..ed559e0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java index 77cf41d..9d87c63 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java index feb42c9..deb9f1f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index 00d4651..9be9a4e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -8,10 +8,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.net.URI; -import org.openapitools.model.CompressionType; -import org.openapitools.model.Duration; -import org.openapitools.model.PackingType; -import org.openapitools.model.ProtocolTransferData; +import org.etsi.osl.tmf.pm628.model.CompressionType; +import org.etsi.osl.tmf.pm628.model.Duration; +import org.etsi.osl.tmf.pm628.model.PackingType; +import org.etsi.osl.tmf.pm628.model.ProtocolTransferData; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java index 3319fa2..55ca666 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.net.URI; -import org.openapitools.model.CompressionType; -import org.openapitools.model.Duration; -import org.openapitools.model.PackingType; -import org.openapitools.model.ProtocolTransferDataFVO; +import org.etsi.osl.tmf.pm628.model.CompressionType; +import org.etsi.osl.tmf.pm628.model.Duration; +import org.etsi.osl.tmf.pm628.model.PackingType; +import org.etsi.osl.tmf.pm628.model.ProtocolTransferDataFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java index c62b3a7..20bd0b4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import java.net.URI; -import org.openapitools.model.CompressionType; -import org.openapitools.model.Duration; -import org.openapitools.model.PackingType; -import org.openapitools.model.ProtocolTransferData; +import org.etsi.osl.tmf.pm628.model.CompressionType; +import org.etsi.osl.tmf.pm628.model.Duration; +import org.etsi.osl.tmf.pm628.model.PackingType; +import org.etsi.osl.tmf.pm628.model.ProtocolTransferData; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java index f75a20c..ff1cdf3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java @@ -12,23 +12,23 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRef; -import org.openapitools.model.Characteristic; -import org.openapitools.model.ExternalIdentifier; -import org.openapitools.model.Feature; -import org.openapitools.model.IntentRef; -import org.openapitools.model.Note; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; -import org.openapitools.model.RelatedPlaceRef; -import org.openapitools.model.RelatedResourceOrderItem; -import org.openapitools.model.Resource; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationship; -import org.openapitools.model.ResourceSpecificationRef; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; +import org.etsi.osl.tmf.pm628.model.Feature; +import org.etsi.osl.tmf.pm628.model.IntentRef; +import org.etsi.osl.tmf.pm628.model.Note; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; +import org.etsi.osl.tmf.pm628.model.Resource; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationship; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java index 2e894d8..012cc0d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java @@ -13,23 +13,23 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefFVO; -import org.openapitools.model.CharacteristicFVO; -import org.openapitools.model.ExternalIdentifierFVO; -import org.openapitools.model.FeatureFVO; -import org.openapitools.model.IntentRefFVO; -import org.openapitools.model.NoteFVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.openapitools.model.RelatedPlaceRefFVO; -import org.openapitools.model.RelatedResourceOrderItemFVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceFVO; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationshipFVO; -import org.openapitools.model.ResourceSpecificationRefFVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; +import org.etsi.osl.tmf.pm628.model.FeatureFVO; +import org.etsi.osl.tmf.pm628.model.IntentRefFVO; +import org.etsi.osl.tmf.pm628.model.NoteFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceFVO; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java index 54e889f..88986e3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java @@ -13,23 +13,23 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefMVO; -import org.openapitools.model.CharacteristicMVO; -import org.openapitools.model.ExternalIdentifierMVO; -import org.openapitools.model.FeatureMVO; -import org.openapitools.model.IntentRefMVO; -import org.openapitools.model.NoteMVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.openapitools.model.RelatedPlaceRefMVO; -import org.openapitools.model.RelatedResourceOrderItemMVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceMVO; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationshipMVO; -import org.openapitools.model.ResourceSpecificationRefMVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; +import org.etsi.osl.tmf.pm628.model.FeatureMVO; +import org.etsi.osl.tmf.pm628.model.IntentRefMVO; +import org.etsi.osl.tmf.pm628.model.NoteMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceMVO; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index a01a50a..21db2d1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -12,11 +12,11 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpoint; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferData; -import org.openapitools.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java index 12a67ca..d7be127 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -13,11 +13,11 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpointFVO; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferDataFVO; -import org.openapitools.model.ScheduleDefinitionFVO; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpointFVO; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferDataFVO; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 14d515d..704696f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataAccessEndpointMVO; -import org.openapitools.model.FileTransferDataMVO; -import org.openapitools.model.ScheduleDefinitionMVO; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpointMVO; +import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index 136cf69..caccfef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -12,20 +12,20 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpoint; -import org.openapitools.model.DataFilterMap; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferData; -import org.openapitools.model.Granularity; -import org.openapitools.model.MeasurementJob; -import org.openapitools.model.MonitoredClassCriteria; -import org.openapitools.model.MonitoredInstancesCriteria; -import org.openapitools.model.PerformanceIndicatorGroupSpecification; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; -import org.openapitools.model.ReportingPeriod; -import org.openapitools.model.ScheduleDefinition; -import org.openapitools.model.TrackingRecord; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; +import org.etsi.osl.tmf.pm628.model.DataFilterMap; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MeasurementJob; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java index af83635..adec25f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.MeasurementCollectionJobAttributeValueChangeEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobAttributeValueChangeEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java index ebbdc1f..c5b8b63 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.MeasurementCollectionJob; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java index 1bc9511..bf30c6f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.MeasurementCollectionJobCreateEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobCreateEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java index 3a138e0..48b1d33 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.MeasurementCollectionJobRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java index ad10457..670e5c9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.MeasurementCollectionJobDeleteEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobDeleteEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java index 4d06f3c..e87d7d3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.MeasurementCollectionJob; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java index 833f3dc..b37a4df 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.MeasurementCollectionJobExecutionStateChangeEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobExecutionStateChangeEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java index 937827c..17bc593 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.MeasurementCollectionJob; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java index bf2ade1..a9b8fed 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -13,20 +13,20 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpointFVO; -import org.openapitools.model.DataFilterMapFVO; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferDataFVO; -import org.openapitools.model.Granularity; -import org.openapitools.model.MeasurementJobFVO; -import org.openapitools.model.MonitoredClassCriteriaFVO; -import org.openapitools.model.MonitoredInstancesCriteriaFVO; -import org.openapitools.model.PerformanceIndicatorGroupSpecificationFVO; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueFVO; -import org.openapitools.model.ReportingPeriod; -import org.openapitools.model.ScheduleDefinitionFVO; -import org.openapitools.model.TrackingRecordFVO; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpointFVO; +import org.etsi.osl.tmf.pm628.model.DataFilterMapFVO; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferDataFVO; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MeasurementJobFVO; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteriaFVO; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteriaFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; +import org.etsi.osl.tmf.pm628.model.TrackingRecordFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java index cad28bd..e02f972 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.MeasurementCollectionJobFilesPreparationErrorEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesPreparationErrorEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java index 3a81e53..3b9cc51 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.MeasurementCollectionJob; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java index 1ada956..fbb8d7b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.MeasurementCollectionJobFilesReadyEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesReadyEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java index 81bc386..7c4e01a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.MeasurementCollectionJob; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java index 4a86b07..b603b42 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java @@ -12,16 +12,16 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataAccessEndpointMVO; -import org.openapitools.model.DataFilterMapMVO; -import org.openapitools.model.FileTransferDataMVO; -import org.openapitools.model.Granularity; -import org.openapitools.model.MeasurementJobMVO; -import org.openapitools.model.PerformanceIndicatorGroupSpecificationMVO; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueMVO; -import org.openapitools.model.ReportingPeriod; -import org.openapitools.model.ScheduleDefinitionMVO; -import org.openapitools.model.TrackingRecordMVO; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpointMVO; +import org.etsi.osl.tmf.pm628.model.DataFilterMapMVO; +import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MeasurementJobMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; +import org.etsi.osl.tmf.pm628.model.TrackingRecordMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index 70cc7f2..5534126 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -12,18 +12,18 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpoint; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferData; -import org.openapitools.model.Granularity; -import org.openapitools.model.ManagementJob; -import org.openapitools.model.MonitoredClassCriteria; -import org.openapitools.model.MonitoredInstancesCriteria; -import org.openapitools.model.PerformanceIndicatorGroupSpecification; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; -import org.openapitools.model.ScheduleDefinition; -import org.openapitools.model.TrackingRecord; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.ManagementJob; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java index 498fd19..56d8cdb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -13,18 +13,18 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpointFVO; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferDataFVO; -import org.openapitools.model.Granularity; -import org.openapitools.model.ManagementJobFVO; -import org.openapitools.model.MonitoredClassCriteriaFVO; -import org.openapitools.model.MonitoredInstancesCriteriaFVO; -import org.openapitools.model.PerformanceIndicatorGroupSpecificationFVO; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueFVO; -import org.openapitools.model.ScheduleDefinitionFVO; -import org.openapitools.model.TrackingRecordFVO; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpointFVO; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferDataFVO; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.ManagementJobFVO; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteriaFVO; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteriaFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; +import org.etsi.osl.tmf.pm628.model.TrackingRecordFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java index f7eab16..edc2246 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java @@ -12,14 +12,14 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DataAccessEndpointMVO; -import org.openapitools.model.FileTransferDataMVO; -import org.openapitools.model.Granularity; -import org.openapitools.model.ManagementJobMVO; -import org.openapitools.model.PerformanceIndicatorGroupSpecificationMVO; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueMVO; -import org.openapitools.model.ScheduleDefinitionMVO; -import org.openapitools.model.TrackingRecordMVO; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpointMVO; +import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.ManagementJobMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; +import org.etsi.osl.tmf.pm628.model.TrackingRecordMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index 7001db4..ab0eccc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DayOfMonthRecurrence; +import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrence; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java index 29f0184..8d79238 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DayOfMonthRecurrenceFVO; +import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrenceFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java index c88ef32..6b7e16f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DayOfMonthRecurrenceMVO; +import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrenceMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 9a5e7a8..13e75a6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -5,7 +5,7 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.PackingEnumType; +import org.etsi.osl.tmf.pm628.model.PackingEnumType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java index 217dc33..f4ca5f1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.model.PartyRef; -import org.openapitools.model.PartyRoleRef; +import org.etsi.osl.tmf.pm628.model.PartyRef; +import org.etsi.osl.tmf.pm628.model.PartyRoleRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java index 0d7cf20..7922429 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java @@ -8,8 +8,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.PartyRefFVO; -import org.openapitools.model.PartyRoleRefFVO; +import org.etsi.osl.tmf.pm628.model.PartyRefFVO; +import org.etsi.osl.tmf.pm628.model.PartyRoleRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java index 337eee7..d81373c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java @@ -8,8 +8,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.PartyRefMVO; -import org.openapitools.model.PartyRoleRefMVO; +import org.etsi.osl.tmf.pm628.model.PartyRefMVO; +import org.etsi.osl.tmf.pm628.model.PartyRoleRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java index 16c3b48..a5b19a3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java @@ -10,20 +10,20 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AdministrativeState; -import org.openapitools.model.DataAccessEndpoint; -import org.openapitools.model.DataFilterMap; -import org.openapitools.model.ExecutionStateType; -import org.openapitools.model.FileTransferData; -import org.openapitools.model.Granularity; -import org.openapitools.model.MeasurementCollectionJob; -import org.openapitools.model.MonitoredClassCriteria; -import org.openapitools.model.MonitoredInstancesCriteria; -import org.openapitools.model.PerformanceIndicatorGroupSpecification; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; -import org.openapitools.model.ReportingPeriod; -import org.openapitools.model.ScheduleDefinition; -import org.openapitools.model.TrackingRecord; +import org.etsi.osl.tmf.pm628.model.AdministrativeState; +import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; +import org.etsi.osl.tmf.pm628.model.DataFilterMap; +import org.etsi.osl.tmf.pm628.model.ExecutionStateType; +import org.etsi.osl.tmf.pm628.model.FileTransferData; +import org.etsi.osl.tmf.pm628.model.Granularity; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; +import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; +import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.ReportingPeriod; +import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; +import org.etsi.osl.tmf.pm628.model.TrackingRecord; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java index 5bc3da0..9a4f845 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java @@ -8,8 +8,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.PerformanceIndicatorGroupSpecification; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java index dd36f58..1df3d09 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationship; -import org.openapitools.model.PerformanceIndicatorSpecification; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecification; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index 33fcc62..2fa8592 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java index 54f2467..7b33532 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java index fdc4da6..229f500 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValueMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java index 33e9fae..6375b60 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.PerformanceIndicatorGroupSpecification; -import org.openapitools.model.PerformanceIndicatorGroupSpecificationRef; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationRef; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java index 67b2d2a..ec1a0f0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.PerformanceIndicatorGroupSpecificationRefOrValue; -import org.openapitools.model.PerformanceIndicatorValue; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index 019514a..ded25b7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java index 2638a21..f61e406 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java index b7b1e0c..d307acf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 3f6f8c3..3ef1283 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -11,10 +11,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationship; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java index d5ca168..3d05567 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java @@ -12,10 +12,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationshipFVO; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java index 0c410de..414c0b7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java @@ -12,10 +12,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationshipMVO; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index b6d7c01..abfef86 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -11,12 +11,12 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationship; -import org.openapitools.model.PerformanceIndicatorSpecification; -import org.openapitools.model.PerformanceIndicatorSpecificationRef; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecification; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java index 3409957..29c844f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java @@ -12,12 +12,12 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationshipFVO; -import org.openapitools.model.PerformanceIndicatorSpecificationFVO; -import org.openapitools.model.PerformanceIndicatorSpecificationRefFVO; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationFVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefFVO; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java index 73543ec..684f7cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java @@ -12,12 +12,12 @@ import com.fasterxml.jackson.annotation.JsonValue; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CollectionType; -import org.openapitools.model.IndicatorType; -import org.openapitools.model.PerformanceIndicatorSpecRelationshipMVO; -import org.openapitools.model.PerformanceIndicatorSpecificationMVO; -import org.openapitools.model.PerformanceIndicatorSpecificationRefMVO; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.CollectionType; +import org.etsi.osl.tmf.pm628.model.IndicatorType; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationMVO; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefMVO; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java index 7b31561..40d5bd3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.PerformanceIndicatorSpecificationRefOrValue; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java index 42b1c25..2725a4c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.MeasurementCollectionJobRef; -import org.openapitools.model.PerformanceMeasurementRelationship; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java index cb172da..c77cb7d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java @@ -10,11 +10,11 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.MeasurementCollectionJobRef; -import org.openapitools.model.PerformanceIndicatorValue; -import org.openapitools.model.PerformanceMeasurement; -import org.openapitools.model.PerformanceMeasurementRelationship; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorValue; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java index 98ceaf1..4ee7177 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.PerformanceMeasurementCollectionReadyEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementCollectionReadyEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java index b1c2b9b..1970542 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.PerformanceMeasurement; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java index f54c59f..56b1ff9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java @@ -11,10 +11,10 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.EntityRef; -import org.openapitools.model.PerformanceMeasurementCreateEventPayload; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.EntityRef; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementCreateEventPayload; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java index 97d5180..9d55fe8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java @@ -4,7 +4,7 @@ import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.model.PerformanceMeasurement; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java index bc71cf2..7dd32d9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java @@ -10,11 +10,11 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.MeasurementCollectionJobRef; -import org.openapitools.model.PerformanceIndicatorGroupValue; -import org.openapitools.model.PerformanceMeasurement; -import org.openapitools.model.PerformanceMeasurementRelationship; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; +import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupValue; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java index 15ec16c..f7a23cc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java @@ -10,11 +10,11 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.MeasurementCollectionJobRef; -import org.openapitools.model.PerformanceMeasurement; -import org.openapitools.model.PerformanceMeasurementRef; -import org.openapitools.model.PerformanceMeasurementRelationship; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRef; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java index 2f346e9..05e5858 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.model.PerformanceMeasurementRefOrValue; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRefOrValue; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java index 3d13f70..05352c0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.model.PartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java index 3c8b08f..c484a7f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.PartyRefOrPartyRoleRefFVO; +import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java index 7309888..a8d68b3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.PartyRefOrPartyRoleRefMVO; +import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java index 83eb15a..ae2ca0a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java @@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.model.PlaceRef; +import org.etsi.osl.tmf.pm628.model.PlaceRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java index 870b244..5b1850f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.PlaceRefFVO; +import org.etsi.osl.tmf.pm628.model.PlaceRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java index 828658a..ada26b9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.model.PlaceRefMVO; +import org.etsi.osl.tmf.pm628.model.PlaceRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java index f43fce3..53e85fd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.OrderItemActionType; +import org.etsi.osl.tmf.pm628.model.OrderItemActionType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java index f4672e3..3bfcfb6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.OrderItemActionType; +import org.etsi.osl.tmf.pm628.model.OrderItemActionType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java index d557358..99e80ca 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.model.OrderItemActionType; +import org.etsi.osl.tmf.pm628.model.OrderItemActionType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java index 2f82adb..fb7d55d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java @@ -12,22 +12,22 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRef; -import org.openapitools.model.Characteristic; -import org.openapitools.model.ExternalIdentifier; -import org.openapitools.model.Feature; -import org.openapitools.model.IntentRef; -import org.openapitools.model.Note; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; -import org.openapitools.model.RelatedPlaceRef; -import org.openapitools.model.RelatedResourceOrderItem; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationship; -import org.openapitools.model.ResourceSpecificationRef; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; +import org.etsi.osl.tmf.pm628.model.Feature; +import org.etsi.osl.tmf.pm628.model.IntentRef; +import org.etsi.osl.tmf.pm628.model.Note; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationship; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java index 0ff727d..710a1fd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java @@ -13,22 +13,22 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefFVO; -import org.openapitools.model.CharacteristicFVO; -import org.openapitools.model.ExternalIdentifierFVO; -import org.openapitools.model.FeatureFVO; -import org.openapitools.model.IntentRefFVO; -import org.openapitools.model.NoteFVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.openapitools.model.RelatedPlaceRefFVO; -import org.openapitools.model.RelatedResourceOrderItemFVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationshipFVO; -import org.openapitools.model.ResourceSpecificationRefFVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; +import org.etsi.osl.tmf.pm628.model.FeatureFVO; +import org.etsi.osl.tmf.pm628.model.IntentRefFVO; +import org.etsi.osl.tmf.pm628.model.NoteFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java index 609b346..692b751 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java @@ -13,22 +13,22 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefMVO; -import org.openapitools.model.CharacteristicMVO; -import org.openapitools.model.ExternalIdentifierMVO; -import org.openapitools.model.FeatureMVO; -import org.openapitools.model.IntentRefMVO; -import org.openapitools.model.NoteMVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.openapitools.model.RelatedPlaceRefMVO; -import org.openapitools.model.RelatedResourceOrderItemMVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRelationshipMVO; -import org.openapitools.model.ResourceSpecificationRefMVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; +import org.etsi.osl.tmf.pm628.model.FeatureMVO; +import org.etsi.osl.tmf.pm628.model.IntentRefMVO; +import org.etsi.osl.tmf.pm628.model.NoteMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java index b1b42a3..b1ba6cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java @@ -12,24 +12,24 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRef; -import org.openapitools.model.Characteristic; -import org.openapitools.model.ExternalIdentifier; -import org.openapitools.model.Feature; -import org.openapitools.model.IntentRef; -import org.openapitools.model.Note; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRef; -import org.openapitools.model.RelatedPlaceRef; -import org.openapitools.model.RelatedResourceOrderItem; -import org.openapitools.model.Resource; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRef; -import org.openapitools.model.ResourceRelationship; -import org.openapitools.model.ResourceSpecificationRef; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRef; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; +import org.etsi.osl.tmf.pm628.model.Feature; +import org.etsi.osl.tmf.pm628.model.IntentRef; +import org.etsi.osl.tmf.pm628.model.Note; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; +import org.etsi.osl.tmf.pm628.model.Resource; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRef; +import org.etsi.osl.tmf.pm628.model.ResourceRelationship; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java index 743a86d..257ddbb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java @@ -13,24 +13,24 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefFVO; -import org.openapitools.model.CharacteristicFVO; -import org.openapitools.model.ExternalIdentifierFVO; -import org.openapitools.model.FeatureFVO; -import org.openapitools.model.IntentRefFVO; -import org.openapitools.model.NoteFVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.openapitools.model.RelatedPlaceRefFVO; -import org.openapitools.model.RelatedResourceOrderItemFVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceFVO; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRefFVO; -import org.openapitools.model.ResourceRelationshipFVO; -import org.openapitools.model.ResourceSpecificationRefFVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; +import org.etsi.osl.tmf.pm628.model.FeatureFVO; +import org.etsi.osl.tmf.pm628.model.IntentRefFVO; +import org.etsi.osl.tmf.pm628.model.NoteFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceFVO; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRefFVO; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java index 173c8fc..d26fa6b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java @@ -13,24 +13,24 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.AttachmentRefMVO; -import org.openapitools.model.CharacteristicMVO; -import org.openapitools.model.ExternalIdentifierMVO; -import org.openapitools.model.FeatureMVO; -import org.openapitools.model.IntentRefMVO; -import org.openapitools.model.NoteMVO; -import org.openapitools.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.openapitools.model.RelatedPlaceRefMVO; -import org.openapitools.model.RelatedResourceOrderItemMVO; -import org.openapitools.model.ResourceAdministrativeStateType; -import org.openapitools.model.ResourceMVO; -import org.openapitools.model.ResourceOperationalStateType; -import org.openapitools.model.ResourceRefMVO; -import org.openapitools.model.ResourceRelationshipMVO; -import org.openapitools.model.ResourceSpecificationRefMVO; -import org.openapitools.model.ResourceStatusType; -import org.openapitools.model.ResourceUsageStateType; -import org.openapitools.model.TimePeriod; +import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; +import org.etsi.osl.tmf.pm628.model.FeatureMVO; +import org.etsi.osl.tmf.pm628.model.IntentRefMVO; +import org.etsi.osl.tmf.pm628.model.NoteMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; +import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; +import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; +import org.etsi.osl.tmf.pm628.model.ResourceMVO; +import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; +import org.etsi.osl.tmf.pm628.model.ResourceRefMVO; +import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; +import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; +import org.etsi.osl.tmf.pm628.model.ResourceStatusType; +import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; +import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java index 782e9d9..17ddcc4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; -import org.openapitools.model.ResourceRefOrValue; +import org.etsi.osl.tmf.pm628.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.ResourceRefOrValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java index 0b18cd5..f31bcb2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicFVO; -import org.openapitools.model.ResourceRefOrValueFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.ResourceRefOrValueFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java index b87d263..83d300d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicMVO; -import org.openapitools.model.ResourceRefOrValueMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.ResourceRefOrValueMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; import javax.validation.Valid; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index ad4a9d7..6d38f32 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -11,8 +11,8 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DayOfWeekRecurrence; -import org.openapitools.model.MonthlyScheduleDayOfWeekDefinition; +import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrence; +import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinition; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java index af6b1b1..d3197ae 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DayOfWeekRecurrenceFVO; -import org.openapitools.model.MonthlyScheduleDayOfWeekDefinitionFVO; +import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrenceFVO; +import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinitionFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java index 9d26cf6..12607a7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.DayOfWeekRecurrenceMVO; -import org.openapitools.model.MonthlyScheduleDayOfWeekDefinitionMVO; +import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrenceMVO; +import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinitionMVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index c9e1bdf..6439739 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -11,7 +11,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.Characteristic; +import org.etsi.osl.tmf.pm628.model.Characteristic; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java index a5522cb..252e59f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java @@ -12,7 +12,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicFVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java index cd28e75..22009b9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java @@ -12,7 +12,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import org.openapitools.model.CharacteristicMVO; +import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -- GitLab From f90812ad58caa39e27040b1045c93f236101c022 Mon Sep 17 00:00:00 2001 From: nkyriakoulis Date: Thu, 16 May 2024 16:17:32 +0300 Subject: [PATCH 09/19] Replaced javax.validation with jakarta.validation, added jackson-databind-nullable dependency in pom --- pom.xml | 9 +++++++++ .../java/org/etsi/osl/tmf/pm628/model/Addressable.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/AddressableMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/AdministrativeState.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/BaseEvent.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/Characteristic.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java | 4 ++-- .../osl/tmf/pm628/model/CharacteristicRelationship.java | 4 ++-- .../tmf/pm628/model/CharacteristicRelationshipFVO.java | 4 ++-- .../tmf/pm628/model/CharacteristicRelationshipMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/CollectionType.java | 4 ++-- .../etsi/osl/tmf/pm628/model/CompressionEnumType.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/CompressionType.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataFilterAttribute.java | 4 ++-- .../tmf/pm628/model/DataFilterAttributeStringArray.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java | 4 ++-- .../osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java | 4 ++-- .../osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/EntityMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/EntityRef.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Error.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Event.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ExecutionStateType.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/Extensible.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/FeatureRelationship.java | 4 ++-- .../etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/FileTransferData.java | 4 ++-- .../etsi/osl/tmf/pm628/model/FileTransferDataFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/FileTransferDataMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/Granularity.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/IndicatorType.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/IntentRef.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/JsonPatch.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/LogicalResource.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/ManagementJob.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java | 4 ++-- .../osl/tmf/pm628/model/MeasurementCollectionJob.java | 4 ++-- ...easurementCollectionJobAttributeValueChangeEvent.java | 4 ++-- ...entCollectionJobAttributeValueChangeEventPayload.java | 4 ++-- .../pm628/model/MeasurementCollectionJobCreateEvent.java | 4 ++-- .../MeasurementCollectionJobCreateEventPayload.java | 4 ++-- .../pm628/model/MeasurementCollectionJobDeleteEvent.java | 4 ++-- .../MeasurementCollectionJobDeleteEventPayload.java | 4 ++-- ...easurementCollectionJobExecutionStateChangeEvent.java | 4 ++-- ...entCollectionJobExecutionStateChangeEventPayload.java | 4 ++-- .../osl/tmf/pm628/model/MeasurementCollectionJobFVO.java | 4 ++-- ...asurementCollectionJobFilesPreparationErrorEvent.java | 4 ++-- ...ntCollectionJobFilesPreparationErrorEventPayload.java | 4 ++-- .../model/MeasurementCollectionJobFilesReadyEvent.java | 4 ++-- .../MeasurementCollectionJobFilesReadyEventPayload.java | 4 ++-- .../osl/tmf/pm628/model/MeasurementCollectionJobMVO.java | 4 ++-- .../osl/tmf/pm628/model/MeasurementCollectionJobRef.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/MeasurementJob.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java | 4 ++-- .../osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java | 4 ++-- .../osl/tmf/pm628/model/MonitoredInstancesCriteria.java | 4 ++-- .../tmf/pm628/model/MonitoredInstancesCriteriaFVO.java | 4 ++-- .../pm628/model/MonthlyScheduleDayOfWeekDefinition.java | 4 ++-- .../model/MonthlyScheduleDayOfWeekDefinitionFVO.java | 4 ++-- .../model/MonthlyScheduleDayOfWeekDefinitionMVO.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Note.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/OrderItemActionType.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/PackingEnumType.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PackingType.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java | 4 ++-- .../osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java | 4 ++-- .../osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java | 4 ++-- .../model/PatchMeasurementCollectionJob200Response.java | 4 ++-- ...erformanceIndicatorGroupSpecification200Response.java | 4 ++-- ...atchPerformanceIndicatorSpecification200Response.java | 4 ++-- .../model/PerformanceIndicatorGroupSpecification.java | 4 ++-- .../model/PerformanceIndicatorGroupSpecificationFVO.java | 4 ++-- .../model/PerformanceIndicatorGroupSpecificationMVO.java | 4 ++-- .../model/PerformanceIndicatorGroupSpecificationRef.java | 4 ++-- ...PerformanceIndicatorGroupSpecificationRefOrValue.java | 4 ++-- .../tmf/pm628/model/PerformanceIndicatorGroupValue.java | 4 ++-- .../model/PerformanceIndicatorSpecRelationship.java | 4 ++-- .../model/PerformanceIndicatorSpecRelationshipFVO.java | 4 ++-- .../model/PerformanceIndicatorSpecRelationshipMVO.java | 4 ++-- .../pm628/model/PerformanceIndicatorSpecification.java | 4 ++-- .../model/PerformanceIndicatorSpecificationFVO.java | 4 ++-- .../model/PerformanceIndicatorSpecificationMVO.java | 4 ++-- .../model/PerformanceIndicatorSpecificationRef.java | 4 ++-- .../model/PerformanceIndicatorSpecificationRefFVO.java | 4 ++-- .../model/PerformanceIndicatorSpecificationRefMVO.java | 4 ++-- .../PerformanceIndicatorSpecificationRefOrValue.java | 4 ++-- .../PerformanceIndicatorSpecificationRefOrValueFVO.java | 4 ++-- .../PerformanceIndicatorSpecificationRefOrValueMVO.java | 4 ++-- .../osl/tmf/pm628/model/PerformanceIndicatorValue.java | 4 ++-- .../etsi/osl/tmf/pm628/model/PerformanceMeasurement.java | 4 ++-- .../tmf/pm628/model/PerformanceMeasurementAtomic.java | 4 ++-- .../PerformanceMeasurementCollectionReadyEvent.java | 4 ++-- ...erformanceMeasurementCollectionReadyEventPayload.java | 4 ++-- .../pm628/model/PerformanceMeasurementCreateEvent.java | 4 ++-- .../model/PerformanceMeasurementCreateEventPayload.java | 4 ++-- .../osl/tmf/pm628/model/PerformanceMeasurementGroup.java | 4 ++-- .../osl/tmf/pm628/model/PerformanceMeasurementRef.java | 4 ++-- .../pm628/model/PerformanceMeasurementRefOrValue.java | 4 ++-- .../pm628/model/PerformanceMeasurementRelationship.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PolicyRef.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ProtocolTransferData.java | 4 ++-- .../osl/tmf/pm628/model/ProtocolTransferDataFVO.java | 4 ++-- .../osl/tmf/pm628/model/ProtocolTransferDataMVO.java | 4 ++-- .../tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java | 4 ++-- .../pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java | 4 ++-- .../pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java | 4 ++-- .../osl/tmf/pm628/model/RelatedResourceOrderItem.java | 4 ++-- .../osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java | 4 ++-- .../osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ReportingPeriod.java | 4 ++-- src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java | 4 ++-- .../tmf/pm628/model/ResourceAdministrativeStateType.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java | 4 ++-- .../tmf/pm628/model/ResourceOperationalStateType.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/ResourceRef.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ResourceRelationship.java | 4 ++-- .../osl/tmf/pm628/model/ResourceRelationshipFVO.java | 4 ++-- .../osl/tmf/pm628/model/ResourceRelationshipMVO.java | 4 ++-- .../osl/tmf/pm628/model/ResourceSpecificationRef.java | 4 ++-- .../osl/tmf/pm628/model/ResourceSpecificationRefFVO.java | 4 ++-- .../osl/tmf/pm628/model/ResourceSpecificationRefMVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ResourceStatusType.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ResourceUsageStateType.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java | 4 ++-- .../etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java | 4 ++-- .../java/org/etsi/osl/tmf/pm628/model/TimePeriod.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/TrackingRecord.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java | 4 ++-- .../org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java | 4 ++-- 192 files changed, 391 insertions(+), 382 deletions(-) diff --git a/pom.xml b/pom.xml index 0bd8c3c..fedf842 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,10 @@ gitlab-maven https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven + + jitpack.io + https://jitpack.io + @@ -65,6 +69,11 @@ com.fasterxml.jackson.datatype jackson-datatype-hibernate5-jakarta + + org.openapitools + jackson-databind-nullable + 0.2.6 + diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java index 283e265..70ead69 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 4932c1f..fc6fced 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index d8b4704..7bcc377 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java index dcb4118..63aece1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 1b10d3e..05527ce 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index d964099..cc3ebe7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 65643cd..ac97efb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java @@ -11,8 +11,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 464e945..d1a991a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -13,8 +13,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.CharacteristicRelationship; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index bc0ac02..f2515d8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.CharacteristicRelationshipFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 2d80c6d..1ed0ad4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.CharacteristicRelationshipMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 9dab228..ce7e625 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 75c0c66..4b09e93 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index fbd0f09..8169c9c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 8b29755..607c71f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index fe5dec9..b2fc897 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index fe22602..2eeb295 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -8,8 +8,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.CompressionEnumType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index eaedc69..7c45ef5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -34,8 +34,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 26a44a2..c7d311f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java @@ -35,8 +35,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 2702cb8..ec9e635 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java @@ -35,8 +35,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index f7ebbe3..8ae7d7c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index ad06e42..925cfde 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java @@ -13,8 +13,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DataFilterAttribute; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index b581ae6..05bafb0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -13,8 +13,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DataFilterMapItem; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 80b080d..d096b1f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DataFilterMapItemFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index bd21041..b84222d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java @@ -8,8 +8,8 @@ import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; import org.etsi.osl.tmf.pm628.model.DataFilterTemplate; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 9d182a4..d8eead8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -9,8 +9,8 @@ import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; import org.etsi.osl.tmf.pm628.model.DataFilterTemplateFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index a84943d..8e515f0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java @@ -9,8 +9,8 @@ import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; import org.etsi.osl.tmf.pm628.model.DataFilterTemplateMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index a0c98d6..c4f74e4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DataFilterMapItemMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 7f1a6ba..94213b8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import java.net.URI; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 8f9fa32..01a4f15 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 0e0a582..4799389 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index c39fe1b..8f4637d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -11,8 +11,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index a254998..0f954e6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index d8fda4c..0a34660 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 2cb5c48..1dca861 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -11,8 +11,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 39520df..e2263b7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index e8f30f6..8b9a324 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index fab1381..08e32fc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java index 7294021..2ea4c71 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 990cadd..bc33c66 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java index 707c003..40b27f7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index bdbf1f0..8ab5b77 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 630c03f..7f546cc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java index ebf831e..05b7d36 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; 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 index 4be5168..aa23f12 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java @@ -14,8 +14,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java index 1467afb..0ed91ad 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java index 2533582..5cb6f9f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java index 990c168..bf3dfc3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java index f70347b..f3692cf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java index 284fbe7..56d9b6e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java index 2c6fb12..34898d8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java index c98d1e2..4d03d2c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.FeatureRelationship; import org.etsi.osl.tmf.pm628.model.PolicyRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java index 1083b20..ec57c4d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java @@ -16,8 +16,8 @@ import org.etsi.osl.tmf.pm628.model.FeatureRelationshipFVO; import org.etsi.osl.tmf.pm628.model.PolicyRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java index dca970d..3858913 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java @@ -16,8 +16,8 @@ import org.etsi.osl.tmf.pm628.model.FeatureRelationshipMVO; import org.etsi.osl.tmf.pm628.model.PolicyRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java index ed559e0..f2051de 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java index 9d87c63..a6c552d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java @@ -12,8 +12,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java index deb9f1f..3d53eef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java @@ -12,8 +12,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index 9be9a4e..954843f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -14,8 +14,8 @@ import org.etsi.osl.tmf.pm628.model.PackingType; import org.etsi.osl.tmf.pm628.model.ProtocolTransferData; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java index 55ca666..a1fab7c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.PackingType; import org.etsi.osl.tmf.pm628.model.ProtocolTransferDataFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java index 20bd0b4..95c1fb0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.PackingType; import org.etsi.osl.tmf.pm628.model.ProtocolTransferData; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java index 71cb9e3..24f0bdb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java index 851d16d..6a3d8d9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java @@ -6,8 +6,8 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java index 30402d5..361d1c7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java index 0be7882..b700ce5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java index 02783d2..8be368b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java index 548cc29..a8a9a0b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java index 65de62d..c8f51d9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java b/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java index 487c238..a45151f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java @@ -10,8 +10,8 @@ import org.openapitools.jackson.nullable.JsonNullable; import java.util.NoSuchElementException; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java index ff1cdf3..9f71051 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java @@ -32,8 +32,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java index 012cc0d..d2737d4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java @@ -33,8 +33,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java index 88986e3..aa44b0d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java @@ -33,8 +33,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index 21db2d1..caf6009 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -20,8 +20,8 @@ import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java index d7be127..6deb229 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -21,8 +21,8 @@ import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 704696f..580d270 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -16,8 +16,8 @@ import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index caccfef..746ef29 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -30,8 +30,8 @@ import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java index adec25f..d363560 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java index c5b8b63..3b74348 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java index bf30c6f..3561de5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java index 48b1d33..4b522cd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java index 670e5c9..34fb31c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java index e87d7d3..8fc9ae0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java index b37a4df..b02b221 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java index 17bc593..059d064 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java index a9b8fed..010813d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -30,8 +30,8 @@ import org.etsi.osl.tmf.pm628.model.TrackingRecordFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java index e02f972..e39e104 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java index 3b9cc51..aa7a4f6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java index fbb8d7b..5f1525a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java index 7c4e01a..32ab33e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java index b603b42..0bd145a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java @@ -24,8 +24,8 @@ import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; import org.etsi.osl.tmf.pm628.model.TrackingRecordMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java index ab62601..9b0a1c5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index 5534126..3d2dffd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -27,8 +27,8 @@ import org.etsi.osl.tmf.pm628.model.TrackingRecord; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java index 56d8cdb..b89cab4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -28,8 +28,8 @@ import org.etsi.osl.tmf.pm628.model.TrackingRecordFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java index edc2246..6d228e6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java @@ -22,8 +22,8 @@ import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; import org.etsi.osl.tmf.pm628.model.TrackingRecordMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index b6cd562..308e430 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java index 0dc6e76..8de3303 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index 8fb9373..e40f6e3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -12,8 +12,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java index 9d07cd7..dc01bd6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java @@ -13,8 +13,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index ab0eccc..c9c1d54 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -13,8 +13,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrence; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java index 8d79238..50342c3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrenceFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java index 6b7e16f..92f160f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrenceMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java index db9709d..5c74c81 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java @@ -11,8 +11,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java index ab092b2..c5502d3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java index e68af7d..4a51f84 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java @@ -12,8 +12,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java index 40da1cb..f8fb0ee 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java index 639b31d..d685afa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 13e75a6..00091d5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -8,8 +8,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.PackingEnumType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java index b8e08d9..b694d09 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java index 5988238..07fd28b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java index 4cb64d0..3139e91 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java index f4ca5f1..db9f963 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java @@ -11,8 +11,8 @@ import org.etsi.osl.tmf.pm628.model.PartyRef; import org.etsi.osl.tmf.pm628.model.PartyRoleRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java index 7922429..291450f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java @@ -12,8 +12,8 @@ import org.etsi.osl.tmf.pm628.model.PartyRefFVO; import org.etsi.osl.tmf.pm628.model.PartyRoleRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java index d81373c..83dd7aa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java @@ -12,8 +12,8 @@ import org.etsi.osl.tmf.pm628.model.PartyRefMVO; import org.etsi.osl.tmf.pm628.model.PartyRoleRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java index 11b566f..c3c8a95 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java index 86c0b09..1ce3b43 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java index b31f35c..71f4a75 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java index a5b19a3..053330e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java @@ -29,8 +29,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java index 9a4f845..3f9bec3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java @@ -14,8 +14,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java index 1df3d09..ef8ff93 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java @@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index 2fa8592..f457881 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -14,8 +14,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java index 7b33532..418ad73 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java index 229f500..8d0dde5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java @@ -14,8 +14,8 @@ import java.util.List; import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java index 8986b70..90de92a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java @@ -12,8 +12,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java index 6375b60..8f8eb75 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationRef; import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java index ec1a0f0..e6acac5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java @@ -11,8 +11,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationRefOrV import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index ded25b7..1f8cee0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java index f61e406..a85942c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java index d307acf..2b38ce5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 3ef1283..3f204f8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java index 3d05567..35138c6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipFVO; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java index 414c0b7..ae47874 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipMVO; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index b4a0a02..785c8cc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -13,8 +13,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java index 74f2412..168ca88 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java @@ -14,8 +14,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java index 30561cf..4d9d649 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java @@ -14,8 +14,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index abfef86..8e1fa2f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -19,8 +19,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java index 29c844f..3021a72 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java @@ -20,8 +20,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefFVO; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java index 684f7cb..ddd78e9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java @@ -20,8 +20,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefMVO; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java index 40d5bd3..8303de2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java index 2725a4c..71294ee 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java index c77cb7d..c4300e7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java @@ -17,8 +17,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java index 4ee7177..e6414a3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java index 1970542..365f0d7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java index 56b1ff9..d6c075a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java @@ -18,8 +18,8 @@ import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java index 9d55fe8..e63dc6c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java @@ -7,8 +7,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java index 7dd32d9..45f36ff 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java @@ -17,8 +17,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java index 3e9fb79..037387f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java @@ -12,8 +12,8 @@ import java.util.Arrays; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java index f7a23cc..7604e80 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java @@ -17,8 +17,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java index 05e5858..0894871 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java @@ -11,8 +11,8 @@ import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRefOrValue; import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java index 32060e2..5ebdcbe 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java index 7a3ac3a..eb3bc5d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java index 982e62a..38be67f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java index 3f689c8..d0888c7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java index 514d98c..1d50c92 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java index 2b2d0b8..c95d899 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java index 5f9cb67..4d58c7d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java index 7371b5d..bd1d660 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java index e205996..d40dc61 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java index 05352c0..da94590 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java index c484a7f..de64d18 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java index a8d68b3..a0ef915 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java index ae2ca0a..443f4c7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.etsi.osl.tmf.pm628.model.PlaceRef; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java index 5b1850f..e005d7a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import org.etsi.osl.tmf.pm628.model.PlaceRefFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java index ada26b9..e578d9e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import org.etsi.osl.tmf.pm628.model.PlaceRefMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java index 53e85fd..87c88af 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java @@ -11,8 +11,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.OrderItemActionType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java index 3bfcfb6..9f8aa3c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java @@ -12,8 +12,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.OrderItemActionType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java index 99e80ca..1fd5391 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java @@ -12,8 +12,8 @@ import com.fasterxml.jackson.annotation.JsonValue; import org.etsi.osl.tmf.pm628.model.OrderItemActionType; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java index 0026866..23e0183 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java index fb7d55d..dcff64a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java @@ -31,8 +31,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java index 5a771ee..6aae93f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java index 710a1fd..9c5ec02 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java @@ -32,8 +32,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java index 692b751..54f5fd4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java @@ -32,8 +32,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java index d0ee5cf..aef4425 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java index 532ecd7..5a5750e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java @@ -15,8 +15,8 @@ import java.util.List; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java index ece8f6b..597085c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java @@ -16,8 +16,8 @@ import java.util.List; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java index 885a592..756408c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java @@ -16,8 +16,8 @@ import java.util.List; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java index b1ba6cb..9e28475 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java @@ -33,8 +33,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java index 257ddbb..c3a08a8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java @@ -34,8 +34,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java index d26fa6b..4de70cf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java @@ -34,8 +34,8 @@ import org.etsi.osl.tmf.pm628.model.TimePeriod; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java index 17ddcc4..01f7877 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java @@ -14,8 +14,8 @@ import org.etsi.osl.tmf.pm628.model.Characteristic; import org.etsi.osl.tmf.pm628.model.ResourceRefOrValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java index f31bcb2..4555027 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; import org.etsi.osl.tmf.pm628.model.ResourceRefOrValueFVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java index 83d300d..091c543 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; import org.etsi.osl.tmf.pm628.model.ResourceRefOrValueMVO; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java index b4aca78..e91050f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java index 3f24141..a69d931 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java index 6ab1f81..c6abcec 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java index 0e8d32b..6fc1bec 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java index b8b1ccd..8534fde 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java @@ -5,8 +5,8 @@ import java.util.Objects; import com.fasterxml.jackson.annotation.JsonValue; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index 6d38f32..be31e9f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -16,8 +16,8 @@ import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinition; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java index d3197ae..ab465e1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -17,8 +17,8 @@ import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinitionFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java index 12607a7..ddb353a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -17,8 +17,8 @@ import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinitionMVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index 9073aa9..c3b0507 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -8,8 +8,8 @@ import java.time.OffsetDateTime; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index 6439739..9d571d4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -15,8 +15,8 @@ import org.etsi.osl.tmf.pm628.model.Characteristic; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java index 252e59f..2e9f09e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java @@ -16,8 +16,8 @@ import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java index 22009b9..7a48374 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java @@ -16,8 +16,8 @@ import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; import org.springframework.format.annotation.DateTimeFormat; import org.openapitools.jackson.nullable.JsonNullable; import java.time.OffsetDateTime; -import javax.validation.Valid; -import javax.validation.constraints.*; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; -- GitLab From c3605b36a0aa92a328d0a38d0a53c7a13dcc2bfe Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Thu, 16 May 2024 20:29:12 +0300 Subject: [PATCH 10/19] Added @Entity at DataAccessEndpoint and MeasurementCollectionJob --- .../java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java | 4 ++++ .../etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java | 3 +++ 2 files changed, 7 insertions(+) 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 index 7c45ef5..109006a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -13,6 +13,9 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; + +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import org.etsi.osl.tmf.pm628.model.AttachmentRef; import org.etsi.osl.tmf.pm628.model.Characteristic; import org.etsi.osl.tmf.pm628.model.DataFilterMap; @@ -48,6 +51,7 @@ import javax.annotation.Generated; @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 = "pmDataAccessEndpoint") public class DataAccessEndpoint extends LogicalResource { private URI uri; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index 746ef29..c5be9bb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -12,6 +12,8 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.Arrays; import java.util.List; + +import jakarta.persistence.Entity; import org.etsi.osl.tmf.pm628.model.AdministrativeState; import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; import org.etsi.osl.tmf.pm628.model.DataFilterMap; @@ -44,6 +46,7 @@ import javax.annotation.Generated; @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 = "pmMeasCollJob") public class MeasurementCollectionJob extends MeasurementJob implements PatchMeasurementCollectionJob200Response { private String outputFormat; -- GitLab From 0dc703e9175c93a93afc5444f579bbd0e86903a1 Mon Sep 17 00:00:00 2001 From: George Tziavas Date: Tue, 11 Jun 2024 14:19:53 +0300 Subject: [PATCH 11/19] import optimisation --- .../etsi/osl/tmf/pm628/model/Addressable.java | 10 +--- .../osl/tmf/pm628/model/AddressableMVO.java | 10 +--- .../tmf/pm628/model/AdministrativeState.java | 13 +----- .../osl/tmf/pm628/model/AttachmentRef.java | 14 +----- .../osl/tmf/pm628/model/AttachmentRefFVO.java | 15 +----- .../osl/tmf/pm628/model/AttachmentRefMVO.java | 15 +----- .../etsi/osl/tmf/pm628/model/BaseEvent.java | 19 ++------ .../osl/tmf/pm628/model/Characteristic.java | 21 ++------- .../tmf/pm628/model/CharacteristicFVO.java | 22 ++------- .../tmf/pm628/model/CharacteristicMVO.java | 22 ++------- .../model/CharacteristicRelationship.java | 14 +----- .../model/CharacteristicRelationshipFVO.java | 15 +----- .../model/CharacteristicRelationshipMVO.java | 15 +----- .../osl/tmf/pm628/model/CollectionType.java | 13 +----- .../tmf/pm628/model/CompressionEnumType.java | 13 +----- .../osl/tmf/pm628/model/CompressionType.java | 13 +----- .../tmf/pm628/model/DataAccessEndpoint.java | 46 +++---------------- .../pm628/model/DataAccessEndpointFVO.java | 43 ++--------------- .../pm628/model/DataAccessEndpointMVO.java | 43 ++--------------- .../tmf/pm628/model/DataFilterAttribute.java | 10 +--- .../model/DataFilterAttributeStringArray.java | 20 ++------ .../osl/tmf/pm628/model/DataFilterMap.java | 21 ++------- .../osl/tmf/pm628/model/DataFilterMapFVO.java | 22 ++------- .../tmf/pm628/model/DataFilterMapItem.java | 13 +----- .../tmf/pm628/model/DataFilterMapItemFVO.java | 13 +----- .../tmf/pm628/model/DataFilterMapItemMVO.java | 13 +----- .../osl/tmf/pm628/model/DataFilterMapMVO.java | 22 ++------- .../tmf/pm628/model/DataFilterTemplate.java | 17 ++----- .../pm628/model/DataFilterTemplateFVO.java | 15 +----- .../pm628/model/DataFilterTemplateMVO.java | 15 +----- .../tmf/pm628/model/DayOfMonthRecurrence.java | 19 ++------ .../pm628/model/DayOfMonthRecurrenceFVO.java | 20 ++------ .../pm628/model/DayOfMonthRecurrenceMVO.java | 20 ++------ .../tmf/pm628/model/DayOfWeekRecurrence.java | 19 ++------ .../pm628/model/DayOfWeekRecurrenceFVO.java | 20 ++------ .../pm628/model/DayOfWeekRecurrenceMVO.java | 20 ++------ .../etsi/osl/tmf/pm628/model/Duration.java | 10 +--- .../org/etsi/osl/tmf/pm628/model/Entity.java | 11 +---- .../etsi/osl/tmf/pm628/model/EntityMVO.java | 11 +---- .../etsi/osl/tmf/pm628/model/EntityRef.java | 11 +---- .../osl/tmf/pm628/model/EntityRefFVO.java | 11 +---- .../osl/tmf/pm628/model/EntityRefMVO.java | 11 +---- .../org/etsi/osl/tmf/pm628/model/Error.java | 14 +----- .../org/etsi/osl/tmf/pm628/model/Event.java | 24 +++------- .../tmf/pm628/model/ExecutionStateType.java | 13 +----- .../etsi/osl/tmf/pm628/model/Extensible.java | 11 +---- .../osl/tmf/pm628/model/ExtensibleFVO.java | 11 +---- .../tmf/pm628/model/ExternalIdentifier.java | 14 +----- .../pm628/model/ExternalIdentifierFVO.java | 15 +----- .../pm628/model/ExternalIdentifierMVO.java | 15 +----- .../org/etsi/osl/tmf/pm628/model/Feature.java | 23 ++-------- .../etsi/osl/tmf/pm628/model/FeatureFVO.java | 24 ++-------- .../etsi/osl/tmf/pm628/model/FeatureMVO.java | 24 ++-------- .../tmf/pm628/model/FeatureRelationship.java | 17 ++----- .../pm628/model/FeatureRelationshipFVO.java | 18 ++------ .../pm628/model/FeatureRelationshipMVO.java | 18 ++------ .../osl/tmf/pm628/model/FileTransferData.java | 21 ++------- .../tmf/pm628/model/FileTransferDataFVO.java | 22 ++------- .../tmf/pm628/model/FileTransferDataMVO.java | 22 ++------- .../etsi/osl/tmf/pm628/model/Granularity.java | 13 +----- .../org/etsi/osl/tmf/pm628/model/Hub.java | 11 +---- .../org/etsi/osl/tmf/pm628/model/HubFVO.java | 11 +---- .../osl/tmf/pm628/model/IndicatorType.java | 13 +----- .../etsi/osl/tmf/pm628/model/IntentRef.java | 14 +----- .../osl/tmf/pm628/model/IntentRefFVO.java | 15 +----- .../osl/tmf/pm628/model/IntentRefMVO.java | 15 +----- .../etsi/osl/tmf/pm628/model/JsonPatch.java | 17 ++----- .../osl/tmf/pm628/model/LogicalResource.java | 35 ++------------ .../tmf/pm628/model/LogicalResourceFVO.java | 36 ++------------- .../tmf/pm628/model/LogicalResourceMVO.java | 36 ++------------- .../osl/tmf/pm628/model/ManagementJob.java | 30 ++++-------- .../osl/tmf/pm628/model/ManagementJobFVO.java | 31 ++++--------- .../osl/tmf/pm628/model/ManagementJobMVO.java | 22 +++------ .../pm628/model/MeasurementCollectionJob.java | 38 ++------------- ...ollectionJobAttributeValueChangeEvent.java | 28 +++-------- ...onJobAttributeValueChangeEventPayload.java | 12 +---- .../MeasurementCollectionJobCreateEvent.java | 28 +++-------- ...rementCollectionJobCreateEventPayload.java | 12 +---- .../MeasurementCollectionJobDeleteEvent.java | 28 +++-------- ...rementCollectionJobDeleteEventPayload.java | 12 +---- ...ollectionJobExecutionStateChangeEvent.java | 28 +++-------- ...onJobExecutionStateChangeEventPayload.java | 12 +---- .../model/MeasurementCollectionJobFVO.java | 37 ++------------- ...llectionJobFilesPreparationErrorEvent.java | 28 +++-------- ...nJobFilesPreparationErrorEventPayload.java | 12 +---- ...asurementCollectionJobFilesReadyEvent.java | 28 +++-------- ...ntCollectionJobFilesReadyEventPayload.java | 12 +---- .../model/MeasurementCollectionJobMVO.java | 30 ++---------- .../model/MeasurementCollectionJobRef.java | 14 +----- .../osl/tmf/pm628/model/MeasurementJob.java | 33 +++---------- .../tmf/pm628/model/MeasurementJobFVO.java | 35 +++----------- .../tmf/pm628/model/MeasurementJobMVO.java | 27 ++--------- .../pm628/model/MonitoredClassCriteria.java | 14 +----- .../model/MonitoredClassCriteriaFVO.java | 15 +----- .../model/MonitoredInstancesCriteria.java | 21 +++------ .../model/MonitoredInstancesCriteriaFVO.java | 22 +++------ .../MonthlyScheduleDayOfWeekDefinition.java | 21 ++------- ...MonthlyScheduleDayOfWeekDefinitionFVO.java | 22 ++------- ...MonthlyScheduleDayOfWeekDefinitionMVO.java | 22 ++------- .../org/etsi/osl/tmf/pm628/model/Note.java | 19 ++------ .../org/etsi/osl/tmf/pm628/model/NoteFVO.java | 20 ++------ .../org/etsi/osl/tmf/pm628/model/NoteMVO.java | 20 ++------ .../tmf/pm628/model/OrderItemActionType.java | 13 +----- .../osl/tmf/pm628/model/PackingEnumType.java | 13 +----- .../etsi/osl/tmf/pm628/model/PackingType.java | 13 +----- .../etsi/osl/tmf/pm628/model/PartyRef.java | 14 +----- .../etsi/osl/tmf/pm628/model/PartyRefFVO.java | 15 +----- .../etsi/osl/tmf/pm628/model/PartyRefMVO.java | 15 +----- .../pm628/model/PartyRefOrPartyRoleRef.java | 13 ------ .../model/PartyRefOrPartyRoleRefFVO.java | 14 ------ .../model/PartyRefOrPartyRoleRefMVO.java | 14 ------ .../osl/tmf/pm628/model/PartyRoleRef.java | 14 +----- .../osl/tmf/pm628/model/PartyRoleRefFVO.java | 15 +----- .../osl/tmf/pm628/model/PartyRoleRefMVO.java | 15 +----- ...chMeasurementCollectionJob200Response.java | 35 -------------- ...ndicatorGroupSpecification200Response.java | 20 -------- ...anceIndicatorSpecification200Response.java | 24 ---------- ...erformanceIndicatorGroupSpecification.java | 23 +++------- ...ormanceIndicatorGroupSpecificationFVO.java | 23 +++------- ...ormanceIndicatorGroupSpecificationMVO.java | 23 +++------- ...ormanceIndicatorGroupSpecificationRef.java | 17 +------ ...IndicatorGroupSpecificationRefOrValue.java | 17 ------- .../model/PerformanceIndicatorGroupValue.java | 19 ++------ .../PerformanceIndicatorSpecRelationship.java | 16 ++----- ...rformanceIndicatorSpecRelationshipFVO.java | 17 ++----- ...rformanceIndicatorSpecRelationshipMVO.java | 17 ++----- .../PerformanceIndicatorSpecification.java | 27 +++-------- .../PerformanceIndicatorSpecificationFVO.java | 27 +++-------- .../PerformanceIndicatorSpecificationMVO.java | 27 +++-------- .../PerformanceIndicatorSpecificationRef.java | 18 +------- ...rformanceIndicatorSpecificationRefFVO.java | 19 +------- ...rformanceIndicatorSpecificationRefMVO.java | 19 +------- ...manceIndicatorSpecificationRefOrValue.java | 21 --------- ...ceIndicatorSpecificationRefOrValueFVO.java | 22 --------- ...ceIndicatorSpecificationRefOrValueMVO.java | 22 --------- .../model/PerformanceIndicatorValue.java | 12 +---- .../pm628/model/PerformanceMeasurement.java | 21 +++------ .../model/PerformanceMeasurementAtomic.java | 25 ++-------- ...rmanceMeasurementCollectionReadyEvent.java | 28 +++-------- ...easurementCollectionReadyEventPayload.java | 12 +---- .../PerformanceMeasurementCreateEvent.java | 28 +++-------- ...formanceMeasurementCreateEventPayload.java | 12 +---- .../model/PerformanceMeasurementGroup.java | 25 ++-------- .../model/PerformanceMeasurementRef.java | 17 +------ .../PerformanceMeasurementRefOrValue.java | 19 -------- .../PerformanceMeasurementRelationship.java | 17 ++----- .../etsi/osl/tmf/pm628/model/PlaceRef.java | 14 +----- .../etsi/osl/tmf/pm628/model/PlaceRefFVO.java | 15 +----- .../etsi/osl/tmf/pm628/model/PlaceRefMVO.java | 15 +----- .../etsi/osl/tmf/pm628/model/PolicyRef.java | 14 +----- .../osl/tmf/pm628/model/PolicyRefFVO.java | 15 +----- .../osl/tmf/pm628/model/PolicyRefMVO.java | 15 +----- .../tmf/pm628/model/ProtocolTransferData.java | 10 +--- .../pm628/model/ProtocolTransferDataFVO.java | 11 +---- .../pm628/model/ProtocolTransferDataMVO.java | 14 +----- .../model/RelatedPartyRefOrPartyRoleRef.java | 16 ++----- .../RelatedPartyRefOrPartyRoleRefFVO.java | 17 ++----- .../RelatedPartyRefOrPartyRoleRefMVO.java | 17 ++----- .../osl/tmf/pm628/model/RelatedPlaceRef.java | 16 ++----- .../tmf/pm628/model/RelatedPlaceRefFVO.java | 17 ++----- .../tmf/pm628/model/RelatedPlaceRefMVO.java | 17 ++----- .../pm628/model/RelatedResourceOrderItem.java | 17 ++----- .../model/RelatedResourceOrderItemFVO.java | 18 ++------ .../model/RelatedResourceOrderItemMVO.java | 18 ++------ .../osl/tmf/pm628/model/ReportingPeriod.java | 13 +----- .../etsi/osl/tmf/pm628/model/Resource.java | 38 +++------------ .../ResourceAdministrativeStateType.java | 13 +----- .../etsi/osl/tmf/pm628/model/ResourceFVO.java | 39 +++------------- .../etsi/osl/tmf/pm628/model/ResourceMVO.java | 39 +++------------- .../model/ResourceOperationalStateType.java | 13 +----- .../etsi/osl/tmf/pm628/model/ResourceRef.java | 20 +------- .../osl/tmf/pm628/model/ResourceRefFVO.java | 21 +-------- .../osl/tmf/pm628/model/ResourceRefMVO.java | 21 +-------- .../tmf/pm628/model/ResourceRefOrValue.java | 35 -------------- .../pm628/model/ResourceRefOrValueFVO.java | 36 --------------- .../pm628/model/ResourceRefOrValueMVO.java | 36 --------------- .../tmf/pm628/model/ResourceRelationship.java | 22 ++------- .../pm628/model/ResourceRelationshipFVO.java | 23 ++-------- .../pm628/model/ResourceRelationshipMVO.java | 23 ++-------- .../pm628/model/ResourceSpecificationRef.java | 14 +----- .../model/ResourceSpecificationRefFVO.java | 15 +----- .../model/ResourceSpecificationRefMVO.java | 15 +----- .../tmf/pm628/model/ResourceStatusType.java | 13 +----- .../pm628/model/ResourceUsageStateType.java | 13 +----- .../tmf/pm628/model/ScheduleDefinition.java | 26 +++-------- .../pm628/model/ScheduleDefinitionFVO.java | 27 +++-------- .../pm628/model/ScheduleDefinitionMVO.java | 27 +++-------- .../etsi/osl/tmf/pm628/model/TimePeriod.java | 15 ++---- .../osl/tmf/pm628/model/TrackingRecord.java | 25 +++------- .../tmf/pm628/model/TrackingRecordFVO.java | 26 +++-------- .../tmf/pm628/model/TrackingRecordMVO.java | 26 +++-------- 191 files changed, 628 insertions(+), 3114 deletions(-) diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java index 70ead69..e598d4a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Addressable.java @@ -1,18 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Base schema for addressable entities 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 index fc6fced..a4608fb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AddressableMVO.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Base schema for addressable entities 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 index 7bcc377..7881c0c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AdministrativeState.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * This is enumeration for Administrative state */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java index 63aece1..76cbcce 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * AttachmentRef 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 index 05527ce..b4d0580 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * AttachmentRefFVO 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 index cc3ebe7..278354f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * AttachmentRefMVO 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 index ac97efb..7e789e9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/BaseEvent.java @@ -1,23 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * BaseEvent 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 index d1a991a..fa9a2a5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -1,25 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicRelationship; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Characteristic 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 index f2515d8..6d4ad45 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicRelationshipFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * CharacteristicFVO 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 index 1ed0ad4..4465aab 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicRelationshipMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * CharacteristicMVO 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 index ce7e625..728e1c7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * CharacteristicRelationship 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 index 4b09e93..975f21a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * CharacteristicRelationshipFVO 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 index 8169c9c..0ad2b02 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * CharacteristicRelationshipMVO 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 index 607c71f..fd78965 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CollectionType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * This is enumeration for CollectionType state */ 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 index b2fc897..67a3f63 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionEnumType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Enumeration of supported compressions. All extensions allowed. */ 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 index 2eeb295..5ad1a98 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -1,20 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.CompressionEnumType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * File compression type. 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 index 109006a..9437d98 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -1,49 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - +import io.swagger.v3.oas.annotations.media.Schema; import jakarta.persistence.Entity; -import jakarta.persistence.Table; -import org.etsi.osl.tmf.pm628.model.AttachmentRef; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.DataFilterMap; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; -import org.etsi.osl.tmf.pm628.model.Feature; -import org.etsi.osl.tmf.pm628.model.IntentRef; -import org.etsi.osl.tmf.pm628.model.LogicalResource; -import org.etsi.osl.tmf.pm628.model.Note; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationship; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * DataAccessEndpoint @@ -51,7 +17,7 @@ import javax.annotation.Generated; @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 = "pmDataAccessEndpoint") +@Entity(name = "PMDAE") public class DataAccessEndpoint extends LogicalResource { private URI uri; 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 index c7d311f..2365941 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java @@ -1,47 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.etsi.osl.tmf.pm628.model.DataFilterMapFVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; -import org.etsi.osl.tmf.pm628.model.FeatureFVO; -import org.etsi.osl.tmf.pm628.model.IntentRefFVO; -import org.etsi.osl.tmf.pm628.model.LogicalResourceFVO; -import org.etsi.osl.tmf.pm628.model.NoteFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * DataAccessEndpointFVO 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 index ec9e635..fd0af88 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java @@ -1,47 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.net.URI; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.etsi.osl.tmf.pm628.model.DataFilterMapMVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; -import org.etsi.osl.tmf.pm628.model.FeatureMVO; -import org.etsi.osl.tmf.pm628.model.IntentRefMVO; -import org.etsi.osl.tmf.pm628.model.LogicalResourceMVO; -import org.etsi.osl.tmf.pm628.model.NoteMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * DataAccessEndpointMVO 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 index 8ae7d7c..6b7c0df 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java @@ -1,21 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * give an attribute used for filtering 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 index 925cfde..4ca6805 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java @@ -1,25 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataFilterAttribute; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * DataFilterAttributeStringArray 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 index 05bafb0..a3e9b8f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -1,25 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataFilterMapItem; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * DataFilterMap 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 index d096b1f..2e7a0a8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataFilterMapItemFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * DataFilterMapFVO 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 index b84222d..3115115 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java @@ -1,20 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; -import org.etsi.osl.tmf.pm628.model.DataFilterTemplate; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * definition of a field used for filtering template with the associated attributes. 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 index d8eead8..a6116bf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -1,21 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; -import org.etsi.osl.tmf.pm628.model.DataFilterTemplateFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * definition of a field used for filtering template with the associated attributes. 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 index 8e515f0..f7d1739 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java @@ -1,21 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.DataFilterAttributeStringArray; -import org.etsi.osl.tmf.pm628.model.DataFilterTemplateMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * definition of a field used for filtering template with the associated attributes. 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 index c4f74e4..87c8d1f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataFilterMapItemMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * DataFilterMapMVO 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 index 94213b8..522cac0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java @@ -1,22 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.net.URI; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.Objects; /** * DataFilterTemplate 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 index 01a4f15..882462f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * DataFilterTemplateFVO 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 index 4799389..8a8c51d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * DataFilterTemplateMVO 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 index 8f4637d..7616c69 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -1,23 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfMonthRecurrence 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 index 0f954e6..23b231f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfMonthRecurrenceFVO 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 index 0a34660..2ac8dda 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfMonthRecurrenceMVO 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 index 1dca861..c25cd6b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -1,23 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfWeekRecurrence 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 index e2263b7..7cb56bd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfWeekRecurrenceFVO 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 index 8b9a324..d001c7b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * DayOfWeekRecurrenceMVO 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 index 08e32fc..7501efa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -1,18 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * A time interval in a given unit of time diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java index 2ea4c71..11ecf77 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Entity.java @@ -1,18 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Base entity schema for use in TMForum Open-APIs. Property. 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 index bc33c66..26e3da5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityMVO.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Base entity schema for use in TMForum Open-APIs. Property. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java index 40b27f7..a8913cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRef.java @@ -1,18 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * EntityRef 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 index 8ab5b77..224354e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefFVO.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * EntityRefFVO 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 index 7f546cc..f729f85 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/EntityRefMVO.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * EntityRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java index 05b7d36..d214c7f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Error.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx) 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 index aa23f12..352dcc5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Event.java @@ -1,26 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Event diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java index 0ed91ad..ec55249 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExecutionStateType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Possible values for the state of the execution */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java index 5cb6f9f..debf876 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Extensible.java @@ -1,18 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java index bf3dfc3..6301240 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExtensibleFVO.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Base Extensible schema for use in TMForum Open-APIs - When used for in a schema it means that the Entity described by the schema MUST be extended with the @type diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java index f3692cf..d581a36 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ExternalIdentifier diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java index 56d9b6e..9bac525 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ExternalIdentifierFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java index 34898d8..0cd368c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ExternalIdentifierMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java index 4d03d2c..8581f65 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java @@ -1,27 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.FeatureRelationship; -import org.etsi.osl.tmf.pm628.model.PolicyRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Feature diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java index ec57c4d..6530ee9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java @@ -1,28 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.etsi.osl.tmf.pm628.model.FeatureRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.PolicyRefFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * FeatureFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java index 3858913..55436e5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java @@ -1,28 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.etsi.osl.tmf.pm628.model.FeatureRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.PolicyRefMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * FeatureMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java index f2051de..e4542a4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java @@ -1,23 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * FeatureRelationship diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java index a6c552d..3066ced 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * FeatureRelationshipFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java index 3d53eef..8737c50 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * FeatureRelationshipMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index 954843f..c820673 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -1,26 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.net.URI; -import org.etsi.osl.tmf.pm628.model.CompressionType; -import org.etsi.osl.tmf.pm628.model.Duration; -import org.etsi.osl.tmf.pm628.model.PackingType; -import org.etsi.osl.tmf.pm628.model.ProtocolTransferData; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.Objects; /** * FileTransferData diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java index a1fab7c..44aaa1c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -1,27 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.net.URI; -import org.etsi.osl.tmf.pm628.model.CompressionType; -import org.etsi.osl.tmf.pm628.model.Duration; -import org.etsi.osl.tmf.pm628.model.PackingType; -import org.etsi.osl.tmf.pm628.model.ProtocolTransferDataFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.Objects; /** * FileTransferDataFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java index 95c1fb0..944b156 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -1,27 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.net.URI; -import org.etsi.osl.tmf.pm628.model.CompressionType; -import org.etsi.osl.tmf.pm628.model.Duration; -import org.etsi.osl.tmf.pm628.model.PackingType; -import org.etsi.osl.tmf.pm628.model.ProtocolTransferData; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.net.URI; +import java.util.Objects; /** * FileTransferDataMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java index 24f0bdb..d999234 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Granularity.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Sampling rate of the collection or production of performance indicators. */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java index 6a3d8d9..c6fb880 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Hub.java @@ -1,18 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Sets the communication endpoint address the service instance must use to deliver notification information diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java index 361d1c7..095d800 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/HubFVO.java @@ -1,19 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Sets the communication endpoint address the service instance must use to deliver notification information diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java index b700ce5..c62d49d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IndicatorType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * This is enumeration for Indicator Type */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java index 8be368b..1e30ba4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Intent reference, for when Intent is used by other entities diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java index a8a9a0b..728a5ef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Intent reference, for when Intent is used by other entities diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java index c8f51d9..451873b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Intent reference, for when Intent is used by other entities diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java b/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java index a45151f..7401daa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/JsonPatch.java @@ -1,22 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; +import org.openapitools.jackson.nullable.JsonNullable; - -import java.util.*; import javax.annotation.Generated; +import java.util.Arrays; +import java.util.Objects; /** * A JSONPatch document as defined by RFC 6902 diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java index 9f71051..e7816ce 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java @@ -1,44 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRef; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; -import org.etsi.osl.tmf.pm628.model.Feature; -import org.etsi.osl.tmf.pm628.model.IntentRef; -import org.etsi.osl.tmf.pm628.model.Note; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; -import org.etsi.osl.tmf.pm628.model.Resource; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationship; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * LogicalResource diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java index d2737d4..f7eb3bb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java @@ -1,45 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; -import org.etsi.osl.tmf.pm628.model.FeatureFVO; -import org.etsi.osl.tmf.pm628.model.IntentRefFVO; -import org.etsi.osl.tmf.pm628.model.NoteFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceFVO; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * LogicalResourceFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java index aa44b0d..ffd97ef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java @@ -1,45 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; -import org.etsi.osl.tmf.pm628.model.FeatureMVO; -import org.etsi.osl.tmf.pm628.model.IntentRefMVO; -import org.etsi.osl.tmf.pm628.model.NoteMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceMVO; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * LogicalResourceMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index caf6009..a0c08cf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -1,32 +1,22 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ManagementJob diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java index 6deb229..056d45c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -1,33 +1,22 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpointFVO; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferDataFVO; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Max; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ManagementJobFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 580d270..97e3de3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -1,28 +1,18 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpointMVO; -import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ManagementJobMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index c5be9bb..75d1fff 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -1,44 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - +import io.swagger.v3.oas.annotations.media.Schema; import jakarta.persistence.Entity; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; -import org.etsi.osl.tmf.pm628.model.DataFilterMap; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MeasurementJob; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJob diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java index d363560..a47f210 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobAttributeValueChangeEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobAttributeValueChangeEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java index 3b74348..65bc6ef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobAttributeValueChangeEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MeasurementCollectionJobAttributeValueChangeEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java index 3561de5..8801f91 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobCreateEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobCreateEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java index 4b522cd..85005e2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobCreateEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MeasurementCollectionJobCreateEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java index 34fb31c..e2f0b6a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobDeleteEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobDeleteEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java index 8fc9ae0..b601049 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobDeleteEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MeasurementCollectionJobDeleteEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java index b02b221..dc55fb7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobExecutionStateChangeEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobExecutionStateChangeEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java index 059d064..7b6738d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobExecutionStateChangeEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MeasurementCollectionJobExecutionStateChangeEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java index 010813d..8236e8e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -1,42 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpointFVO; -import org.etsi.osl.tmf.pm628.model.DataFilterMapFVO; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferDataFVO; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MeasurementJobFVO; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteriaFVO; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteriaFVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationFVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; -import org.etsi.osl.tmf.pm628.model.TrackingRecordFVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java index e39e104..0ab60e9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesPreparationErrorEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobFilesPreparationErrorEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java index aa7a4f6..70a68e4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesPreparationErrorEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MeasurementCollectionJobFilesPreparationErrorEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java index 5f1525a..db131c2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobFilesReadyEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobFilesReadyEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java index 32ab33e..0b35ae5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFilesReadyEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MeasurementCollectionJobFilesReadyEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java index 0bd145a..eca4dbe 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java @@ -1,36 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpointMVO; -import org.etsi.osl.tmf.pm628.model.DataFilterMapMVO; -import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MeasurementJobMVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationMVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; -import org.etsi.osl.tmf.pm628.model.TrackingRecordMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java index 9b0a1c5..4d32e9b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Reference to a MeasurementCollectionJob diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index 3d2dffd..db854bf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -1,39 +1,18 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.ManagementJob; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementJob diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java index b89cab4..081cda5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -1,40 +1,19 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpointFVO; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferDataFVO; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.ManagementJobFVO; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteriaFVO; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteriaFVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationFVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionFVO; -import org.etsi.osl.tmf.pm628.model.TrackingRecordFVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementJobFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java index 6d228e6..676cab0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java @@ -1,34 +1,17 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpointMVO; -import org.etsi.osl.tmf.pm628.model.FileTransferDataMVO; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.ManagementJobMVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationMVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinitionMVO; -import org.etsi.osl.tmf.pm628.model.TrackingRecordMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MeasurementJobMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index 308e430..0c086ac 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MonitoredClassCriteria diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java index 8de3303..95ae96f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * MonitoredClassCriteriaFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index e40f6e3..ebf978d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -1,24 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MonitoredInstancesCriteria diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java index dc01bd6..6c51571 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java @@ -1,25 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MonitoredInstancesCriteriaFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index c9c1d54..7dc6fa9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -1,25 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrence; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MonthlyScheduleDayOfWeekDefinition diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java index 50342c3..0c60d54 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrenceFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MonthlyScheduleDayOfWeekDefinitionFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java index 92f160f..775f710 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfMonthRecurrenceMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * MonthlyScheduleDayOfWeekDefinitionMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java index 5c74c81..735c9d0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java @@ -1,23 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Note diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java index c5502d3..bdc1501 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * NoteFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java index 4a51f84..a1563ba 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java @@ -1,24 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * NoteMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java index f8fb0ee..1a28682 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/OrderItemActionType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * action to be performed on the product */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java index d685afa..5f41e5d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingEnumType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Enumeration of supported packing/packaging. All extensions allowed. */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 00091d5..125b24b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -1,20 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.PackingEnumType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Specify if the output file(s) are to be packed. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java index b694d09..3cd3553 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * A Party reference diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java index 07fd28b..7bd2652 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * A Party reference diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java index 3139e91..584e114 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * A Party reference diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java index db9f963..6a5cdd5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java @@ -1,22 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.etsi.osl.tmf.pm628.model.PartyRef; -import org.etsi.osl.tmf.pm628.model.PartyRoleRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java index 291450f..805bad9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java @@ -1,23 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.PartyRefFVO; -import org.etsi.osl.tmf.pm628.model.PartyRoleRefFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java index 83dd7aa..7930ed3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java @@ -1,23 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.PartyRefMVO; -import org.etsi.osl.tmf.pm628.model.PartyRoleRefMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java index c3c8a95..7c1903f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PartyRoleRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java index 1ce3b43..4f44089 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PartyRoleRefFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java index 71f4a75..b49c6fa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PartyRoleRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java index 053330e..3f14254 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchMeasurementCollectionJob200Response.java @@ -1,40 +1,5 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AdministrativeState; -import org.etsi.osl.tmf.pm628.model.DataAccessEndpoint; -import org.etsi.osl.tmf.pm628.model.DataFilterMap; -import org.etsi.osl.tmf.pm628.model.ExecutionStateType; -import org.etsi.osl.tmf.pm628.model.FileTransferData; -import org.etsi.osl.tmf.pm628.model.Granularity; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJob; -import org.etsi.osl.tmf.pm628.model.MonitoredClassCriteria; -import org.etsi.osl.tmf.pm628.model.MonitoredInstancesCriteria; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.ReportingPeriod; -import org.etsi.osl.tmf.pm628.model.ScheduleDefinition; -import org.etsi.osl.tmf.pm628.model.TrackingRecord; -import org.springframework.format.annotation.DateTimeFormat; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java index 3f9bec3..8c2a6d7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorGroupSpecification200Response.java @@ -1,25 +1,5 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java index ef8ff93..3b84fe8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PatchPerformanceIndicatorSpecification200Response.java @@ -1,29 +1,5 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecification; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index f457881..96e08f8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -1,26 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorGroupSpecification diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java index 418ad73..4427ee8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java @@ -1,26 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorGroupSpecificationFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java index 8d0dde5..f8ea05b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java @@ -1,26 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValueMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorGroupSpecificationMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java index 90de92a..ab0c12d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java @@ -1,24 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorGroupSpecificationRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java index 8f8eb75..4506069 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java @@ -1,26 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationRef; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java index e6acac5..3fae603 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupValue.java @@ -1,23 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupSpecificationRefOrValue; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * A value of a performance indicator. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index 1f8cee0..2641a3d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -1,22 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorSpecRelationship diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java index a85942c..fb0fbbb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorSpecRelationshipFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java index 2b38ce5..eafde01 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorSpecRelationshipMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 3f204f8..c3d8b58 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -1,30 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorSpecification diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java index 35138c6..a1d28d4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java @@ -1,30 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorSpecificationFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java index ae47874..3bf64db 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java @@ -1,30 +1,15 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceIndicatorSpecificationMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index 785c8cc..043e0e2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -1,25 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorSpecificationRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java index 168ca88..74bda76 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java @@ -1,26 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorSpecificationRefFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java index 4d9d649..84104c7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java @@ -1,26 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceIndicatorSpecificationRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index 8e1fa2f..e317d71 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -1,30 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationship; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecification; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRef; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java index 3021a72..3e68311 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java @@ -1,31 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationFVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefFVO; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java index ddd78e9..7a2c668 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java @@ -1,31 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CollectionType; -import org.etsi.osl.tmf.pm628.model.IndicatorType; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationMVO; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefMVO; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java index 8303de2..4fcdc0e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorValue.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorSpecificationRefOrValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * A value of a performance indicator. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java index 71294ee..6904e50 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurement.java @@ -1,27 +1,18 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceMeasurement diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java index c4300e7..88d05b7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementAtomic.java @@ -1,29 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorValue; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceMeasurementAtomic diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java index e6414a3..c3ee960 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementCollectionReadyEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceMeasurementCollectionReadyEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java index 365f0d7..5db0dc5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCollectionReadyEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceMeasurementCollectionReadyEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java index d6c075a..cbde6b4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEvent.java @@ -1,30 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.EntityRef; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementCreateEventPayload; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceMeasurementCreateEvent diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java index e63dc6c..5b6f1b1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementCreateEventPayload.java @@ -1,19 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceMeasurementCreateEventPayload generic structure diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java index 45f36ff..c1e58a9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementGroup.java @@ -1,29 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; -import org.etsi.osl.tmf.pm628.model.PerformanceIndicatorGroupValue; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.Size; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * PerformanceMeasurementGroup diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java index 037387f..569a02c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRef.java @@ -1,24 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceMeasurementRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java index 7604e80..655efcb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRefOrValue.java @@ -1,28 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.MeasurementCollectionJobRef; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurement; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRef; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRelationship; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java index 0894871..4197d9d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceMeasurementRelationship.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.etsi.osl.tmf.pm628.model.PerformanceMeasurementRefOrValue; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PerformanceMeasurementRelationship diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java index 5ebdcbe..e1e2ac6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Place reference. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java index eb3bc5d..683a27b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Place reference. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java index 38be67f..b8e4e00 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Place reference. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java index d0888c7..96d525b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PolicyRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java index 1d50c92..be3ebcf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PolicyRefFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java index c95d899..656737a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * PolicyRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java index 4d58c7d..f9fb697 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -1,21 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ProtocolTransferData diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java index bd1d660..9cb5e0d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java @@ -1,22 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ProtocolTransferDataFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java index d40dc61..fe56034 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java @@ -1,22 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ProtocolTransferDataMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java index da94590..74f02bc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java @@ -1,22 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedPartyRefOrPartyRoleRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java index de64d18..9643189 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRefFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedPartyRefOrPartyRoleRefFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java index a0ef915..2f15ba0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.PartyRefOrPartyRoleRefMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedPartyRefOrPartyRoleRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java index 443f4c7..971c0fa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java @@ -1,22 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.etsi.osl.tmf.pm628.model.PlaceRef; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedPlaceRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java index e005d7a..99c102d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.PlaceRefFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedPlaceRefFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java index e578d9e..efe9691 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.etsi.osl.tmf.pm628.model.PlaceRefMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedPlaceRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java index 87c88af..6df885d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java @@ -1,23 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.OrderItemActionType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedResourceOrderItem diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java index 9f8aa3c..f95f0ba 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java @@ -1,24 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.OrderItemActionType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedResourceOrderItemFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java index 1fd5391..f9d9215 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java @@ -1,24 +1,12 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import org.etsi.osl.tmf.pm628.model.OrderItemActionType; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * RelatedResourceOrderItemMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java index 23e0183..4837b94 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ReportingPeriod.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * Possible values for the reporting period */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java index dcff64a..ff0bfc3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java @@ -1,43 +1,19 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRef; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; -import org.etsi.osl.tmf.pm628.model.Feature; -import org.etsi.osl.tmf.pm628.model.IntentRef; -import org.etsi.osl.tmf.pm628.model.Note; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationship; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * Resource diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java index 6aae93f..3be1ac8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceAdministrativeStateType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * ResourceAdministrativeStateType enumerations */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java index 9c5ec02..306fd96 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java @@ -1,44 +1,19 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; -import org.etsi.osl.tmf.pm628.model.FeatureFVO; -import org.etsi.osl.tmf.pm628.model.IntentRefFVO; -import org.etsi.osl.tmf.pm628.model.NoteFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ResourceFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java index 54f5fd4..6d94822 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java @@ -1,44 +1,19 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; -import org.etsi.osl.tmf.pm628.model.FeatureMVO; -import org.etsi.osl.tmf.pm628.model.IntentRefMVO; -import org.etsi.osl.tmf.pm628.model.NoteMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ResourceMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java index aef4425..5e0beb1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceOperationalStateType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * ResourceOperationalStateType enumerations */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java index 5a5750e..6529d99 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java @@ -1,27 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Resource reference, for when Resource is used by other entities. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java index 597085c..61b263e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java @@ -1,28 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Resource reference, for when Resource is used by other entities. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java index 756408c..7442fe4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java @@ -1,28 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * Resource reference, for when Resource is used by other entities. diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java index 9e28475..cebef2e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java @@ -1,44 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRef; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifier; -import org.etsi.osl.tmf.pm628.model.Feature; -import org.etsi.osl.tmf.pm628.model.IntentRef; -import org.etsi.osl.tmf.pm628.model.Note; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRef; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRef; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItem; -import org.etsi.osl.tmf.pm628.model.Resource; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRef; -import org.etsi.osl.tmf.pm628.model.ResourceRelationship; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRef; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java index c3a08a8..f25aecc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java @@ -1,45 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefFVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierFVO; -import org.etsi.osl.tmf.pm628.model.FeatureFVO; -import org.etsi.osl.tmf.pm628.model.IntentRefFVO; -import org.etsi.osl.tmf.pm628.model.NoteFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefFVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemFVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceFVO; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRefFVO; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipFVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefFVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java index 4de70cf..77c2443 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java @@ -1,45 +1,9 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.AttachmentRefMVO; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.etsi.osl.tmf.pm628.model.ExternalIdentifierMVO; -import org.etsi.osl.tmf.pm628.model.FeatureMVO; -import org.etsi.osl.tmf.pm628.model.IntentRefMVO; -import org.etsi.osl.tmf.pm628.model.NoteMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPartyRefOrPartyRoleRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedPlaceRefMVO; -import org.etsi.osl.tmf.pm628.model.RelatedResourceOrderItemMVO; -import org.etsi.osl.tmf.pm628.model.ResourceAdministrativeStateType; -import org.etsi.osl.tmf.pm628.model.ResourceMVO; -import org.etsi.osl.tmf.pm628.model.ResourceOperationalStateType; -import org.etsi.osl.tmf.pm628.model.ResourceRefMVO; -import org.etsi.osl.tmf.pm628.model.ResourceRelationshipMVO; -import org.etsi.osl.tmf.pm628.model.ResourceSpecificationRefMVO; -import org.etsi.osl.tmf.pm628.model.ResourceStatusType; -import org.etsi.osl.tmf.pm628.model.ResourceUsageStateType; -import org.etsi.osl.tmf.pm628.model.TimePeriod; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java index 01f7877..5a7d18d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java @@ -1,26 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.etsi.osl.tmf.pm628.model.ResourceRefOrValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ResourceRelationship diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java index 4555027..5e45a68 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java @@ -1,27 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.etsi.osl.tmf.pm628.model.ResourceRefOrValueFVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ResourceRelationshipFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java index 091c543..8d5b089 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java @@ -1,27 +1,14 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.etsi.osl.tmf.pm628.model.ResourceRefOrValueMVO; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ResourceRelationshipMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java index e91050f..492a8e4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java @@ -1,21 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ResourceSpecificationRef diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java index a69d931..74949e5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ResourceSpecificationRefFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java index c6abcec..fdca4db 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java @@ -1,22 +1,11 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.constraints.NotNull; - -import java.util.*; import javax.annotation.Generated; +import java.util.Objects; /** * ResourceSpecificationRefMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java index 6fc1bec..4924c3d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceStatusType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * ResourceStatusType enumerations */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java index 8534fde..5c9c235 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceUsageStateType.java @@ -1,21 +1,10 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - -import java.util.*; import javax.annotation.Generated; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - /** * ResourceUsageStateType enumerations */ diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index be31e9f..77f1b61 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -1,28 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrence; -import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinition; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ScheduleDefinition diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java index ab465e1..21206f2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -1,29 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrenceFVO; -import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinitionFVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ScheduleDefinitionFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java index ddb353a..347d220 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -1,29 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.DayOfWeekRecurrenceMVO; -import org.etsi.osl.tmf.pm628.model.MonthlyScheduleDayOfWeekDefinitionMVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * ScheduleDefinitionMVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index c3b0507..e5c377b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -1,20 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import java.time.OffsetDateTime; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.Objects; /** * A period of time, either as a deadline (endDateTime only) a startDateTime only, or both diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index 9d571d4..3b8a902 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -1,27 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.Characteristic; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * TrackingRecord diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java index 2e9f09e..55e367c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java @@ -1,28 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicFVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * TrackingRecordFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java index 7a48374..9d18e89 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java @@ -1,28 +1,16 @@ package org.etsi.osl.tmf.pm628.model; -import java.net.URI; -import java.util.Objects; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import org.etsi.osl.tmf.pm628.model.CharacteristicMVO; -import org.springframework.format.annotation.DateTimeFormat; -import org.openapitools.jackson.nullable.JsonNullable; -import java.time.OffsetDateTime; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import org.springframework.format.annotation.DateTimeFormat; - -import java.util.*; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; /** * TrackingRecordMVO -- GitLab From f0f6aa0df053039291a674d26c440d1aaa99328a Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Tue, 25 Jun 2024 17:09:49 +0300 Subject: [PATCH 12/19] Started inheritance between FVO and MVO models (FVOs extend MVOs) --- .../osl/tmf/pm628/model/DataFilterMapFVO.java | 68 +----- .../tmf/pm628/model/DataFilterMapItemFVO.java | 32 +-- .../tmf/pm628/model/DataFilterMapItemMVO.java | 6 +- .../osl/tmf/pm628/model/DataFilterMapMVO.java | 10 +- .../pm628/model/DataFilterTemplateFVO.java | 103 +--------- .../pm628/model/DataFilterTemplateMVO.java | 14 +- .../pm628/model/DayOfMonthRecurrenceFVO.java | 87 +------- .../pm628/model/DayOfMonthRecurrenceMVO.java | 10 +- .../pm628/model/DayOfWeekRecurrenceFVO.java | 87 +------- .../pm628/model/DayOfWeekRecurrenceMVO.java | 10 +- .../tmf/pm628/model/FileTransferDataFVO.java | 150 +------------- .../tmf/pm628/model/FileTransferDataMVO.java | 20 +- .../osl/tmf/pm628/model/ManagementJobFVO.java | 110 ++-------- .../osl/tmf/pm628/model/ManagementJobMVO.java | 18 +- .../model/MeasurementCollectionJobFVO.java | 12 +- .../tmf/pm628/model/MeasurementJobFVO.java | 13 +- ...MonthlyScheduleDayOfWeekDefinitionFVO.java | 87 +------- ...MonthlyScheduleDayOfWeekDefinitionMVO.java | 10 +- .../pm628/model/ProtocolTransferDataFVO.java | 30 +-- .../pm628/model/ProtocolTransferDataMVO.java | 4 +- .../pm628/model/ScheduleDefinitionFVO.java | 193 +----------------- .../pm628/model/ScheduleDefinitionMVO.java | 24 +-- 22 files changed, 109 insertions(+), 989 deletions(-) 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 index 2e7a0a8..f45fc48 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -16,13 +16,7 @@ import java.util.Objects; @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 { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; +public class DataFilterMapFVO extends DataFilterMapMVO{ @Valid private List<@Valid DataFilterMapItemFVO> mappings = new ArrayList<>(); @@ -38,66 +32,17 @@ public class DataFilterMapFVO { this.atType = atType; } - public DataFilterMapFVO 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 DataFilterMapFVO 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 DataFilterMapFVO 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 DataFilterMapFVO mappings(List<@Valid DataFilterMapItemFVO> mappings) { this.mappings = mappings; return this; @@ -157,16 +102,5 @@ public class DataFilterMapFVO { 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 index a6116bf..57c7ddc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -15,11 +15,9 @@ import java.util.Objects; @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 { +public class DataFilterMapItemFVO extends DataFilterMapItemMVO{ - private DataFilterTemplateFVO filterTemplate; - - private DataFilterAttributeStringArray stringArray; + protected DataFilterTemplateFVO filterTemplate; public DataFilterMapItemFVO filterTemplate(DataFilterTemplateFVO filterTemplate) { this.filterTemplate = filterTemplate; @@ -46,21 +44,6 @@ public class DataFilterMapItemFVO { 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) { @@ -88,16 +71,5 @@ public class DataFilterMapItemFVO { 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 index f7d1739..b87bed4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java @@ -17,9 +17,9 @@ import java.util.Objects; @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; + protected DataFilterTemplateMVO filterTemplate; - private DataFilterAttributeStringArray stringArray; + protected DataFilterAttributeStringArray stringArray; public DataFilterMapItemMVO filterTemplate(DataFilterTemplateMVO filterTemplate) { this.filterTemplate = filterTemplate; @@ -93,7 +93,7 @@ public class DataFilterMapItemMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 87c8d1f..5f1d31e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -18,14 +18,14 @@ import java.util.Objects; @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 { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; @Valid - private List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>(); + protected List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>(); public DataFilterMapMVO() { super(); @@ -162,7 +162,7 @@ public class DataFilterMapMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 882462f..55cedc6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -13,17 +13,9 @@ import java.util.Objects; @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 { +public class DataFilterTemplateFVO extends DataFilterTemplateMVO{ - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String name; - - private String description; + protected String id = null; //Override the id from the parent class public DataFilterTemplateFVO() { super(); @@ -41,101 +33,26 @@ public class DataFilterTemplateFVO { 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 DataFilterTemplateFVO 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 DataFilterTemplateFVO 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 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) { @@ -152,11 +69,6 @@ public class DataFilterTemplateFVO { Objects.equals(this.description, dataFilterTemplateFVO.description); } - @Override - public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, name, description); - } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -169,16 +81,5 @@ public class DataFilterTemplateFVO { 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 index 8a8c51d..0d0197a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -15,17 +15,17 @@ import java.util.Objects; @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 { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; - private String id; + protected String id; - private String name; + protected String name; - private String description; + protected String description; public DataFilterTemplateMVO() { super(); @@ -198,7 +198,7 @@ public class DataFilterTemplateMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 23b231f..2360d54 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java @@ -16,16 +16,7 @@ import java.util.Objects; @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 { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; +public class DayOfMonthRecurrenceFVO extends DayOfMonthRecurrenceMVO{ public DayOfMonthRecurrenceFVO() { super(); @@ -43,81 +34,21 @@ public class DayOfMonthRecurrenceFVO { 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 DayOfMonthRecurrenceFVO 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 DayOfMonthRecurrenceFVO 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 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) { @@ -133,11 +64,6 @@ public class DayOfMonthRecurrenceFVO { Objects.equals(this.dates, dayOfMonthRecurrenceFVO.dates); } - @Override - public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, dates); - } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -149,16 +75,5 @@ public class DayOfMonthRecurrenceFVO { 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 index 2ac8dda..c079048 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java @@ -18,14 +18,14 @@ import java.util.Objects; @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 { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; + protected OffsetDateTime dates; public DayOfMonthRecurrenceMVO() { super(); @@ -154,7 +154,7 @@ public class DayOfMonthRecurrenceMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 7cb56bd..753c19e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java @@ -16,16 +16,7 @@ import java.util.Objects; @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 { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; +public class DayOfWeekRecurrenceFVO extends DayOfWeekRecurrenceMVO{ public DayOfWeekRecurrenceFVO() { super(); @@ -43,81 +34,21 @@ public class DayOfWeekRecurrenceFVO { 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 DayOfWeekRecurrenceFVO 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 DayOfWeekRecurrenceFVO 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 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) { @@ -133,11 +64,6 @@ public class DayOfWeekRecurrenceFVO { Objects.equals(this.dates, dayOfWeekRecurrenceFVO.dates); } - @Override - public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, dates); - } - @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -149,16 +75,5 @@ public class DayOfWeekRecurrenceFVO { 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 index d001c7b..168125c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java @@ -18,14 +18,14 @@ import java.util.Objects; @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 { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime dates; + protected OffsetDateTime dates; public DayOfWeekRecurrenceMVO() { super(); @@ -154,7 +154,7 @@ public class DayOfWeekRecurrenceMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java index 44aaa1c..4449d5d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -15,23 +15,7 @@ import java.util.Objects; @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 FileTransferDataFVO extends ProtocolTransferDataFVO { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private URI fileLocation; - - private String fileFormat; - - private CompressionType compressionType; - - private Duration retentionPeriod; - - private PackingType packingType; +public class FileTransferDataFVO extends FileTransferDataMVO { public FileTransferDataFVO() { super(); @@ -50,162 +34,41 @@ public class FileTransferDataFVO extends ProtocolTransferDataFVO { 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 FileTransferDataFVO 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 FileTransferDataFVO 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 FileTransferDataFVO fileLocation(URI fileLocation) { this.fileLocation = fileLocation; return this; } - /** - * Get fileLocation - * @return fileLocation - */ - @Valid - @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fileLocation") - public URI getFileLocation() { - return fileLocation; - } - - public void setFileLocation(URI fileLocation) { - this.fileLocation = fileLocation; - } - public FileTransferDataFVO fileFormat(String fileFormat) { this.fileFormat = fileFormat; return this; } - /** - * Get fileFormat - * @return fileFormat - */ - - @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("fileFormat") - public String getFileFormat() { - return fileFormat; - } - - public void setFileFormat(String fileFormat) { - this.fileFormat = fileFormat; - } - public FileTransferDataFVO compressionType(CompressionType compressionType) { this.compressionType = compressionType; return this; } - /** - * Get compressionType - * @return compressionType - */ - @Valid - @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("compressionType") - public CompressionType getCompressionType() { - return compressionType; - } - - public void setCompressionType(CompressionType compressionType) { - this.compressionType = compressionType; - } - public FileTransferDataFVO retentionPeriod(Duration retentionPeriod) { this.retentionPeriod = retentionPeriod; return this; } - /** - * Get retentionPeriod - * @return retentionPeriod - */ - @Valid - @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("retentionPeriod") - public Duration getRetentionPeriod() { - return retentionPeriod; - } - - public void setRetentionPeriod(Duration retentionPeriod) { - this.retentionPeriod = retentionPeriod; - } - public FileTransferDataFVO packingType(PackingType packingType) { this.packingType = packingType; return this; } - /** - * Get packingType - * @return packingType - */ - @Valid - @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("packingType") - public PackingType getPackingType() { - return packingType; - } - - public void setPackingType(PackingType packingType) { - this.packingType = packingType; - } - - public FileTransferDataFVO transportProtocol(String transportProtocol) { super.transportProtocol(transportProtocol); return this; @@ -251,16 +114,5 @@ public class FileTransferDataFVO extends ProtocolTransferDataFVO { 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/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java index 944b156..735c857 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -15,23 +15,23 @@ import java.util.Objects; @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 FileTransferDataMVO extends ProtocolTransferData { +public class FileTransferDataMVO extends ProtocolTransferDataMVO { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; - private URI fileLocation; + protected URI fileLocation; - private String fileFormat; + protected String fileFormat; - private CompressionType compressionType; + protected CompressionType compressionType; - private Duration retentionPeriod; + protected Duration retentionPeriod; - private PackingType packingType; + protected PackingType packingType; public FileTransferDataMVO() { super(); @@ -256,7 +256,7 @@ public class FileTransferDataMVO extends ProtocolTransferData { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java index 056d45c..8ef14a0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -1,5 +1,6 @@ package org.etsi.osl.tmf.pm628.model; +import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -13,9 +14,18 @@ import jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; + import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; + +import org.springframework.format.annotation.DateTimeFormat; +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import javax.annotation.Generated; import java.util.Objects; /** @@ -34,17 +44,7 @@ import java.util.Objects; }) @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 ManagementJobFVO { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; +public class ManagementJobFVO extends ManagementJobMVO{ private AdministrativeState adminState; @@ -54,7 +54,7 @@ public class ManagementJobFVO { private ExecutionStateType executionState; @Valid - private List fileTransferData = new ArrayList<>(); + protected List fileTransferData = new ArrayList<>(); @Valid private List dataAccessEndpoint = new ArrayList<>(); @@ -85,101 +85,26 @@ public class ManagementJobFVO { 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO adminState(AdministrativeState adminState) { this.adminState = adminState; return this; @@ -437,16 +362,5 @@ public class ManagementJobFVO { 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/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 97e3de3..7bee0aa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -32,24 +32,24 @@ import java.util.Objects; @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 ManagementJobMVO { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; - private String href; + protected String href; - private String id; + protected String id; @Valid - private List fileTransferData = new ArrayList<>(); + protected List fileTransferData = new ArrayList<>(); @Valid - private List dataAccessEndpoint = new ArrayList<>(); + protected List dataAccessEndpoint = new ArrayList<>(); //TODO @Valid - private List scheduleDefinition = new ArrayList<>(); + protected List scheduleDefinition = new ArrayList<>(); public ManagementJobMVO() { super(); @@ -290,7 +290,7 @@ public class ManagementJobMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java index 8236e8e..3c56375 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -1,13 +1,17 @@ package org.etsi.osl.tmf.pm628.model; +import java.util.Objects; + import com.fasterxml.jackson.annotation.JsonProperty; -import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.validation.Valid; -import javax.annotation.Generated; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; + +import jakarta.validation.Valid; +import io.swagger.v3.oas.annotations.media.Schema; + + +import javax.annotation.Generated; /** * MeasurementCollectionJobFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java index 081cda5..e3b81e8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -1,18 +1,21 @@ package org.etsi.osl.tmf.pm628.model; +import java.util.Objects; 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 jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; -import javax.annotation.Generated; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.*; +import io.swagger.v3.oas.annotations.media.Schema; + + +import javax.annotation.Generated; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java index 0c60d54..4e42e1c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -16,19 +16,11 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinitionFVO { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; +public class MonthlyScheduleDayOfWeekDefinitionFVO extends MonthlyScheduleDayOfWeekDefinitionMVO{ @Valid private List dayOfMonthRecurrence = new ArrayList<>(); - private String recurringDaySequence; - public MonthlyScheduleDayOfWeekDefinitionFVO() { super(); } @@ -45,62 +37,17 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO { 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 MonthlyScheduleDayOfWeekDefinitionFVO 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 MonthlyScheduleDayOfWeekDefinitionFVO 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 MonthlyScheduleDayOfWeekDefinitionFVO dayOfMonthRecurrence(List dayOfMonthRecurrence) { + public MonthlyScheduleDayOfWeekDefinitionFVO dayOfMonthRecurrenceFVO(List dayOfMonthRecurrence) { this.dayOfMonthRecurrence = dayOfMonthRecurrence; return this; } @@ -120,11 +67,11 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO { @Valid @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dayOfMonthRecurrence") - public List getDayOfMonthRecurrence() { + public List getDayOfMonthRecurrenceFVO() { return dayOfMonthRecurrence; } - public void setDayOfMonthRecurrence(List dayOfMonthRecurrence) { + public void setDayOfMonthRecurrenceFVO(List dayOfMonthRecurrence) { this.dayOfMonthRecurrence = dayOfMonthRecurrence; } @@ -133,21 +80,6 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO { return this; } - /** - * Get recurringDaySequence - * @return recurringDaySequence - */ - - @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("recurringDaySequence") - public String getRecurringDaySequence() { - return recurringDaySequence; - } - - public void setRecurringDaySequence(String recurringDaySequence) { - this.recurringDaySequence = recurringDaySequence; - } - @Override public boolean equals(Object o) { if (this == o) { @@ -181,16 +113,5 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO { 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/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java index 775f710..b36d2ef 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -18,16 +18,16 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinitionMVO { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; @Valid private List dayOfMonthRecurrence = new ArrayList<>(); - private String recurringDaySequence; + protected String recurringDaySequence; public MonthlyScheduleDayOfWeekDefinitionMVO() { super(); @@ -186,7 +186,7 @@ public class MonthlyScheduleDayOfWeekDefinitionMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java index 9cb5e0d..4246007 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java @@ -23,30 +23,13 @@ import java.util.Objects; }) @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 ProtocolTransferDataFVO { - - private String transportProtocol; +public class ProtocolTransferDataFVO extends ProtocolTransferDataMVO{ public ProtocolTransferDataFVO transportProtocol(String transportProtocol) { this.transportProtocol = transportProtocol; return this; } - /** - * Get transportProtocol - * @return transportProtocol - */ - - @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("transportProtocol") - public String getTransportProtocol() { - return transportProtocol; - } - - public void setTransportProtocol(String transportProtocol) { - this.transportProtocol = transportProtocol; - } - @Override public boolean equals(Object o) { if (this == o) { @@ -72,16 +55,5 @@ public class ProtocolTransferDataFVO { 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/ProtocolTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java index fe56034..f740ee8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java @@ -14,7 +14,7 @@ import java.util.Objects; @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 ProtocolTransferDataMVO { - private String transportProtocol; + protected String transportProtocol; public ProtocolTransferDataMVO transportProtocol(String transportProtocol) { this.transportProtocol = transportProtocol; @@ -66,7 +66,7 @@ public class ProtocolTransferDataMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java index 21206f2..480189a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -18,37 +18,15 @@ import java.util.Objects; @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 ScheduleDefinitionFVO { +public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionStartTime; - - @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionEndTime; - - private String recurringFrequency; - - @Valid - private List excludedDate = new ArrayList<>(); - - private String scheduleDefinitionHourRange; + protected String id = null; // Override the id from the parent class @Valid private List weeklyScheduledDefinition = new ArrayList<>(); - @Valid - private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); - private MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition; - @Valid - private List dateScheduleDefintion = new ArrayList<>(); public ScheduleDefinitionFVO() { super(); @@ -66,121 +44,31 @@ public class ScheduleDefinitionFVO { 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 ScheduleDefinitionFVO 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 ScheduleDefinitionFVO 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 ScheduleDefinitionFVO scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; return this; } - /** - * The Start time of the Schedule Definition - * @return scheduleDefinitionStartTime - */ - @Valid - @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionStartTime") - public OffsetDateTime getScheduleDefinitionStartTime() { - return scheduleDefinitionStartTime; - } - - public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { - this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; - } - public ScheduleDefinitionFVO scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; return this; } - /** - * The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. - * @return scheduleDefinitionEndTime - */ - @Valid - @Schema(name = "scheduleDefinitionEndTime", description = "The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionEndTime") - public OffsetDateTime getScheduleDefinitionEndTime() { - return scheduleDefinitionEndTime; - } - - public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { - this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; - } - public ScheduleDefinitionFVO recurringFrequency(String recurringFrequency) { this.recurringFrequency = recurringFrequency; return this; } - /** - * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour - * @return recurringFrequency - */ - - @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("recurringFrequency") - public String getRecurringFrequency() { - return recurringFrequency; - } - - public void setRecurringFrequency(String recurringFrequency) { - this.recurringFrequency = recurringFrequency; - } - public ScheduleDefinitionFVO excludedDate(List excludedDate) { this.excludedDate = excludedDate; return this; @@ -194,42 +82,12 @@ public class ScheduleDefinitionFVO { return this; } - /** - * A list of specific dates that should be excluded from the Schedule Definition. - * @return excludedDate - */ - @Valid - @Schema(name = "excludedDate", description = "A list of specific dates that should be excluded from the Schedule Definition.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("excludedDate") - public List getExcludedDate() { - return excludedDate; - } - - public void setExcludedDate(List excludedDate) { - this.excludedDate = excludedDate; - } - public ScheduleDefinitionFVO scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; return this; } - /** - * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. - * @return scheduleDefinitionHourRange - */ - - @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("scheduleDefinitionHourRange") - public String getScheduleDefinitionHourRange() { - return scheduleDefinitionHourRange; - } - - public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { - this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; - } - - public ScheduleDefinitionFVO weeklyScheduledDefinition(List weeklyScheduledDefinition) { + public ScheduleDefinitionFVO weeklyScheduledDefinitionFVO(List weeklyScheduledDefinition) { this.weeklyScheduledDefinition = weeklyScheduledDefinition; return this; } @@ -249,11 +107,11 @@ public class ScheduleDefinitionFVO { @Valid @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("WeeklyScheduledDefinition") - public List getWeeklyScheduledDefinition() { + public List getWeeklyScheduledDefinitionFVO() { return weeklyScheduledDefinition; } - public void setWeeklyScheduledDefinition(List weeklyScheduledDefinition) { + public void setWeeklyScheduledDefinitionFVO(List weeklyScheduledDefinition) { this.weeklyScheduledDefinition = weeklyScheduledDefinition; } @@ -270,21 +128,6 @@ public class ScheduleDefinitionFVO { return this; } - /** - * The schedule definition for running the threshold job - * @return monthlyScheduleDayOfMonthDefinition - */ - @Valid - @Schema(name = "monthlyScheduleDayOfMonthDefinition", description = "The schedule definition for running the threshold job", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("monthlyScheduleDayOfMonthDefinition") - public List getMonthlyScheduleDayOfMonthDefinition() { - return monthlyScheduleDayOfMonthDefinition; - } - - public void setMonthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { - this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; - } - public ScheduleDefinitionFVO monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition) { this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; return this; @@ -318,21 +161,6 @@ public class ScheduleDefinitionFVO { return this; } - /** - * The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013 - * @return dateScheduleDefintion - */ - @Valid - @Schema(name = "dateScheduleDefintion", description = "The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("dateScheduleDefintion") - public List getDateScheduleDefintion() { - return dateScheduleDefintion; - } - - public void setDateScheduleDefintion(List dateScheduleDefintion) { - this.dateScheduleDefintion = dateScheduleDefintion; - } - @Override public boolean equals(Object o) { if (this == o) { @@ -380,16 +208,5 @@ public class ScheduleDefinitionFVO { 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/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java index 347d220..140d529 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -20,37 +20,37 @@ import java.util.Objects; @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 ScheduleDefinitionMVO { - private String atType; + protected String atType; - private String atBaseType; + protected String atBaseType; - private String atSchemaLocation; + protected String atSchemaLocation; - private String id; + protected String id; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionStartTime; + protected OffsetDateTime scheduleDefinitionStartTime; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - private OffsetDateTime scheduleDefinitionEndTime; + protected OffsetDateTime scheduleDefinitionEndTime; - private String recurringFrequency; + protected String recurringFrequency; @Valid - private List excludedDate = new ArrayList<>(); + protected List excludedDate = new ArrayList<>(); - private String scheduleDefinitionHourRange; + protected String scheduleDefinitionHourRange; @Valid private List weeklyScheduledDefinition = new ArrayList<>(); @Valid - private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + protected List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); private MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinition; @Valid - private List dateScheduleDefintion = new ArrayList<>(); + protected List dateScheduleDefintion = new ArrayList<>(); public ScheduleDefinitionMVO() { super(); @@ -409,7 +409,7 @@ public class ScheduleDefinitionMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - private String toIndentedString(Object o) { + protected String toIndentedString(Object o) { if (o == null) { return "null"; } -- GitLab From c3b1bedc634f50a36163164e805214e0d777aca5 Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Wed, 26 Jun 2024 14:19:40 +0300 Subject: [PATCH 13/19] Revert "Started inheritance between FVO and MVO models (FVOs extend MVOs)" This reverts commit f0f6aa0df053039291a674d26c440d1aaa99328a. Reverted the inheritance between FVOs and MVOs --- .../osl/tmf/pm628/model/DataFilterMapFVO.java | 68 +++++- .../tmf/pm628/model/DataFilterMapItemFVO.java | 32 ++- .../tmf/pm628/model/DataFilterMapItemMVO.java | 6 +- .../osl/tmf/pm628/model/DataFilterMapMVO.java | 10 +- .../pm628/model/DataFilterTemplateFVO.java | 103 +++++++++- .../pm628/model/DataFilterTemplateMVO.java | 14 +- .../pm628/model/DayOfMonthRecurrenceFVO.java | 87 +++++++- .../pm628/model/DayOfMonthRecurrenceMVO.java | 10 +- .../pm628/model/DayOfWeekRecurrenceFVO.java | 87 +++++++- .../pm628/model/DayOfWeekRecurrenceMVO.java | 10 +- .../tmf/pm628/model/FileTransferDataFVO.java | 150 +++++++++++++- .../tmf/pm628/model/FileTransferDataMVO.java | 20 +- .../osl/tmf/pm628/model/ManagementJobFVO.java | 110 ++++++++-- .../osl/tmf/pm628/model/ManagementJobMVO.java | 18 +- .../model/MeasurementCollectionJobFVO.java | 12 +- .../tmf/pm628/model/MeasurementJobFVO.java | 13 +- ...MonthlyScheduleDayOfWeekDefinitionFVO.java | 87 +++++++- ...MonthlyScheduleDayOfWeekDefinitionMVO.java | 10 +- .../pm628/model/ProtocolTransferDataFVO.java | 30 ++- .../pm628/model/ProtocolTransferDataMVO.java | 4 +- .../pm628/model/ScheduleDefinitionFVO.java | 193 +++++++++++++++++- .../pm628/model/ScheduleDefinitionMVO.java | 24 +-- 22 files changed, 989 insertions(+), 109 deletions(-) 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 index f45fc48..2e7a0a8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -16,7 +16,13 @@ import java.util.Objects; @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 extends DataFilterMapMVO{ +public class DataFilterMapFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; @Valid private List<@Valid DataFilterMapItemFVO> mappings = new ArrayList<>(); @@ -32,17 +38,66 @@ public class DataFilterMapFVO extends DataFilterMapMVO{ this.atType = atType; } + public DataFilterMapFVO 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 DataFilterMapFVO 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 DataFilterMapFVO 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 DataFilterMapFVO mappings(List<@Valid DataFilterMapItemFVO> mappings) { this.mappings = mappings; return this; @@ -102,5 +157,16 @@ public class DataFilterMapFVO extends DataFilterMapMVO{ 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 index 57c7ddc..a6116bf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -15,9 +15,11 @@ import java.util.Objects; @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 extends DataFilterMapItemMVO{ +public class DataFilterMapItemFVO { - protected DataFilterTemplateFVO filterTemplate; + private DataFilterTemplateFVO filterTemplate; + + private DataFilterAttributeStringArray stringArray; public DataFilterMapItemFVO filterTemplate(DataFilterTemplateFVO filterTemplate) { this.filterTemplate = filterTemplate; @@ -44,6 +46,21 @@ public class DataFilterMapItemFVO extends DataFilterMapItemMVO{ 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) { @@ -71,5 +88,16 @@ public class DataFilterMapItemFVO extends DataFilterMapItemMVO{ 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 index b87bed4..f7d1739 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemMVO.java @@ -17,9 +17,9 @@ import java.util.Objects; @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 { - protected DataFilterTemplateMVO filterTemplate; + private DataFilterTemplateMVO filterTemplate; - protected DataFilterAttributeStringArray stringArray; + private DataFilterAttributeStringArray stringArray; public DataFilterMapItemMVO filterTemplate(DataFilterTemplateMVO filterTemplate) { this.filterTemplate = filterTemplate; @@ -93,7 +93,7 @@ public class DataFilterMapItemMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 5f1d31e..87c8d1f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -18,14 +18,14 @@ import java.util.Objects; @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 { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; @Valid - protected List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>(); + private List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>(); public DataFilterMapMVO() { super(); @@ -162,7 +162,7 @@ public class DataFilterMapMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 55cedc6..882462f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -13,9 +13,17 @@ import java.util.Objects; @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 extends DataFilterTemplateMVO{ +public class DataFilterTemplateFVO { - protected String id = null; //Override the id from the parent class + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String name; + + private String description; public DataFilterTemplateFVO() { super(); @@ -33,26 +41,101 @@ public class DataFilterTemplateFVO extends DataFilterTemplateMVO{ 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 DataFilterTemplateFVO 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 DataFilterTemplateFVO 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 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) { @@ -69,6 +152,11 @@ public class DataFilterTemplateFVO extends DataFilterTemplateMVO{ Objects.equals(this.description, dataFilterTemplateFVO.description); } + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, name, description); + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -81,5 +169,16 @@ public class DataFilterTemplateFVO extends DataFilterTemplateMVO{ 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 index 0d0197a..8a8c51d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -15,17 +15,17 @@ import java.util.Objects; @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 { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; - protected String id; + private String id; - protected String name; + private String name; - protected String description; + private String description; public DataFilterTemplateMVO() { super(); @@ -198,7 +198,7 @@ public class DataFilterTemplateMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 2360d54..23b231f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java @@ -16,7 +16,16 @@ import java.util.Objects; @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 extends DayOfMonthRecurrenceMVO{ +public class DayOfMonthRecurrenceFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; public DayOfMonthRecurrenceFVO() { super(); @@ -34,21 +43,81 @@ public class DayOfMonthRecurrenceFVO extends DayOfMonthRecurrenceMVO{ 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 DayOfMonthRecurrenceFVO 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 DayOfMonthRecurrenceFVO 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 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) { @@ -64,6 +133,11 @@ public class DayOfMonthRecurrenceFVO extends DayOfMonthRecurrenceMVO{ Objects.equals(this.dates, dayOfMonthRecurrenceFVO.dates); } + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -75,5 +149,16 @@ public class DayOfMonthRecurrenceFVO extends DayOfMonthRecurrenceMVO{ 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 index c079048..2ac8dda 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java @@ -18,14 +18,14 @@ import java.util.Objects; @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 { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - protected OffsetDateTime dates; + private OffsetDateTime dates; public DayOfMonthRecurrenceMVO() { super(); @@ -154,7 +154,7 @@ public class DayOfMonthRecurrenceMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } 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 index 753c19e..7cb56bd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java @@ -16,7 +16,16 @@ import java.util.Objects; @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 extends DayOfWeekRecurrenceMVO{ +public class DayOfWeekRecurrenceFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime dates; public DayOfWeekRecurrenceFVO() { super(); @@ -34,21 +43,81 @@ public class DayOfWeekRecurrenceFVO extends DayOfWeekRecurrenceMVO{ 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 DayOfWeekRecurrenceFVO 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 DayOfWeekRecurrenceFVO 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 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) { @@ -64,6 +133,11 @@ public class DayOfWeekRecurrenceFVO extends DayOfWeekRecurrenceMVO{ Objects.equals(this.dates, dayOfWeekRecurrenceFVO.dates); } + @Override + public int hashCode() { + return Objects.hash(atType, atBaseType, atSchemaLocation, dates); + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -75,5 +149,16 @@ public class DayOfWeekRecurrenceFVO extends DayOfWeekRecurrenceMVO{ 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 index 168125c..d001c7b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java @@ -18,14 +18,14 @@ import java.util.Objects; @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 { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - protected OffsetDateTime dates; + private OffsetDateTime dates; public DayOfWeekRecurrenceMVO() { super(); @@ -154,7 +154,7 @@ public class DayOfWeekRecurrenceMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java index 4449d5d..44aaa1c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -15,7 +15,23 @@ import java.util.Objects; @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 FileTransferDataFVO extends FileTransferDataMVO { +public class FileTransferDataFVO extends ProtocolTransferDataFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private URI fileLocation; + + private String fileFormat; + + private CompressionType compressionType; + + private Duration retentionPeriod; + + private PackingType packingType; public FileTransferDataFVO() { super(); @@ -34,41 +50,162 @@ public class FileTransferDataFVO extends FileTransferDataMVO { 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 FileTransferDataFVO 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 FileTransferDataFVO 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 FileTransferDataFVO fileLocation(URI fileLocation) { this.fileLocation = fileLocation; return this; } + /** + * Get fileLocation + * @return fileLocation + */ + @Valid + @Schema(name = "fileLocation", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileLocation") + public URI getFileLocation() { + return fileLocation; + } + + public void setFileLocation(URI fileLocation) { + this.fileLocation = fileLocation; + } + public FileTransferDataFVO fileFormat(String fileFormat) { this.fileFormat = fileFormat; return this; } + /** + * Get fileFormat + * @return fileFormat + */ + + @Schema(name = "fileFormat", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("fileFormat") + public String getFileFormat() { + return fileFormat; + } + + public void setFileFormat(String fileFormat) { + this.fileFormat = fileFormat; + } + public FileTransferDataFVO compressionType(CompressionType compressionType) { this.compressionType = compressionType; return this; } + /** + * Get compressionType + * @return compressionType + */ + @Valid + @Schema(name = "compressionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("compressionType") + public CompressionType getCompressionType() { + return compressionType; + } + + public void setCompressionType(CompressionType compressionType) { + this.compressionType = compressionType; + } + public FileTransferDataFVO retentionPeriod(Duration retentionPeriod) { this.retentionPeriod = retentionPeriod; return this; } + /** + * Get retentionPeriod + * @return retentionPeriod + */ + @Valid + @Schema(name = "retentionPeriod", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("retentionPeriod") + public Duration getRetentionPeriod() { + return retentionPeriod; + } + + public void setRetentionPeriod(Duration retentionPeriod) { + this.retentionPeriod = retentionPeriod; + } + public FileTransferDataFVO packingType(PackingType packingType) { this.packingType = packingType; return this; } + /** + * Get packingType + * @return packingType + */ + @Valid + @Schema(name = "packingType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("packingType") + public PackingType getPackingType() { + return packingType; + } + + public void setPackingType(PackingType packingType) { + this.packingType = packingType; + } + + public FileTransferDataFVO transportProtocol(String transportProtocol) { super.transportProtocol(transportProtocol); return this; @@ -114,5 +251,16 @@ public class FileTransferDataFVO extends FileTransferDataMVO { 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/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java index 735c857..944b156 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -15,23 +15,23 @@ import java.util.Objects; @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 FileTransferDataMVO extends ProtocolTransferDataMVO { +public class FileTransferDataMVO extends ProtocolTransferData { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; - protected URI fileLocation; + private URI fileLocation; - protected String fileFormat; + private String fileFormat; - protected CompressionType compressionType; + private CompressionType compressionType; - protected Duration retentionPeriod; + private Duration retentionPeriod; - protected PackingType packingType; + private PackingType packingType; public FileTransferDataMVO() { super(); @@ -256,7 +256,7 @@ public class FileTransferDataMVO extends ProtocolTransferDataMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java index 8ef14a0..056d45c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -1,6 +1,5 @@ package org.etsi.osl.tmf.pm628.model; -import java.util.Objects; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonSubTypes; @@ -14,18 +13,9 @@ import jakarta.validation.constraints.Size; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; - import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; - -import org.springframework.format.annotation.DateTimeFormat; -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import javax.annotation.Generated; import java.util.Objects; /** @@ -44,7 +34,17 @@ import java.util.Objects; }) @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 ManagementJobFVO extends ManagementJobMVO{ +public class ManagementJobFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + private String href; + + private String id; private AdministrativeState adminState; @@ -54,7 +54,7 @@ public class ManagementJobFVO extends ManagementJobMVO{ private ExecutionStateType executionState; @Valid - protected List fileTransferData = new ArrayList<>(); + private List fileTransferData = new ArrayList<>(); @Valid private List dataAccessEndpoint = new ArrayList<>(); @@ -85,26 +85,101 @@ public class ManagementJobFVO extends ManagementJobMVO{ 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO 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 ManagementJobFVO adminState(AdministrativeState adminState) { this.adminState = adminState; return this; @@ -362,5 +437,16 @@ public class ManagementJobFVO extends ManagementJobMVO{ 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/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 7bee0aa..97e3de3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -32,24 +32,24 @@ import java.util.Objects; @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 ManagementJobMVO { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; - protected String href; + private String href; - protected String id; + private String id; @Valid - protected List fileTransferData = new ArrayList<>(); + private List fileTransferData = new ArrayList<>(); @Valid - protected List dataAccessEndpoint = new ArrayList<>(); //TODO + private List dataAccessEndpoint = new ArrayList<>(); @Valid - protected List scheduleDefinition = new ArrayList<>(); + private List scheduleDefinition = new ArrayList<>(); public ManagementJobMVO() { super(); @@ -290,7 +290,7 @@ public class ManagementJobMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java index 3c56375..8236e8e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -1,17 +1,13 @@ package org.etsi.osl.tmf.pm628.model; -import java.util.Objects; - import com.fasterxml.jackson.annotation.JsonProperty; - -import java.time.OffsetDateTime; -import java.util.List; - -import jakarta.validation.Valid; import io.swagger.v3.oas.annotations.media.Schema; - +import jakarta.validation.Valid; import javax.annotation.Generated; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Objects; /** * MeasurementCollectionJobFVO diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java index e3b81e8..081cda5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -1,21 +1,18 @@ package org.etsi.osl.tmf.pm628.model; -import java.util.Objects; 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 jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import javax.annotation.Generated; import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; - -import jakarta.validation.Valid; -import jakarta.validation.constraints.*; -import io.swagger.v3.oas.annotations.media.Schema; - - -import javax.annotation.Generated; import java.util.Objects; /** diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java index 4e42e1c..0c60d54 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -16,11 +16,19 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinitionFVO extends MonthlyScheduleDayOfWeekDefinitionMVO{ +public class MonthlyScheduleDayOfWeekDefinitionFVO { + + private String atType; + + private String atBaseType; + + private String atSchemaLocation; @Valid private List dayOfMonthRecurrence = new ArrayList<>(); + private String recurringDaySequence; + public MonthlyScheduleDayOfWeekDefinitionFVO() { super(); } @@ -37,17 +45,62 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO extends MonthlyScheduleDayOfW 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 MonthlyScheduleDayOfWeekDefinitionFVO 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 MonthlyScheduleDayOfWeekDefinitionFVO atSchemaLocation(String atSchemaLocation) { this.atSchemaLocation = atSchemaLocation; return this; } - public MonthlyScheduleDayOfWeekDefinitionFVO dayOfMonthRecurrenceFVO(List dayOfMonthRecurrence) { + /** + * 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 MonthlyScheduleDayOfWeekDefinitionFVO dayOfMonthRecurrence(List dayOfMonthRecurrence) { this.dayOfMonthRecurrence = dayOfMonthRecurrence; return this; } @@ -67,11 +120,11 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO extends MonthlyScheduleDayOfW @Valid @Schema(name = "dayOfMonthRecurrence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("dayOfMonthRecurrence") - public List getDayOfMonthRecurrenceFVO() { + public List getDayOfMonthRecurrence() { return dayOfMonthRecurrence; } - public void setDayOfMonthRecurrenceFVO(List dayOfMonthRecurrence) { + public void setDayOfMonthRecurrence(List dayOfMonthRecurrence) { this.dayOfMonthRecurrence = dayOfMonthRecurrence; } @@ -80,6 +133,21 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO extends MonthlyScheduleDayOfW return this; } + /** + * Get recurringDaySequence + * @return recurringDaySequence + */ + + @Schema(name = "recurringDaySequence", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringDaySequence") + public String getRecurringDaySequence() { + return recurringDaySequence; + } + + public void setRecurringDaySequence(String recurringDaySequence) { + this.recurringDaySequence = recurringDaySequence; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -113,5 +181,16 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO extends MonthlyScheduleDayOfW 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/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java index b36d2ef..775f710 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -18,16 +18,16 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinitionMVO { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; @Valid private List dayOfMonthRecurrence = new ArrayList<>(); - protected String recurringDaySequence; + private String recurringDaySequence; public MonthlyScheduleDayOfWeekDefinitionMVO() { super(); @@ -186,7 +186,7 @@ public class MonthlyScheduleDayOfWeekDefinitionMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java index 4246007..9cb5e0d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java @@ -23,13 +23,30 @@ import java.util.Objects; }) @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 ProtocolTransferDataFVO extends ProtocolTransferDataMVO{ +public class ProtocolTransferDataFVO { + + private String transportProtocol; public ProtocolTransferDataFVO transportProtocol(String transportProtocol) { this.transportProtocol = transportProtocol; return this; } + /** + * Get transportProtocol + * @return transportProtocol + */ + + @Schema(name = "transportProtocol", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("transportProtocol") + public String getTransportProtocol() { + return transportProtocol; + } + + public void setTransportProtocol(String transportProtocol) { + this.transportProtocol = transportProtocol; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -55,5 +72,16 @@ public class ProtocolTransferDataFVO extends ProtocolTransferDataMVO{ 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/ProtocolTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java index f740ee8..fe56034 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java @@ -14,7 +14,7 @@ import java.util.Objects; @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 ProtocolTransferDataMVO { - protected String transportProtocol; + private String transportProtocol; public ProtocolTransferDataMVO transportProtocol(String transportProtocol) { this.transportProtocol = transportProtocol; @@ -66,7 +66,7 @@ public class ProtocolTransferDataMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java index 480189a..21206f2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -18,15 +18,37 @@ import java.util.Objects; @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 ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ +public class ScheduleDefinitionFVO { - protected String id = null; // Override the id from the parent class + private String atType; + + private String atBaseType; + + private String atSchemaLocation; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionStartTime; + + @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) + private OffsetDateTime scheduleDefinitionEndTime; + + private String recurringFrequency; + + @Valid + private List excludedDate = new ArrayList<>(); + + private String scheduleDefinitionHourRange; @Valid private List weeklyScheduledDefinition = new ArrayList<>(); + @Valid + private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + private MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition; + @Valid + private List dateScheduleDefintion = new ArrayList<>(); public ScheduleDefinitionFVO() { super(); @@ -44,31 +66,121 @@ public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ 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 ScheduleDefinitionFVO 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 ScheduleDefinitionFVO 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 ScheduleDefinitionFVO scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; return this; } + /** + * The Start time of the Schedule Definition + * @return scheduleDefinitionStartTime + */ + @Valid + @Schema(name = "scheduleDefinitionStartTime", description = "The Start time of the Schedule Definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionStartTime") + public OffsetDateTime getScheduleDefinitionStartTime() { + return scheduleDefinitionStartTime; + } + + public void setScheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { + this.scheduleDefinitionStartTime = scheduleDefinitionStartTime; + } + public ScheduleDefinitionFVO scheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; return this; } + /** + * The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint. + * @return scheduleDefinitionEndTime + */ + @Valid + @Schema(name = "scheduleDefinitionEndTime", description = "The End time of the Schedule Definition. If the attribute is empty the Schedule run forever, not having a time constraint.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionEndTime") + public OffsetDateTime getScheduleDefinitionEndTime() { + return scheduleDefinitionEndTime; + } + + public void setScheduleDefinitionEndTime(OffsetDateTime scheduleDefinitionEndTime) { + this.scheduleDefinitionEndTime = scheduleDefinitionEndTime; + } + public ScheduleDefinitionFVO recurringFrequency(String recurringFrequency) { this.recurringFrequency = recurringFrequency; return this; } + /** + * A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour + * @return recurringFrequency + */ + + @Schema(name = "recurringFrequency", description = "A recurring frequency to run a job within day that is included in schedule definition, for example: every 5 minutes, 15 minute, 30 minutes, 1 hour", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("recurringFrequency") + public String getRecurringFrequency() { + return recurringFrequency; + } + + public void setRecurringFrequency(String recurringFrequency) { + this.recurringFrequency = recurringFrequency; + } + public ScheduleDefinitionFVO excludedDate(List excludedDate) { this.excludedDate = excludedDate; return this; @@ -82,12 +194,42 @@ public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ return this; } + /** + * A list of specific dates that should be excluded from the Schedule Definition. + * @return excludedDate + */ + @Valid + @Schema(name = "excludedDate", description = "A list of specific dates that should be excluded from the Schedule Definition.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("excludedDate") + public List getExcludedDate() { + return excludedDate; + } + + public void setExcludedDate(List excludedDate) { + this.excludedDate = excludedDate; + } + public ScheduleDefinitionFVO scheduleDefinitionHourRange(String scheduleDefinitionHourRange) { this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; return this; } - public ScheduleDefinitionFVO weeklyScheduledDefinitionFVO(List weeklyScheduledDefinition) { + /** + * A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00. + * @return scheduleDefinitionHourRange + */ + + @Schema(name = "scheduleDefinitionHourRange", description = "A list of time ranges within a specific day that the schedule will be active on, for example 08:00-12:00, 16:00-19:00.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("scheduleDefinitionHourRange") + public String getScheduleDefinitionHourRange() { + return scheduleDefinitionHourRange; + } + + public void setScheduleDefinitionHourRange(String scheduleDefinitionHourRange) { + this.scheduleDefinitionHourRange = scheduleDefinitionHourRange; + } + + public ScheduleDefinitionFVO weeklyScheduledDefinition(List weeklyScheduledDefinition) { this.weeklyScheduledDefinition = weeklyScheduledDefinition; return this; } @@ -107,11 +249,11 @@ public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ @Valid @Schema(name = "WeeklyScheduledDefinition", description = "The weekly schedule is used to define a schedule that is based on the days of the week, e.g. a schedule that will be active only on Monday and Tuesday.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("WeeklyScheduledDefinition") - public List getWeeklyScheduledDefinitionFVO() { + public List getWeeklyScheduledDefinition() { return weeklyScheduledDefinition; } - public void setWeeklyScheduledDefinitionFVO(List weeklyScheduledDefinition) { + public void setWeeklyScheduledDefinition(List weeklyScheduledDefinition) { this.weeklyScheduledDefinition = weeklyScheduledDefinition; } @@ -128,6 +270,21 @@ public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ return this; } + /** + * The schedule definition for running the threshold job + * @return monthlyScheduleDayOfMonthDefinition + */ + @Valid + @Schema(name = "monthlyScheduleDayOfMonthDefinition", description = "The schedule definition for running the threshold job", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("monthlyScheduleDayOfMonthDefinition") + public List getMonthlyScheduleDayOfMonthDefinition() { + return monthlyScheduleDayOfMonthDefinition; + } + + public void setMonthlyScheduleDayOfMonthDefinition(List monthlyScheduleDayOfMonthDefinition) { + this.monthlyScheduleDayOfMonthDefinition = monthlyScheduleDayOfMonthDefinition; + } + public ScheduleDefinitionFVO monthlyScheduleDayOfWeekDefinition(MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition) { this.monthlyScheduleDayOfWeekDefinition = monthlyScheduleDayOfWeekDefinition; return this; @@ -161,6 +318,21 @@ public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ return this; } + /** + * The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013 + * @return dateScheduleDefintion + */ + @Valid + @Schema(name = "dateScheduleDefintion", description = "The date schedule is used to define a schedule that is based on specific dates, such as December 31st 2015, February 28th 2013", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("dateScheduleDefintion") + public List getDateScheduleDefintion() { + return dateScheduleDefintion; + } + + public void setDateScheduleDefintion(List dateScheduleDefintion) { + this.dateScheduleDefintion = dateScheduleDefintion; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -208,5 +380,16 @@ public class ScheduleDefinitionFVO extends ScheduleDefinitionMVO{ 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/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java index 140d529..347d220 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -20,37 +20,37 @@ import java.util.Objects; @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 ScheduleDefinitionMVO { - protected String atType; + private String atType; - protected String atBaseType; + private String atBaseType; - protected String atSchemaLocation; + private String atSchemaLocation; - protected String id; + private String id; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - protected OffsetDateTime scheduleDefinitionStartTime; + private OffsetDateTime scheduleDefinitionStartTime; @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) - protected OffsetDateTime scheduleDefinitionEndTime; + private OffsetDateTime scheduleDefinitionEndTime; - protected String recurringFrequency; + private String recurringFrequency; @Valid - protected List excludedDate = new ArrayList<>(); + private List excludedDate = new ArrayList<>(); - protected String scheduleDefinitionHourRange; + private String scheduleDefinitionHourRange; @Valid private List weeklyScheduledDefinition = new ArrayList<>(); @Valid - protected List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); private MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinition; @Valid - protected List dateScheduleDefintion = new ArrayList<>(); + private List dateScheduleDefintion = new ArrayList<>(); public ScheduleDefinitionMVO() { super(); @@ -409,7 +409,7 @@ public class ScheduleDefinitionMVO { * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ - protected String toIndentedString(Object o) { + private String toIndentedString(Object o) { if (o == null) { return "null"; } -- GitLab From 8c9ed136edcb59bc55e1053516d5b672397529e7 Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Tue, 2 Jul 2024 15:34:23 +0300 Subject: [PATCH 14/19] Created Mapstruct Mappers for MeasurementCollectionJob and for the necessary nested classes --- .../model/MeasurementCollectionJobMapper.java | 26 +++++++++++++++++++ .../model/PartyRefOrPartyRoleRefMapper.java | 19 ++++++++++++++ ...ndicatorSpecificationRefOrValueMapper.java | 19 ++++++++++++++ .../pm628/model/ResourceRefOrValueMapper.java | 23 ++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMapper.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMapper.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMapper.java diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java new file mode 100644 index 0000000..cd55883 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java @@ -0,0 +1,26 @@ +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 = { + PerformanceIndicatorSpecificationRefOrValueMapper.class, + PartyRefOrPartyRoleRefMapper.class, + ResourceRefOrValueMapper.class + } +) +public interface MeasurementCollectionJobMapper { + + MeasurementCollectionJob createMeasurementCollectionJob(MeasurementCollectionJobFVO measurementCollectionJobFVO); + + @Mapping(target = "atType", ignore = true) + @Mapping(target = "atBaseType", ignore = true) + @Mapping(target = "atSchemaLocation", ignore = true) + @Mapping(target = "href", ignore = true) + @Mapping(target = "id", ignore = true) + @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE) + MeasurementCollectionJob updateMeasurementCollectionJob(MeasurementCollectionJobMVO measurementCollectionJobMVO, @MappingTarget MeasurementCollectionJob measurementCollectionJob); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMapper.java new file mode 100644 index 0000000..5beb3bc --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMapper.java @@ -0,0 +1,19 @@ +package org.etsi.osl.tmf.pm628.model; + +import org.mapstruct.*; + +@Mapper( + nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT, + nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, + subclassExhaustiveStrategy = SubclassExhaustiveStrategy.RUNTIME_EXCEPTION +) +public interface PartyRefOrPartyRoleRefMapper { + + @SubclassMapping(source = PartyRefFVO.class, target = PartyRef.class) + @SubclassMapping(source = PartyRoleRefFVO.class, target = PartyRoleRef.class) + PartyRefOrPartyRoleRef map(PartyRefOrPartyRoleRefFVO source); + + @SubclassMapping(source = PartyRefMVO.class, target = PartyRef.class) + @SubclassMapping(source = PartyRoleRefMVO.class, target = PartyRoleRef.class) + PartyRefOrPartyRoleRef map(PartyRefOrPartyRoleRefMVO source); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMapper.java new file mode 100644 index 0000000..f3979cb --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMapper.java @@ -0,0 +1,19 @@ +package org.etsi.osl.tmf.pm628.model; + +import org.mapstruct.*; + +@Mapper( + nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT, + nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, + subclassExhaustiveStrategy = SubclassExhaustiveStrategy.RUNTIME_EXCEPTION +) +public interface PerformanceIndicatorSpecificationRefOrValueMapper { + + @SubclassMapping(source = PerformanceIndicatorSpecificationRefFVO.class, target = PerformanceIndicatorSpecificationRef.class) + @SubclassMapping(source = PerformanceIndicatorSpecificationFVO.class, target = PerformanceIndicatorSpecification.class) + PerformanceIndicatorSpecificationRefOrValue map(PerformanceIndicatorSpecificationRefOrValueFVO source); + + @SubclassMapping(source = PerformanceIndicatorSpecificationRefMVO.class, target = PerformanceIndicatorSpecificationRef.class) + @SubclassMapping(source = PerformanceIndicatorSpecificationMVO.class, target = PerformanceIndicatorSpecification.class) + PerformanceIndicatorSpecificationRefOrValue map(PerformanceIndicatorSpecificationRefOrValueMVO source); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMapper.java new file mode 100644 index 0000000..5b6ca64 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMapper.java @@ -0,0 +1,23 @@ +package org.etsi.osl.tmf.pm628.model; + +import org.mapstruct.*; + +@Mapper( + nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT, + nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, + subclassExhaustiveStrategy = SubclassExhaustiveStrategy.RUNTIME_EXCEPTION, + uses = {PartyRefOrPartyRoleRefMapper.class}) +public interface ResourceRefOrValueMapper { + + @SubclassMapping(source = DataAccessEndpointFVO.class, target = DataAccessEndpoint.class) + @SubclassMapping(source = LogicalResourceFVO.class, target = LogicalResource.class) + @SubclassMapping(source = ResourceFVO.class, target = Resource.class) + @SubclassMapping(source = ResourceRefFVO.class, target = ResourceRef.class) + ResourceRefOrValue map(ResourceRefOrValueFVO source); + + @SubclassMapping(source = DataAccessEndpointMVO.class, target = DataAccessEndpoint.class) + @SubclassMapping(source = LogicalResourceMVO.class, target = LogicalResource.class) + @SubclassMapping(source = ResourceMVO.class, target = Resource.class) + @SubclassMapping(source = ResourceRefMVO.class, target = ResourceRef.class) + ResourceRefOrValue map(ResourceRefOrValueMVO source); +} -- GitLab From 036e9cfd4b8544fbf4dfafccf86699b10d62c822 Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Wed, 10 Jul 2024 11:21:17 +0300 Subject: [PATCH 15/19] Classes extend Base Entities from common model, added annotations. --- .../tmf/pm628/model/DataAccessEndpoint.java | 28 +-- .../pm628/model/DataAccessEndpointFVO.java | 19 +- .../pm628/model/DataAccessEndpointMVO.java | 19 +- .../model/DataFilterAttributeStringArray.java | 4 +- .../osl/tmf/pm628/model/DataFilterMap.java | 93 ++------- .../osl/tmf/pm628/model/DataFilterMapFVO.java | 70 +++---- .../tmf/pm628/model/DataFilterMapItem.java | 4 + .../tmf/pm628/model/DataFilterMapItemFVO.java | 2 + .../osl/tmf/pm628/model/DataFilterMapMVO.java | 70 +++---- .../tmf/pm628/model/DataFilterTemplate.java | 163 ++-------------- .../pm628/model/DataFilterTemplateFVO.java | 71 +++---- .../pm628/model/DataFilterTemplateMVO.java | 102 +++++----- .../osl/tmf/pm628/model/LogicalResource.java | 181 +----------------- .../tmf/pm628/model/LogicalResourceFVO.java | 17 +- .../tmf/pm628/model/LogicalResourceMVO.java | 17 +- .../osl/tmf/pm628/model/ManagementJob.java | 144 +++----------- .../osl/tmf/pm628/model/ManagementJobFVO.java | 96 ++++++---- .../osl/tmf/pm628/model/ManagementJobMVO.java | 90 +++++---- .../pm628/model/MeasurementCollectionJob.java | 30 +-- .../model/MeasurementCollectionJobFVO.java | 30 +-- .../model/MeasurementCollectionJobMVO.java | 30 +-- .../model/MeasurementCollectionJobMapper.java | 8 +- .../osl/tmf/pm628/model/MeasurementJob.java | 34 +--- .../tmf/pm628/model/MeasurementJobFVO.java | 34 +--- .../tmf/pm628/model/MeasurementJobMVO.java | 32 +--- .../PerformanceIndicatorSpecification.java | 167 +++------------- .../PerformanceIndicatorSpecificationFVO.java | 94 +++++---- .../PerformanceIndicatorSpecificationMVO.java | 94 +++++---- .../PerformanceIndicatorSpecificationRef.java | 181 +++--------------- ...rformanceIndicatorSpecificationRefFVO.java | 108 ++++++----- ...rformanceIndicatorSpecificationRefMVO.java | 106 +++++----- ...manceIndicatorSpecificationRefOrValue.java | 2 +- ...ceIndicatorSpecificationRefOrValueFVO.java | 2 +- ...ceIndicatorSpecificationRefOrValueMVO.java | 2 +- .../etsi/osl/tmf/pm628/model/Resource.java | 178 ++++------------- .../etsi/osl/tmf/pm628/model/ResourceFVO.java | 109 +++++++---- .../etsi/osl/tmf/pm628/model/ResourceMVO.java | 109 +++++++---- .../etsi/osl/tmf/pm628/model/ResourceRef.java | 180 +++-------------- .../osl/tmf/pm628/model/ResourceRefFVO.java | 109 ++++++----- .../osl/tmf/pm628/model/ResourceRefMVO.java | 109 ++++++----- .../tmf/pm628/model/ResourceRefOrValue.java | 2 +- .../pm628/model/ResourceRefOrValueFVO.java | 2 +- .../pm628/model/ResourceRefOrValueMVO.java | 2 +- 43 files changed, 1010 insertions(+), 1934 deletions(-) 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 index 9437d98..78fb4bb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -20,10 +20,13 @@ import java.util.Objects; @Entity(name = "PMDAE") public class DataAccessEndpoint extends LogicalResource { + @JsonProperty("uri") private URI uri; + @JsonProperty("uriQueryFilter") private DataFilterMap uriQueryFilter; + @JsonProperty("apiType") private String apiType; public DataAccessEndpoint() { @@ -103,31 +106,6 @@ public class DataAccessEndpoint extends LogicalResource { return this; } - public DataAccessEndpoint atType(String atType) { - super.atType(atType); - return this; - } - - public DataAccessEndpoint atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public DataAccessEndpoint atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public DataAccessEndpoint href(String href) { - super.href(href); - return this; - } - - public DataAccessEndpoint id(String id) { - super.id(id); - return this; - } - public DataAccessEndpoint category(String category) { super.category(category); return this; 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 index 2365941..7ae1e05 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointFVO.java @@ -18,10 +18,13 @@ import java.util.Objects; @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() { @@ -101,18 +104,18 @@ public class DataAccessEndpointFVO extends LogicalResourceFVO { return this; } - public DataAccessEndpointFVO atType(String atType) { - super.atType(atType); + public DataAccessEndpointFVO type(String type) { + super.type(type); return this; } - public DataAccessEndpointFVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); + public DataAccessEndpointFVO baseType(String baseType) { + super.baseType(baseType); return this; } - public DataAccessEndpointFVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); + public DataAccessEndpointFVO schemaLocation(String schemaLocation) { + super.schemaLocation(schemaLocation); return this; } @@ -121,8 +124,8 @@ public class DataAccessEndpointFVO extends LogicalResourceFVO { return this; } - public DataAccessEndpointFVO id(String id) { - super.id(id); + public DataAccessEndpointFVO uuid(String uuid) { + super.uuid(uuid); return this; } 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 index fd0af88..5eb828e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMVO.java @@ -18,10 +18,13 @@ import java.util.Objects; @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() { @@ -101,18 +104,18 @@ public class DataAccessEndpointMVO extends LogicalResourceMVO { return this; } - public DataAccessEndpointMVO atType(String atType) { - super.atType(atType); + public DataAccessEndpointMVO type(String type) { + super.type(type); return this; } - public DataAccessEndpointMVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); + public DataAccessEndpointMVO baseType(String baseType) { + super.baseType(baseType); return this; } - public DataAccessEndpointMVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); + public DataAccessEndpointMVO schemaLocation(String schemaLocation) { + super.schemaLocation(schemaLocation); return this; } @@ -121,8 +124,8 @@ public class DataAccessEndpointMVO extends LogicalResourceMVO { return this; } - public DataAccessEndpointMVO id(String id) { - super.id(id); + public DataAccessEndpointMVO uuid(String uuid) { + super.uuid(uuid); return this; } 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 index 4ca6805..4e29bb4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java @@ -2,6 +2,7 @@ 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; @@ -13,10 +14,11 @@ import java.util.Objects; * DataFilterAttributeStringArray */ - +@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 DataFilterAttributeStringArray extends DataFilterAttribute { + @JsonProperty("value") @Valid private List value = new ArrayList<>(); 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 index a3e9b8f..f835e8e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -2,8 +2,11 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embeddable; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; +import org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; import java.util.ArrayList; @@ -14,16 +17,12 @@ 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 { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; +public class DataFilterMap extends BaseRootEntity { + @JsonProperty("mappings") + @ElementCollection(targetClass = DataFilterMapItem.class) @Valid private List<@Valid DataFilterMapItem> mappings = new ArrayList<>(); @@ -34,68 +33,8 @@ public class DataFilterMap { /** * Constructor with only required parameters */ - public DataFilterMap(String atType) { - this.atType = atType; - } - - public DataFilterMap 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 DataFilterMap 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 DataFilterMap 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 DataFilterMap(String type) { + this.type = type; } public DataFilterMap mappings(List<@Valid DataFilterMapItem> mappings) { @@ -135,24 +74,24 @@ public class DataFilterMap { return false; } DataFilterMap dataFilterMap = (DataFilterMap) o; - return Objects.equals(this.atType, dataFilterMap.atType) && - Objects.equals(this.atBaseType, dataFilterMap.atBaseType) && - Objects.equals(this.atSchemaLocation, dataFilterMap.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, mappings); + 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(atType)).append("\n"); - sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n"); - sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\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(); 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 index 2e7a0a8..66a2646 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapFVO.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("mappings") @Valid private List<@Valid DataFilterMapItemFVO> mappings = new ArrayList<>(); @@ -34,68 +38,68 @@ public class DataFilterMapFVO { /** * Constructor with only required parameters */ - public DataFilterMapFVO(String atType) { - this.atType = atType; + public DataFilterMapFVO(String type) { + this.type = type; } - public DataFilterMapFVO atType(String atType) { - this.atType = atType; + public DataFilterMapFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DataFilterMapFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DataFilterMapFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DataFilterMapFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DataFilterMapFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DataFilterMapFVO mappings(List<@Valid DataFilterMapItemFVO> mappings) { @@ -135,24 +139,24 @@ public class DataFilterMapFVO { return false; } DataFilterMapFVO dataFilterMapFVO = (DataFilterMapFVO) o; - return Objects.equals(this.atType, dataFilterMapFVO.atType) && - Objects.equals(this.atBaseType, dataFilterMapFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dataFilterMapFVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, mappings); + return Objects.hash(type, baseType, schemaLocation, mappings); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataFilterMapFVO {\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(" 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(); 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 index 3115115..f963b25 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java @@ -2,6 +2,7 @@ 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; @@ -11,12 +12,15 @@ 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 { + @JsonProperty("filterTemplate") private DataFilterTemplate filterTemplate; + @JsonProperty("stringArray") private DataFilterAttributeStringArray stringArray; public DataFilterMapItem filterTemplate(DataFilterTemplate filterTemplate) { 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 index a6116bf..90fb5e9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItemFVO.java @@ -17,8 +17,10 @@ import java.util.Objects; @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) { 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 index 87c8d1f..f7eed3d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapMVO.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("mappings") @Valid private List<@Valid DataFilterMapItemMVO> mappings = new ArrayList<>(); @@ -34,68 +38,68 @@ public class DataFilterMapMVO { /** * Constructor with only required parameters */ - public DataFilterMapMVO(String atType) { - this.atType = atType; + public DataFilterMapMVO(String type) { + this.type = type; } - public DataFilterMapMVO atType(String atType) { - this.atType = atType; + public DataFilterMapMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DataFilterMapMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DataFilterMapMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DataFilterMapMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DataFilterMapMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DataFilterMapMVO mappings(List<@Valid DataFilterMapItemMVO> mappings) { @@ -135,24 +139,24 @@ public class DataFilterMapMVO { return false; } DataFilterMapMVO dataFilterMapMVO = (DataFilterMapMVO) o; - return Objects.equals(this.atType, dataFilterMapMVO.atType) && - Objects.equals(this.atBaseType, dataFilterMapMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dataFilterMapMVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, mappings); + return Objects.hash(type, baseType, schemaLocation, mappings); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataFilterMapMVO {\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(" 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(); 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 index 522cac0..a4f1dfc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java @@ -2,8 +2,10 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.net.URI; @@ -14,22 +16,12 @@ import java.util.Objects; */ +@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 DataFilterTemplate { +public class DataFilterTemplate extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String id; - - private URI href; - - private String name; - - private String description; + @JsonProperty("description") + protected String description; public DataFilterTemplate() { super(); @@ -38,128 +30,8 @@ public class DataFilterTemplate { /** * Constructor with only required parameters */ - public DataFilterTemplate(String atType) { - this.atType = atType; - } - - public DataFilterTemplate 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 DataFilterTemplate 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 DataFilterTemplate 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 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(URI 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 URI getHref() { - return href; - } - - public void setHref(URI 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(String type) { + this.type = type; } public DataFilterTemplate description(String description) { @@ -173,7 +45,6 @@ public class DataFilterTemplate { */ @Schema(name = "description", description = "Description of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("description") public String getDescription() { return description; } @@ -191,10 +62,10 @@ public class DataFilterTemplate { return false; } DataFilterTemplate dataFilterTemplate = (DataFilterTemplate) o; - return Objects.equals(this.atType, dataFilterTemplate.atType) && - Objects.equals(this.atBaseType, dataFilterTemplate.atBaseType) && - Objects.equals(this.atSchemaLocation, dataFilterTemplate.atSchemaLocation) && - Objects.equals(this.id, dataFilterTemplate.id) && + return Objects.equals(this.type, dataFilterTemplate.type) && + Objects.equals(this.baseType, dataFilterTemplate.baseType) && + Objects.equals(this.schemaLocation, dataFilterTemplate.schemaLocation) && + Objects.equals(this.uuid, dataFilterTemplate.uuid) && Objects.equals(this.href, dataFilterTemplate.href) && Objects.equals(this.name, dataFilterTemplate.name) && Objects.equals(this.description, dataFilterTemplate.description); @@ -202,17 +73,17 @@ public class DataFilterTemplate { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, href, name, description); + return Objects.hash(type, baseType, schemaLocation, uuid, href, name, description); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataFilterTemplate {\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(" id: ").append(toIndentedString(id)).append("\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(" id: ").append(toIndentedString(uuid)).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"); 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 index 882462f..92b50e6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -15,14 +15,19 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("name") private String name; + @JsonProperty("description") private String description; public DataFilterTemplateFVO() { @@ -32,68 +37,68 @@ public class DataFilterTemplateFVO { /** * Constructor with only required parameters */ - public DataFilterTemplateFVO(String atType) { - this.atType = atType; + public DataFilterTemplateFVO(String type) { + this.type = type; } - public DataFilterTemplateFVO atType(String atType) { - this.atType = atType; + public DataFilterTemplateFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DataFilterTemplateFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DataFilterTemplateFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DataFilterTemplateFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DataFilterTemplateFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DataFilterTemplateFVO name(String name) { @@ -145,25 +150,25 @@ public class DataFilterTemplateFVO { return false; } DataFilterTemplateFVO dataFilterTemplateFVO = (DataFilterTemplateFVO) o; - return Objects.equals(this.atType, dataFilterTemplateFVO.atType) && - Objects.equals(this.atBaseType, dataFilterTemplateFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dataFilterTemplateFVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, name, description); + return Objects.hash(type, baseType, schemaLocation, name, description); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataFilterTemplateFVO {\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(" 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("}"); 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 index 8a8c51d..fca9a28 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -15,16 +15,22 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; + @JsonProperty("description") private String description; public DataFilterTemplateMVO() { @@ -34,72 +40,72 @@ public class DataFilterTemplateMVO { /** * Constructor with only required parameters */ - public DataFilterTemplateMVO(String atType) { - this.atType = atType; + public DataFilterTemplateMVO(String type) { + this.type = type; } - public DataFilterTemplateMVO atType(String atType) { - this.atType = atType; + public DataFilterTemplateMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @return type */ - @NotNull + @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DataFilterTemplateMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DataFilterTemplateMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DataFilterTemplateMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DataFilterTemplateMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public DataFilterTemplateMVO id(String id) { - this.id = id; + public DataFilterTemplateMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -107,15 +113,15 @@ public class DataFilterTemplateMVO { * 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 String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public DataFilterTemplateMVO name(String name) { @@ -127,7 +133,7 @@ public class DataFilterTemplateMVO { * 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() { @@ -147,7 +153,7 @@ public class DataFilterTemplateMVO { * Description of this DataFilterTemplate * @return description */ - + @Schema(name = "description", description = "Description of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("description") public String getDescription() { @@ -167,27 +173,27 @@ public class DataFilterTemplateMVO { return false; } DataFilterTemplateMVO dataFilterTemplateMVO = (DataFilterTemplateMVO) o; - return Objects.equals(this.atType, dataFilterTemplateMVO.atType) && - Objects.equals(this.atBaseType, dataFilterTemplateMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dataFilterTemplateMVO.atSchemaLocation) && - Objects.equals(this.id, dataFilterTemplateMVO.id) && + return Objects.equals(this.type, dataFilterTemplateMVO.type) && + Objects.equals(this.baseType, dataFilterTemplateMVO.baseType) && + Objects.equals(this.schemaLocation, dataFilterTemplateMVO.schemaLocation) && + Objects.equals(this.uuid, dataFilterTemplateMVO.uuid) && Objects.equals(this.name, dataFilterTemplateMVO.name) && Objects.equals(this.description, dataFilterTemplateMVO.description); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, name, description); + return Objects.hash(type, baseType, schemaLocation, uuid, name, description); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DataFilterTemplateMVO {\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(" id: ").append(toIndentedString(id)).append("\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(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java index e7816ce..31226fb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java @@ -27,6 +27,7 @@ import java.util.Objects; @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 LogicalResource extends Resource { + @JsonProperty("value") private String value; public LogicalResource() { @@ -60,186 +61,6 @@ public class LogicalResource extends Resource { this.value = value; } - - public LogicalResource atType(String atType) { - super.atType(atType); - return this; - } - - public LogicalResource atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public LogicalResource atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public LogicalResource href(String href) { - super.href(href); - return this; - } - - public LogicalResource id(String id) { - super.id(id); - return this; - } - - public LogicalResource category(String category) { - super.category(category); - return this; - } - - public LogicalResource description(String description) { - super.description(description); - return this; - } - - public LogicalResource name(String name) { - super.name(name); - return this; - } - - public LogicalResource endOperatingDate(OffsetDateTime endOperatingDate) { - super.endOperatingDate(endOperatingDate); - return this; - } - - public LogicalResource administrativeState(ResourceAdministrativeStateType administrativeState) { - super.administrativeState(administrativeState); - return this; - } - - public LogicalResource operationalState(ResourceOperationalStateType operationalState) { - super.operationalState(operationalState); - return this; - } - - public LogicalResource resourceStatus(ResourceStatusType resourceStatus) { - super.resourceStatus(resourceStatus); - return this; - } - - public LogicalResource usageState(ResourceUsageStateType usageState) { - super.usageState(usageState); - return this; - } - - public LogicalResource validFor(TimePeriod validFor) { - super.validFor(validFor); - return this; - } - - public LogicalResource note(List note) { - super.note(note); - return this; - } - - public LogicalResource addNoteItem(Note noteItem) { - super.addNoteItem(noteItem); - return this; - } - - public LogicalResource resourceOrderItem(List resourceOrderItem) { - super.resourceOrderItem(resourceOrderItem); - return this; - } - - public LogicalResource addResourceOrderItemItem(RelatedResourceOrderItem resourceOrderItemItem) { - super.addResourceOrderItemItem(resourceOrderItemItem); - return this; - } - - public LogicalResource place(List place) { - super.place(place); - return this; - } - - public LogicalResource addPlaceItem(RelatedPlaceRef placeItem) { - super.addPlaceItem(placeItem); - return this; - } - - public LogicalResource relatedParty(List relatedParty) { - super.relatedParty(relatedParty); - return this; - } - - public LogicalResource addRelatedPartyItem(RelatedPartyRefOrPartyRoleRef relatedPartyItem) { - super.addRelatedPartyItem(relatedPartyItem); - return this; - } - - public LogicalResource resourceRelationship(List resourceRelationship) { - super.resourceRelationship(resourceRelationship); - return this; - } - - public LogicalResource addResourceRelationshipItem(ResourceRelationship resourceRelationshipItem) { - super.addResourceRelationshipItem(resourceRelationshipItem); - return this; - } - - public LogicalResource resourceCharacteristic(List resourceCharacteristic) { - super.resourceCharacteristic(resourceCharacteristic); - return this; - } - - public LogicalResource addResourceCharacteristicItem(Characteristic resourceCharacteristicItem) { - super.addResourceCharacteristicItem(resourceCharacteristicItem); - return this; - } - - public LogicalResource attachment(List attachment) { - super.attachment(attachment); - return this; - } - - public LogicalResource addAttachmentItem(AttachmentRef attachmentItem) { - super.addAttachmentItem(attachmentItem); - return this; - } - - public LogicalResource resourceSpecification(ResourceSpecificationRef resourceSpecification) { - super.resourceSpecification(resourceSpecification); - return this; - } - - public LogicalResource startOperatingDate(OffsetDateTime startOperatingDate) { - super.startOperatingDate(startOperatingDate); - return this; - } - - public LogicalResource resourceVersion(String resourceVersion) { - super.resourceVersion(resourceVersion); - return this; - } - - public LogicalResource activationFeature(List activationFeature) { - super.activationFeature(activationFeature); - return this; - } - - public LogicalResource addActivationFeatureItem(Feature activationFeatureItem) { - super.addActivationFeatureItem(activationFeatureItem); - return this; - } - - public LogicalResource intent(IntentRef intent) { - super.intent(intent); - return this; - } - - public LogicalResource externalIdentifier(List externalIdentifier) { - super.externalIdentifier(externalIdentifier); - return this; - } - - public LogicalResource addExternalIdentifierItem(ExternalIdentifier externalIdentifierItem) { - super.addExternalIdentifierItem(externalIdentifierItem); - return this; - } @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java index f7eb3bb..eabad4f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceFVO.java @@ -27,6 +27,7 @@ import java.util.Objects; @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 LogicalResourceFVO extends ResourceFVO { + @JsonProperty("value") private String value; public LogicalResourceFVO() { @@ -61,18 +62,18 @@ public class LogicalResourceFVO extends ResourceFVO { } - public LogicalResourceFVO atType(String atType) { - super.atType(atType); + public LogicalResourceFVO type(String type) { + super.type(type); return this; } - public LogicalResourceFVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); + public LogicalResourceFVO baseType(String baseType) { + super.baseType(baseType); return this; } - public LogicalResourceFVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); + public LogicalResourceFVO schemaLocation(String schemaLocation) { + super.schemaLocation(schemaLocation); return this; } @@ -81,8 +82,8 @@ public class LogicalResourceFVO extends ResourceFVO { return this; } - public LogicalResourceFVO id(String id) { - super.id(id); + public LogicalResourceFVO uuid(String uuid) { + super.uuid(uuid); return this; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java index ffd97ef..30d3c6f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResourceMVO.java @@ -27,6 +27,7 @@ import java.util.Objects; @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 LogicalResourceMVO extends ResourceMVO { + @JsonProperty("value") private String value; public LogicalResourceMVO() { @@ -61,18 +62,18 @@ public class LogicalResourceMVO extends ResourceMVO { } - public LogicalResourceMVO atType(String atType) { - super.atType(atType); + public LogicalResourceMVO type(String type) { + super.type(type); return this; } - public LogicalResourceMVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); + public LogicalResourceMVO baseType(String baseType) { + super.baseType(baseType); return this; } - public LogicalResourceMVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); + public LogicalResourceMVO schemaLocation(String schemaLocation) { + super.schemaLocation(schemaLocation); return this; } @@ -81,8 +82,8 @@ public class LogicalResourceMVO extends ResourceMVO { return this; } - public LogicalResourceMVO id(String id) { - super.id(id); + public LogicalResourceMVO uuid(String uuid) { + super.uuid(uuid); return this; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index a0c08cf..beac72d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -10,6 +10,7 @@ import jakarta.validation.constraints.Max; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; +import org.etsi.osl.tmf.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; @@ -34,38 +35,37 @@ import java.util.Objects; }) @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 ManagementJob { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; +public class ManagementJob extends BaseRootEntity { + @JsonProperty("adminState") private AdministrativeState adminState; + @JsonProperty("creationTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime creationTime; + @JsonProperty("executionState") private ExecutionStateType executionState; + @JsonProperty("fileTransferData") @Valid private List fileTransferData = new ArrayList<>(); + @JsonProperty("dataAccessEndpoint") @Valid private List dataAccessEndpoint = new ArrayList<>(); + @JsonProperty("jobId") private String jobId; + @JsonProperty("jobPriority") private Integer jobPriority = 5; + @JsonProperty("lastModifiedTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime lastModifiedTime; + @JsonProperty("scheduleDefinition") @Valid private List scheduleDefinition = new ArrayList<>(); @@ -76,108 +76,8 @@ public class ManagementJob { /** * Constructor with only required parameters */ - public ManagementJob(String atType) { - this.atType = atType; - } - - public ManagementJob 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 ManagementJob 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 ManagementJob 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 ManagementJob 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 ManagementJob 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 ManagementJob(String type) { + this.type = type; } public ManagementJob adminState(AdministrativeState adminState) { @@ -395,11 +295,11 @@ public class ManagementJob { return false; } ManagementJob managementJob = (ManagementJob) o; - return Objects.equals(this.atType, managementJob.atType) && - Objects.equals(this.atBaseType, managementJob.atBaseType) && - Objects.equals(this.atSchemaLocation, managementJob.atSchemaLocation) && + return Objects.equals(this.type, managementJob.type) && + Objects.equals(this.baseType, managementJob.baseType) && + Objects.equals(this.schemaLocation, managementJob.schemaLocation) && Objects.equals(this.href, managementJob.href) && - Objects.equals(this.id, managementJob.id) && + Objects.equals(this.uuid, managementJob.uuid) && Objects.equals(this.adminState, managementJob.adminState) && Objects.equals(this.creationTime, managementJob.creationTime) && Objects.equals(this.executionState, managementJob.executionState) && @@ -413,18 +313,18 @@ public class ManagementJob { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, adminState, creationTime, executionState, fileTransferData, dataAccessEndpoint, jobId, jobPriority, lastModifiedTime, scheduleDefinition); + return Objects.hash(type, baseType, schemaLocation, href, uuid, adminState, creationTime, executionState, fileTransferData, dataAccessEndpoint, jobId, jobPriority, lastModifiedTime, scheduleDefinition); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ManagementJob {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java index 056d45c..2172a35 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobFVO.java @@ -36,36 +36,50 @@ import java.util.Objects; @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 ManagementJobFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("adminState") private AdministrativeState adminState; + @JsonProperty("creationTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime creationTime; + @JsonProperty("executionState") private ExecutionStateType executionState; + @JsonProperty("fileTransferData") @Valid private List fileTransferData = new ArrayList<>(); + @JsonProperty("dataAccessEndpoint") @Valid private List dataAccessEndpoint = new ArrayList<>(); + @JsonProperty("jobId") private String jobId; + @JsonProperty("jobPriority") private Integer jobPriority = 5; + @JsonProperty("lastModifiedTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime lastModifiedTime; + @JsonProperty("scheduleDefinition") @Valid private List scheduleDefinition = new ArrayList<>(); @@ -76,12 +90,12 @@ public class ManagementJobFVO { /** * Constructor with only required parameters */ - public ManagementJobFVO(String atType) { - this.atType = atType; + public ManagementJobFVO(String type) { + this.type = type; } - public ManagementJobFVO atType(String atType) { - this.atType = atType; + public ManagementJobFVO type(String type) { + this.type = type; return this; } @@ -92,16 +106,16 @@ public class ManagementJobFVO { @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ManagementJobFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ManagementJobFVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -112,16 +126,16 @@ public class ManagementJobFVO { @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ManagementJobFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ManagementJobFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -132,12 +146,12 @@ public class ManagementJobFVO { @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ManagementJobFVO href(String href) { @@ -160,8 +174,8 @@ public class ManagementJobFVO { this.href = href; } - public ManagementJobFVO id(String id) { - this.id = id; + public ManagementJobFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -170,14 +184,14 @@ public class ManagementJobFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ManagementJobFVO adminState(AdministrativeState adminState) { @@ -395,11 +409,11 @@ public class ManagementJobFVO { return false; } ManagementJobFVO managementJobFVO = (ManagementJobFVO) o; - return Objects.equals(this.atType, managementJobFVO.atType) && - Objects.equals(this.atBaseType, managementJobFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, managementJobFVO.atSchemaLocation) && + return Objects.equals(this.type, managementJobFVO.type) && + Objects.equals(this.baseType, managementJobFVO.baseType) && + Objects.equals(this.schemaLocation, managementJobFVO.schemaLocation) && Objects.equals(this.href, managementJobFVO.href) && - Objects.equals(this.id, managementJobFVO.id) && + Objects.equals(this.uuid, managementJobFVO.uuid) && Objects.equals(this.adminState, managementJobFVO.adminState) && Objects.equals(this.creationTime, managementJobFVO.creationTime) && Objects.equals(this.executionState, managementJobFVO.executionState) && @@ -413,18 +427,18 @@ public class ManagementJobFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, adminState, creationTime, executionState, fileTransferData, dataAccessEndpoint, jobId, jobPriority, lastModifiedTime, scheduleDefinition); + return Objects.hash(type, baseType, schemaLocation, href, uuid, adminState, creationTime, executionState, fileTransferData, dataAccessEndpoint, jobId, jobPriority, lastModifiedTime, scheduleDefinition); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ManagementJobFVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" adminState: ").append(toIndentedString(adminState)).append("\n"); sb.append(" creationTime: ").append(toIndentedString(creationTime)).append("\n"); sb.append(" executionState: ").append(toIndentedString(executionState)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 97e3de3..9eebaa9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -32,22 +32,30 @@ import java.util.Objects; @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 ManagementJobMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("fileTransferData") @Valid private List fileTransferData = new ArrayList<>(); + @JsonProperty("dataAccessEndpoint") @Valid private List dataAccessEndpoint = new ArrayList<>(); + @JsonProperty("jobId") @Valid private List scheduleDefinition = new ArrayList<>(); @@ -58,12 +66,12 @@ public class ManagementJobMVO { /** * Constructor with only required parameters */ - public ManagementJobMVO(String atType) { - this.atType = atType; + public ManagementJobMVO(String type) { + this.type = type; } - public ManagementJobMVO atType(String atType) { - this.atType = atType; + public ManagementJobMVO type(String type) { + this.type = type; return this; } @@ -74,16 +82,16 @@ public class ManagementJobMVO { @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ManagementJobMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ManagementJobMVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -94,16 +102,16 @@ public class ManagementJobMVO { @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ManagementJobMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ManagementJobMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -114,12 +122,12 @@ public class ManagementJobMVO { @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ManagementJobMVO href(String href) { @@ -142,8 +150,8 @@ public class ManagementJobMVO { this.href = href; } - public ManagementJobMVO id(String id) { - this.id = id; + public ManagementJobMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -152,14 +160,14 @@ public class ManagementJobMVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ManagementJobMVO fileTransferData(List fileTransferData) { @@ -255,11 +263,11 @@ public class ManagementJobMVO { return false; } ManagementJobMVO managementJobMVO = (ManagementJobMVO) o; - return Objects.equals(this.atType, managementJobMVO.atType) && - Objects.equals(this.atBaseType, managementJobMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, managementJobMVO.atSchemaLocation) && + return Objects.equals(this.type, managementJobMVO.type) && + Objects.equals(this.baseType, managementJobMVO.baseType) && + Objects.equals(this.schemaLocation, managementJobMVO.schemaLocation) && Objects.equals(this.href, managementJobMVO.href) && - Objects.equals(this.id, managementJobMVO.id) && + Objects.equals(this.uuid, managementJobMVO.uuid) && Objects.equals(this.fileTransferData, managementJobMVO.fileTransferData) && Objects.equals(this.dataAccessEndpoint, managementJobMVO.dataAccessEndpoint) && Objects.equals(this.scheduleDefinition, managementJobMVO.scheduleDefinition); @@ -267,18 +275,18 @@ public class ManagementJobMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, fileTransferData, dataAccessEndpoint, scheduleDefinition); + return Objects.hash(type, baseType, schemaLocation, href, uuid, fileTransferData, dataAccessEndpoint, scheduleDefinition); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ManagementJobMVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" fileTransferData: ").append(toIndentedString(fileTransferData)).append("\n"); sb.append(" dataAccessEndpoint: ").append(toIndentedString(dataAccessEndpoint)).append("\n"); sb.append(" scheduleDefinition: ").append(toIndentedString(scheduleDefinition)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index 75d1fff..ea4d4be 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -19,14 +19,19 @@ import java.util.Objects; @Entity(name = "pmMeasCollJob") public class MeasurementCollectionJob extends MeasurementJob implements PatchMeasurementCollectionJob200Response { + @JsonProperty("outputFormat") private String outputFormat; + @JsonProperty("reportingPeriod") private ReportingPeriod reportingPeriod; + @JsonProperty("jobCollectionFilter") private DataFilterMap jobCollectionFilter; + @JsonProperty("searchTaskFilter") private DataFilterMap searchTaskFilter; + @JsonProperty("jobOnDemand") private Boolean jobOnDemand = false; public MeasurementCollectionJob() { @@ -196,31 +201,6 @@ public class MeasurementCollectionJob extends MeasurementJob implements PatchMea return this; } - public MeasurementCollectionJob atType(String atType) { - super.atType(atType); - return this; - } - - public MeasurementCollectionJob atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public MeasurementCollectionJob atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public MeasurementCollectionJob href(String href) { - super.href(href); - return this; - } - - public MeasurementCollectionJob id(String id) { - super.id(id); - return this; - } - public MeasurementCollectionJob adminState(AdministrativeState adminState) { super.adminState(adminState); return this; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java index 8236e8e..9da9af1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobFVO.java @@ -17,14 +17,19 @@ import java.util.Objects; @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 MeasurementCollectionJobFVO extends MeasurementJobFVO { + @JsonProperty("outputFormat") private String outputFormat; + @JsonProperty("reportingPeriod") private ReportingPeriod reportingPeriod; + @JsonProperty("jobCollectionFilter") private DataFilterMapFVO jobCollectionFilter; + @JsonProperty("searchTaskFilter") private DataFilterMapFVO searchTaskFilter; + @JsonProperty("jobOnDemand") private Boolean jobOnDemand = false; public MeasurementCollectionJobFVO() { @@ -194,31 +199,6 @@ public class MeasurementCollectionJobFVO extends MeasurementJobFVO { return this; } - public MeasurementCollectionJobFVO atType(String atType) { - super.atType(atType); - return this; - } - - public MeasurementCollectionJobFVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public MeasurementCollectionJobFVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public MeasurementCollectionJobFVO href(String href) { - super.href(href); - return this; - } - - public MeasurementCollectionJobFVO id(String id) { - super.id(id); - return this; - } - public MeasurementCollectionJobFVO adminState(AdministrativeState adminState) { super.adminState(adminState); return this; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java index eca4dbe..9ac755d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMVO.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 MeasurementCollectionJobMVO extends MeasurementJobMVO { + @JsonProperty("outputFormat") private String outputFormat; + @JsonProperty("reportingPeriod") private ReportingPeriod reportingPeriod; + @JsonProperty("jobCollectionFilter") private DataFilterMapMVO jobCollectionFilter; + @JsonProperty("searchTaskFilter") private DataFilterMapMVO searchTaskFilter; + @JsonProperty("jobOnDemand") private Boolean jobOnDemand = false; public MeasurementCollectionJobMVO() { @@ -183,31 +188,6 @@ public class MeasurementCollectionJobMVO extends MeasurementJobMVO { return this; } - public MeasurementCollectionJobMVO atType(String atType) { - super.atType(atType); - return this; - } - - public MeasurementCollectionJobMVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public MeasurementCollectionJobMVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public MeasurementCollectionJobMVO href(String href) { - super.href(href); - return this; - } - - public MeasurementCollectionJobMVO id(String id) { - super.id(id); - return this; - } - public MeasurementCollectionJobMVO fileTransferData(List fileTransferData) { super.fileTransferData(fileTransferData); return this; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java index cd55883..a1244ba 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJobMapper.java @@ -16,11 +16,11 @@ public interface MeasurementCollectionJobMapper { MeasurementCollectionJob createMeasurementCollectionJob(MeasurementCollectionJobFVO measurementCollectionJobFVO); - @Mapping(target = "atType", ignore = true) - @Mapping(target = "atBaseType", ignore = true) - @Mapping(target = "atSchemaLocation", ignore = true) + @Mapping(target = "type", ignore = true) + @Mapping(target = "baseType", ignore = true) + @Mapping(target = "schemaLocation", ignore = true) @Mapping(target = "href", ignore = true) - @Mapping(target = "id", ignore = true) + @Mapping(target = "uuid", ignore = true) @BeanMapping(nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE) MeasurementCollectionJob updateMeasurementCollectionJob(MeasurementCollectionJobMVO measurementCollectionJobMVO, @MappingTarget MeasurementCollectionJob measurementCollectionJob); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index db854bf..b1fc6b6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -30,23 +30,31 @@ import java.util.Objects; @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 MeasurementJob extends ManagementJob { + @JsonProperty("consumingApplicationId") private String consumingApplicationId; + @JsonProperty("producingApplicationId") private String producingApplicationId; + @JsonProperty("granularity") private Granularity granularity; + @JsonProperty("performanceIndicatorGroupSpecification") @Valid private List performanceIndicatorGroupSpecification = new ArrayList<>(); + @JsonProperty("performanceIndicatorSpecification") @Valid private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); + @JsonProperty("trackingRecord") @Valid private List trackingRecord = new ArrayList<>(); + @JsonProperty("monitoredInstancesCriteria") private MonitoredInstancesCriteria monitoredInstancesCriteria; + @JsonProperty("monitoredClassCriteria") private MonitoredClassCriteria monitoredClassCriteria; public MeasurementJob() { @@ -244,32 +252,6 @@ public class MeasurementJob extends ManagementJob { this.monitoredClassCriteria = monitoredClassCriteria; } - - public MeasurementJob atType(String atType) { - super.atType(atType); - return this; - } - - public MeasurementJob atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public MeasurementJob atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public MeasurementJob href(String href) { - super.href(href); - return this; - } - - public MeasurementJob id(String id) { - super.id(id); - return this; - } - public MeasurementJob adminState(AdministrativeState adminState) { super.adminState(adminState); return this; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java index 081cda5..db2ace7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobFVO.java @@ -31,23 +31,31 @@ import java.util.Objects; @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 MeasurementJobFVO extends ManagementJobFVO { + @JsonProperty("consumingApplicationId") private String consumingApplicationId; + @JsonProperty("producingApplicationId") private String producingApplicationId; + @JsonProperty("granularity") private Granularity granularity; + @JsonProperty("performanceIndicatorGroupSpecification") @Valid private List performanceIndicatorGroupSpecification = new ArrayList<>(); + @JsonProperty("performanceIndicatorSpecification") @Valid private List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification = new ArrayList<>(); + @JsonProperty("trackingRecord") @Valid private List trackingRecord = new ArrayList<>(); + @JsonProperty("monitoredInstancesCriteria") private MonitoredInstancesCriteriaFVO monitoredInstancesCriteria; + @JsonProperty("monitoredClassCriteria") private MonitoredClassCriteriaFVO monitoredClassCriteria; public MeasurementJobFVO() { @@ -248,32 +256,6 @@ public class MeasurementJobFVO extends ManagementJobFVO { this.monitoredClassCriteria = monitoredClassCriteria; } - - public MeasurementJobFVO atType(String atType) { - super.atType(atType); - return this; - } - - public MeasurementJobFVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public MeasurementJobFVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public MeasurementJobFVO href(String href) { - super.href(href); - return this; - } - - public MeasurementJobFVO id(String id) { - super.id(id); - return this; - } - public MeasurementJobFVO adminState(AdministrativeState adminState) { super.adminState(adminState); return this; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java index 676cab0..9b76533 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJobMVO.java @@ -29,18 +29,24 @@ import java.util.Objects; @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 MeasurementJobMVO extends ManagementJobMVO { + @JsonProperty("consumingApplicationId") private String consumingApplicationId; + @JsonProperty("producingApplicationId") private String producingApplicationId; + @JsonProperty("granularity") private Granularity granularity; + @JsonProperty("performanceIndicatorGroupSpecification") @Valid private List performanceIndicatorGroupSpecification = new ArrayList<>(); + @JsonProperty("performanceIndicatorSpecification") @Valid private List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification = new ArrayList<>(); + @JsonProperty("trackingRecord") @Valid private List trackingRecord = new ArrayList<>(); @@ -199,32 +205,6 @@ public class MeasurementJobMVO extends ManagementJobMVO { this.trackingRecord = trackingRecord; } - - public MeasurementJobMVO atType(String atType) { - super.atType(atType); - return this; - } - - public MeasurementJobMVO atBaseType(String atBaseType) { - super.atBaseType(atBaseType); - return this; - } - - public MeasurementJobMVO atSchemaLocation(String atSchemaLocation) { - super.atSchemaLocation(atSchemaLocation); - return this; - } - - public MeasurementJobMVO href(String href) { - super.href(href); - return this; - } - - public MeasurementJobMVO id(String id) { - super.id(id); - return this; - } - public MeasurementJobMVO fileTransferData(List fileTransferData) { super.fileTransferData(fileTransferData); return this; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index c3d8b58..743da1a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; +import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.ArrayList; @@ -17,38 +18,36 @@ import java.util.Objects; @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 PerformanceIndicatorSpecification implements PatchPerformanceIndicatorSpecification200Response, PerformanceIndicatorSpecificationRefOrValue { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; +public class PerformanceIndicatorSpecification extends BaseRootNamedEntity implements PatchPerformanceIndicatorSpecification200Response, PerformanceIndicatorSpecificationRefOrValue { + @JsonProperty("description") private String description; + @JsonProperty("perspective") private String perspective; + @JsonProperty("indicatorCategory") private String indicatorCategory; + @JsonProperty("indicatorType") private IndicatorType indicatorType; + @JsonProperty("derivationAlgorithm") private String derivationAlgorithm; + @JsonProperty("derivationMethod") private String derivationMethod; + @JsonProperty("validFor") private TimePeriod validFor; + @JsonProperty("collectionType") private CollectionType collectionType; + @JsonProperty("indicatorUnit") private String indicatorUnit; + @JsonProperty("performanceIndicatorSpecRelationship") @Valid private List performanceIndicatorSpecRelationship = new ArrayList<>(); @@ -59,128 +58,8 @@ public class PerformanceIndicatorSpecification implements PatchPerformanceIndica /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecification(String atType) { - this.atType = atType; - } - - public PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification 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 PerformanceIndicatorSpecification name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications. - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorSpecification is known and distinguished from other PerformanceIndicatorSpecifications.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; + public PerformanceIndicatorSpecification(String type) { + this.type = type; } public PerformanceIndicatorSpecification description(String description) { @@ -400,11 +279,11 @@ public class PerformanceIndicatorSpecification implements PatchPerformanceIndica return false; } PerformanceIndicatorSpecification performanceIndicatorSpecification = (PerformanceIndicatorSpecification) o; - return Objects.equals(this.atType, performanceIndicatorSpecification.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecification.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecification.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecification.type) && + Objects.equals(this.baseType, performanceIndicatorSpecification.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecification.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecification.href) && - Objects.equals(this.id, performanceIndicatorSpecification.id) && + Objects.equals(this.uuid, performanceIndicatorSpecification.uuid) && Objects.equals(this.name, performanceIndicatorSpecification.name) && Objects.equals(this.description, performanceIndicatorSpecification.description) && Objects.equals(this.perspective, performanceIndicatorSpecification.perspective) && @@ -420,18 +299,18 @@ public class PerformanceIndicatorSpecification implements PatchPerformanceIndica @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecification {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java index a1d28d4..ef1f514 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java @@ -19,36 +19,52 @@ import java.util.Objects; @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 PerformanceIndicatorSpecificationFVO implements PerformanceIndicatorSpecificationRefOrValueFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; + @JsonProperty("description") private String description; + @JsonProperty("perspective") private String perspective; + @JsonProperty("indicatorCategory") private String indicatorCategory; + @JsonProperty("indicatorType") private IndicatorType indicatorType; + @JsonProperty("derivationAlgorithm") private String derivationAlgorithm; + @JsonProperty("derivationMethod") private String derivationMethod; + @JsonProperty("validFor") private TimePeriod validFor; + @JsonProperty("collectionType") private CollectionType collectionType; + @JsonProperty("indicatorUnit") private String indicatorUnit; + @JsonProperty("performanceIndicatorSpecRelationship") @Valid private List performanceIndicatorSpecRelationship = new ArrayList<>(); @@ -59,8 +75,8 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecificationFVO(String atType, String name, String indicatorCategory, IndicatorType indicatorType, CollectionType collectionType, String indicatorUnit) { - this.atType = atType; + public PerformanceIndicatorSpecificationFVO(String type, String name, String indicatorCategory, IndicatorType indicatorType, CollectionType collectionType, String indicatorUnit) { + this.type = type; this.name = name; this.indicatorCategory = indicatorCategory; this.indicatorType = indicatorType; @@ -68,8 +84,8 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato this.indicatorUnit = indicatorUnit; } - public PerformanceIndicatorSpecificationFVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationFVO type(String type) { + this.type = type; return this; } @@ -80,16 +96,16 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorSpecificationFVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -100,16 +116,16 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorSpecificationFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorSpecificationFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -120,12 +136,12 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorSpecificationFVO href(String href) { @@ -148,8 +164,8 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato this.href = href; } - public PerformanceIndicatorSpecificationFVO id(String id) { - this.id = id; + public PerformanceIndicatorSpecificationFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -160,12 +176,12 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public String getId() { - return id; + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorSpecificationFVO name(String name) { @@ -405,11 +421,11 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato return false; } PerformanceIndicatorSpecificationFVO performanceIndicatorSpecificationFVO = (PerformanceIndicatorSpecificationFVO) o; - return Objects.equals(this.atType, performanceIndicatorSpecificationFVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationFVO.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecificationFVO.type) && + Objects.equals(this.baseType, performanceIndicatorSpecificationFVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecificationFVO.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecificationFVO.href) && - Objects.equals(this.id, performanceIndicatorSpecificationFVO.id) && + Objects.equals(this.uuid, performanceIndicatorSpecificationFVO.uuid) && Objects.equals(this.name, performanceIndicatorSpecificationFVO.name) && Objects.equals(this.description, performanceIndicatorSpecificationFVO.description) && Objects.equals(this.perspective, performanceIndicatorSpecificationFVO.perspective) && @@ -425,18 +441,18 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecificationFVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java index 3bf64db..14df241 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMVO.java @@ -19,36 +19,52 @@ import java.util.Objects; @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 PerformanceIndicatorSpecificationMVO implements PerformanceIndicatorSpecificationRefOrValueMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; + @JsonProperty("description") private String description; + @JsonProperty("perspective") private String perspective; + @JsonProperty("indicatorCategory") private String indicatorCategory; + @JsonProperty("indicatorType") private IndicatorType indicatorType; + @JsonProperty("derivationAlgorithm") private String derivationAlgorithm; + @JsonProperty("derivationMethod") private String derivationMethod; + @JsonProperty("validFor") private TimePeriod validFor; + @JsonProperty("collectionType") private CollectionType collectionType; + @JsonProperty("indicatorUnit") private String indicatorUnit; + @JsonProperty("performanceIndicatorSpecRelationship") @Valid private List performanceIndicatorSpecRelationship = new ArrayList<>(); @@ -59,12 +75,12 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecificationMVO(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationMVO(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationMVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationMVO type(String type) { + this.type = type; return this; } @@ -75,16 +91,16 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorSpecificationMVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -95,16 +111,16 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato @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 String getbaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setbaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorSpecificationMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorSpecificationMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -115,12 +131,12 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorSpecificationMVO href(String href) { @@ -143,8 +159,8 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato this.href = href; } - public PerformanceIndicatorSpecificationMVO id(String id) { - this.id = id; + public PerformanceIndicatorSpecificationMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -155,12 +171,12 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public String getId() { - return id; + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorSpecificationMVO name(String name) { @@ -400,11 +416,11 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato return false; } PerformanceIndicatorSpecificationMVO performanceIndicatorSpecificationMVO = (PerformanceIndicatorSpecificationMVO) o; - return Objects.equals(this.atType, performanceIndicatorSpecificationMVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationMVO.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecificationMVO.type) && + Objects.equals(this.baseType, performanceIndicatorSpecificationMVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecificationMVO.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecificationMVO.href) && - Objects.equals(this.id, performanceIndicatorSpecificationMVO.id) && + Objects.equals(this.uuid, performanceIndicatorSpecificationMVO.uuid) && Objects.equals(this.name, performanceIndicatorSpecificationMVO.name) && Objects.equals(this.description, performanceIndicatorSpecificationMVO.description) && Objects.equals(this.perspective, performanceIndicatorSpecificationMVO.perspective) && @@ -420,18 +436,18 @@ public class PerformanceIndicatorSpecificationMVO implements PerformanceIndicato @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, description, perspective, indicatorCategory, indicatorType, derivationAlgorithm, derivationMethod, validFor, collectionType, indicatorUnit, performanceIndicatorSpecRelationship); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecificationMVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" perspective: ").append(toIndentedString(perspective)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index 043e0e2..7c05669 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,22 +14,12 @@ import java.util.Objects; @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 PerformanceIndicatorSpecificationRef implements PerformanceIndicatorSpecificationRefOrValue { +public class PerformanceIndicatorSpecificationRef extends BaseRootNamedEntity implements PerformanceIndicatorSpecificationRefOrValue { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public PerformanceIndicatorSpecificationRef() { @@ -38,149 +29,29 @@ public class PerformanceIndicatorSpecificationRef implements PerformanceIndicato /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecificationRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PerformanceIndicatorSpecificationRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorSpecificationRef 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 PerformanceIndicatorSpecificationRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public PerformanceIndicatorSpecificationRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PerformanceIndicatorSpecificationRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PerformanceIndicatorSpecificationRef version(String version) { @@ -212,32 +83,32 @@ public class PerformanceIndicatorSpecificationRef implements PerformanceIndicato return false; } PerformanceIndicatorSpecificationRef performanceIndicatorSpecificationRef = (PerformanceIndicatorSpecificationRef) o; - return Objects.equals(this.atType, performanceIndicatorSpecificationRef.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRef.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRef.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecificationRef.type) && + Objects.equals(this.baseType, performanceIndicatorSpecificationRef.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecificationRef.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecificationRef.href) && - Objects.equals(this.id, performanceIndicatorSpecificationRef.id) && + Objects.equals(this.uuid, performanceIndicatorSpecificationRef.uuid) && Objects.equals(this.name, performanceIndicatorSpecificationRef.name) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRef.atReferredType) && + Objects.equals(this.referredType, performanceIndicatorSpecificationRef.referredType) && Objects.equals(this.version, performanceIndicatorSpecificationRef.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecificationRef {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java index 74bda76..9c47680 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefFVO.java @@ -15,20 +15,28 @@ import java.util.Objects; @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 PerformanceIndicatorSpecificationRefFVO implements PerformanceIndicatorSpecificationRefOrValueFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public PerformanceIndicatorSpecificationRefFVO() { @@ -38,12 +46,12 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecificationRefFVO(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationRefFVO(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationRefFVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationRefFVO type(String type) { + this.type = type; return this; } @@ -54,16 +62,16 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorSpecificationRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -74,16 +82,16 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorSpecificationRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorSpecificationRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -94,12 +102,12 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorSpecificationRefFVO href(String href) { @@ -122,8 +130,8 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic this.href = href; } - public PerformanceIndicatorSpecificationRefFVO id(String id) { - this.id = id; + public PerformanceIndicatorSpecificationRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -132,14 +140,14 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorSpecificationRefFVO name(String name) { @@ -162,8 +170,8 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic this.name = name; } - public PerformanceIndicatorSpecificationRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PerformanceIndicatorSpecificationRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } @@ -174,12 +182,12 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic @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 String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PerformanceIndicatorSpecificationRefFVO version(String version) { @@ -211,32 +219,32 @@ public class PerformanceIndicatorSpecificationRefFVO implements PerformanceIndic return false; } PerformanceIndicatorSpecificationRefFVO performanceIndicatorSpecificationRefFVO = (PerformanceIndicatorSpecificationRefFVO) o; - return Objects.equals(this.atType, performanceIndicatorSpecificationRefFVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefFVO.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecificationRefFVO.type) && + Objects.equals(this.baseType, performanceIndicatorSpecificationRefFVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecificationRefFVO.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecificationRefFVO.href) && - Objects.equals(this.id, performanceIndicatorSpecificationRefFVO.id) && + Objects.equals(this.uuid, performanceIndicatorSpecificationRefFVO.uuid) && Objects.equals(this.name, performanceIndicatorSpecificationRefFVO.name) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefFVO.atReferredType) && + Objects.equals(this.referredType, performanceIndicatorSpecificationRefFVO.referredType) && Objects.equals(this.version, performanceIndicatorSpecificationRefFVO.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecificationRefFVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" atReferredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java index 84104c7..383da55 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefMVO.java @@ -15,20 +15,28 @@ import java.util.Objects; @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 PerformanceIndicatorSpecificationRefMVO implements PerformanceIndicatorSpecificationRefOrValueMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public PerformanceIndicatorSpecificationRefMVO() { @@ -38,12 +46,12 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecificationRefMVO(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationRefMVO(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationRefMVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecificationRefMVO type(String type) { + this.type = type; return this; } @@ -54,16 +62,16 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorSpecificationRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorSpecificationRefMVO baseType(String atBaseType) { + this.baseType = atBaseType; return this; } @@ -74,16 +82,16 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorSpecificationRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorSpecificationRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -94,12 +102,12 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic @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 String getschemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorSpecificationRefMVO href(String href) { @@ -122,8 +130,8 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic this.href = href; } - public PerformanceIndicatorSpecificationRefMVO id(String id) { - this.id = id; + public PerformanceIndicatorSpecificationRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -134,12 +142,12 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("id") - public String getId() { - return id; + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorSpecificationRefMVO name(String name) { @@ -162,24 +170,24 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic this.name = name; } - public PerformanceIndicatorSpecificationRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PerformanceIndicatorSpecificationRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PerformanceIndicatorSpecificationRefMVO version(String version) { @@ -211,32 +219,32 @@ public class PerformanceIndicatorSpecificationRefMVO implements PerformanceIndic return false; } PerformanceIndicatorSpecificationRefMVO performanceIndicatorSpecificationRefMVO = (PerformanceIndicatorSpecificationRefMVO) o; - return Objects.equals(this.atType, performanceIndicatorSpecificationRefMVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecificationRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecificationRefMVO.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecificationRefMVO.type) && + Objects.equals(this.baseType, performanceIndicatorSpecificationRefMVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecificationRefMVO.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecificationRefMVO.href) && - Objects.equals(this.id, performanceIndicatorSpecificationRefMVO.id) && + Objects.equals(this.uuid, performanceIndicatorSpecificationRefMVO.uuid) && Objects.equals(this.name, performanceIndicatorSpecificationRefMVO.name) && - Objects.equals(this.atReferredType, performanceIndicatorSpecificationRefMVO.atReferredType) && + Objects.equals(this.referredType, performanceIndicatorSpecificationRefMVO.referredType) && Objects.equals(this.version, performanceIndicatorSpecificationRefMVO.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecificationRefMVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java index e317d71..a8d9bfa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValue.java @@ -19,5 +19,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PerformanceIndicatorSpecificationRefOrValue { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java index 3e68311..1873ec7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueFVO.java @@ -21,5 +21,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PerformanceIndicatorSpecificationRefOrValueFVO { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java index 7a2c668..1139427 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRefOrValueMVO.java @@ -21,5 +21,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PerformanceIndicatorSpecificationRefOrValueMVO { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java index ff0bfc3..e70748a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java @@ -7,6 +7,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; +import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; @@ -31,70 +32,79 @@ import java.util.Objects; }) @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 Resource implements ResourceRefOrValue { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; +public class Resource extends BaseRootNamedEntity implements ResourceRefOrValue { + @JsonProperty("category") private String category; + @JsonProperty("description") private String description; - private String name; - + @JsonProperty("endOperatingDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime endOperatingDate; + @JsonProperty("administrativeState") private ResourceAdministrativeStateType administrativeState; + @JsonProperty("operationalState") private ResourceOperationalStateType operationalState; + @JsonProperty("resourceStatus") private ResourceStatusType resourceStatus; + @JsonProperty("usageState") private ResourceUsageStateType usageState; + @JsonProperty("validFor") private TimePeriod validFor; + @JsonProperty("note") @Valid private List note = new ArrayList<>(); + @JsonProperty("resourceOrderItem") @Valid private List resourceOrderItem = new ArrayList<>(); + @JsonProperty("place") @Valid private List place = new ArrayList<>(); + @JsonProperty("relatedParty") @Valid private List relatedParty = new ArrayList<>(); + @JsonProperty("resourceRelationship") @Valid private List resourceRelationship = new ArrayList<>(); + @JsonProperty("resourceCharacteristic") @Valid private List resourceCharacteristic = new ArrayList<>(); + @JsonProperty("attachment") @Valid private List attachment = new ArrayList<>(); + @JsonProperty("resourceSpecification") private ResourceSpecificationRef resourceSpecification; + @JsonProperty("startOperatingDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime startOperatingDate; + @JsonProperty("resourceVersion") private String resourceVersion; + @JsonProperty("activationFeature") @Valid private List activationFeature = new ArrayList<>(); + @JsonProperty("intent") private IntentRef intent; + @JsonProperty("externalIdentifier") @Valid private List externalIdentifier = new ArrayList<>(); @@ -105,108 +115,8 @@ public class Resource implements ResourceRefOrValue { /** * Constructor with only required parameters */ - public Resource(String atType) { - this.atType = atType; - } - - public Resource 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 Resource 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 Resource 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 Resource 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 Resource 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 Resource(String type) { + this.type = type; } public Resource category(String category) { @@ -249,26 +159,6 @@ public class Resource implements ResourceRefOrValue { this.description = description; } - public Resource name(String name) { - this.name = name; - return this; - } - - /** - * the name of the resource - * @return name - */ - - @Schema(name = "name", description = "the name of the resource", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - public Resource endOperatingDate(OffsetDateTime endOperatingDate) { this.endOperatingDate = endOperatingDate; return this; @@ -730,11 +620,11 @@ public class Resource implements ResourceRefOrValue { return false; } Resource resource = (Resource) o; - return Objects.equals(this.atType, resource.atType) && - Objects.equals(this.atBaseType, resource.atBaseType) && - Objects.equals(this.atSchemaLocation, resource.atSchemaLocation) && + return Objects.equals(this.type, resource.type) && + Objects.equals(this.baseType, resource.baseType) && + Objects.equals(this.schemaLocation, resource.schemaLocation) && Objects.equals(this.href, resource.href) && - Objects.equals(this.id, resource.id) && + Objects.equals(this.uuid, resource.uuid) && Objects.equals(this.category, resource.category) && Objects.equals(this.description, resource.description) && Objects.equals(this.name, resource.name) && @@ -761,18 +651,18 @@ public class Resource implements ResourceRefOrValue { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); + return Objects.hash(type, baseType, schemaLocation, href, uuid, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Resource {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java index 306fd96..da5153f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java @@ -33,68 +33,95 @@ import java.util.Objects; @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 ResourceFVO implements ResourceRefOrValueFVO { - private String atType; + @JsonProperty("atType") + private String type; - private String atBaseType; + @JsonProperty("atBaseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("atSchemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("category") private String category; + @JsonProperty("description") private String description; + @JsonProperty("name") private String name; + @JsonProperty("endOperatingDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime endOperatingDate; + @JsonProperty("administrativeState") private ResourceAdministrativeStateType administrativeState; + @JsonProperty("operationalState") private ResourceOperationalStateType operationalState; + @JsonProperty("resourceStatus") private ResourceStatusType resourceStatus; + @JsonProperty("usageState") private ResourceUsageStateType usageState; + @JsonProperty("validFor") private TimePeriod validFor; + @JsonProperty("note") @Valid private List note = new ArrayList<>(); + @JsonProperty("resourceOrderItem") @Valid private List resourceOrderItem = new ArrayList<>(); + @JsonProperty("place") @Valid private List place = new ArrayList<>(); + @JsonProperty("relatedParty") @Valid private List relatedParty = new ArrayList<>(); + @JsonProperty("resourceRelationship") @Valid private List resourceRelationship = new ArrayList<>(); + @JsonProperty("resourceCharacteristic") @Valid private List resourceCharacteristic = new ArrayList<>(); + @JsonProperty("attachment") @Valid private List attachment = new ArrayList<>(); + @JsonProperty("resourceSpecification") private ResourceSpecificationRefFVO resourceSpecification; + @JsonProperty("startOperatingDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime startOperatingDate; + @JsonProperty("resourceVersion") private String resourceVersion; + @JsonProperty("activationFeature") @Valid private List activationFeature = new ArrayList<>(); + @JsonProperty("intent") private IntentRefFVO intent; + @JsonProperty("externalIdentifier") @Valid private List externalIdentifier = new ArrayList<>(); @@ -105,12 +132,12 @@ public class ResourceFVO implements ResourceRefOrValueFVO { /** * Constructor with only required parameters */ - public ResourceFVO(String atType) { - this.atType = atType; + public ResourceFVO(String type) { + this.type = type; } - public ResourceFVO atType(String atType) { - this.atType = atType; + public ResourceFVO type(String type) { + this.type = type; return this; } @@ -121,16 +148,16 @@ public class ResourceFVO implements ResourceRefOrValueFVO { @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceFVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -141,16 +168,16 @@ public class ResourceFVO implements ResourceRefOrValueFVO { @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -161,12 +188,12 @@ public class ResourceFVO implements ResourceRefOrValueFVO { @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceFVO href(String href) { @@ -189,8 +216,8 @@ public class ResourceFVO implements ResourceRefOrValueFVO { this.href = href; } - public ResourceFVO id(String id) { - this.id = id; + public ResourceFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -199,14 +226,14 @@ public class ResourceFVO implements ResourceRefOrValueFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ResourceFVO category(String category) { @@ -730,11 +757,11 @@ public class ResourceFVO implements ResourceRefOrValueFVO { return false; } ResourceFVO resourceFVO = (ResourceFVO) o; - return Objects.equals(this.atType, resourceFVO.atType) && - Objects.equals(this.atBaseType, resourceFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceFVO.atSchemaLocation) && + return Objects.equals(this.type, resourceFVO.type) && + Objects.equals(this.baseType, resourceFVO.baseType) && + Objects.equals(this.schemaLocation, resourceFVO.schemaLocation) && Objects.equals(this.href, resourceFVO.href) && - Objects.equals(this.id, resourceFVO.id) && + Objects.equals(this.uuid, resourceFVO.uuid) && Objects.equals(this.category, resourceFVO.category) && Objects.equals(this.description, resourceFVO.description) && Objects.equals(this.name, resourceFVO.name) && @@ -761,18 +788,18 @@ public class ResourceFVO implements ResourceRefOrValueFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); + return Objects.hash(type, baseType, schemaLocation, href, uuid, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceFVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java index 6d94822..8a72f6e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java @@ -33,68 +33,95 @@ import java.util.Objects; @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 ResourceMVO implements ResourceRefOrValueMVO { - private String atType; + @JsonProperty("atType") + private String type; - private String atBaseType; + @JsonProperty("atBaseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("atSchemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("category") private String category; + @JsonProperty("description") private String description; + @JsonProperty("name") private String name; + @JsonProperty("endOperatingDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime endOperatingDate; + @JsonProperty("administrativeState") private ResourceAdministrativeStateType administrativeState; + @JsonProperty("operationalState") private ResourceOperationalStateType operationalState; + @JsonProperty("resourceStatus") private ResourceStatusType resourceStatus; + @JsonProperty("usageState") private ResourceUsageStateType usageState; + @JsonProperty("validFor") private TimePeriod validFor; + @JsonProperty("note") @Valid private List note = new ArrayList<>(); + @JsonProperty("resourceOrderItem") @Valid private List resourceOrderItem = new ArrayList<>(); + @JsonProperty("place") @Valid private List place = new ArrayList<>(); + @JsonProperty("relatedParty") @Valid private List relatedParty = new ArrayList<>(); + @JsonProperty("resourceRelationship") @Valid private List resourceRelationship = new ArrayList<>(); + @JsonProperty("resourceCharacteristic") @Valid private List resourceCharacteristic = new ArrayList<>(); + @JsonProperty("attachment") @Valid private List attachment = new ArrayList<>(); + @JsonProperty("resourceSpecification") private ResourceSpecificationRefMVO resourceSpecification; + @JsonProperty("startOperatingDate") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime startOperatingDate; + @JsonProperty("resourceVersion") private String resourceVersion; + @JsonProperty("activationFeature") @Valid private List activationFeature = new ArrayList<>(); + @JsonProperty("intent") private IntentRefMVO intent; + @JsonProperty("externalIdentifier") @Valid private List externalIdentifier = new ArrayList<>(); @@ -105,12 +132,12 @@ public class ResourceMVO implements ResourceRefOrValueMVO { /** * Constructor with only required parameters */ - public ResourceMVO(String atType) { - this.atType = atType; + public ResourceMVO(String type) { + this.type = type; } - public ResourceMVO atType(String atType) { - this.atType = atType; + public ResourceMVO type(String type) { + this.type = type; return this; } @@ -121,16 +148,16 @@ public class ResourceMVO implements ResourceRefOrValueMVO { @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceMVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -141,16 +168,16 @@ public class ResourceMVO implements ResourceRefOrValueMVO { @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -161,12 +188,12 @@ public class ResourceMVO implements ResourceRefOrValueMVO { @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceMVO href(String href) { @@ -189,8 +216,8 @@ public class ResourceMVO implements ResourceRefOrValueMVO { this.href = href; } - public ResourceMVO id(String id) { - this.id = id; + public ResourceMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -199,14 +226,14 @@ public class ResourceMVO implements ResourceRefOrValueMVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ResourceMVO category(String category) { @@ -730,11 +757,11 @@ public class ResourceMVO implements ResourceRefOrValueMVO { return false; } ResourceMVO resourceMVO = (ResourceMVO) o; - return Objects.equals(this.atType, resourceMVO.atType) && - Objects.equals(this.atBaseType, resourceMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceMVO.atSchemaLocation) && + return Objects.equals(this.type, resourceMVO.type) && + Objects.equals(this.baseType, resourceMVO.baseType) && + Objects.equals(this.schemaLocation, resourceMVO.schemaLocation) && Objects.equals(this.href, resourceMVO.href) && - Objects.equals(this.id, resourceMVO.id) && + Objects.equals(this.uuid, resourceMVO.uuid) && Objects.equals(this.category, resourceMVO.category) && Objects.equals(this.description, resourceMVO.description) && Objects.equals(this.name, resourceMVO.name) && @@ -761,18 +788,18 @@ public class ResourceMVO implements ResourceRefOrValueMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); + return Objects.hash(type, baseType, schemaLocation, href, uuid, category, description, name, endOperatingDate, administrativeState, operationalState, resourceStatus, usageState, validFor, note, resourceOrderItem, place, relatedParty, resourceRelationship, resourceCharacteristic, attachment, resourceSpecification, startOperatingDate, resourceVersion, activationFeature, intent, externalIdentifier); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceMVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" category: ").append(toIndentedString(category)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java index 6529d99..ce1a7cf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -14,21 +15,10 @@ import java.util.Objects; @Schema(name = "ResourceRef", description = "Resource reference, for when Resource is used by other entities.") @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 ResourceRef implements ResourceRefOrValue { +public class ResourceRef extends BaseRootNamedEntity implements ResourceRefOrValue { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public ResourceRef() { super(); @@ -37,149 +27,29 @@ public class ResourceRef implements ResourceRefOrValue { /** * Constructor with only required parameters */ - public ResourceRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public ResourceRef 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 ResourceRef 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 ResourceRef 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 ResourceRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public ResourceRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public ResourceRef 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 ResourceRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public ResourceRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public ResourceRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -191,31 +61,31 @@ public class ResourceRef implements ResourceRefOrValue { return false; } ResourceRef resourceRef = (ResourceRef) o; - return Objects.equals(this.atType, resourceRef.atType) && - Objects.equals(this.atBaseType, resourceRef.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceRef.atSchemaLocation) && + return Objects.equals(this.type, resourceRef.type) && + Objects.equals(this.baseType, resourceRef.baseType) && + Objects.equals(this.schemaLocation, resourceRef.schemaLocation) && Objects.equals(this.href, resourceRef.href) && - Objects.equals(this.id, resourceRef.id) && + Objects.equals(this.uuid, resourceRef.uuid) && Objects.equals(this.name, resourceRef.name) && - Objects.equals(this.atReferredType, resourceRef.atReferredType); + Objects.equals(this.referredType, resourceRef.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceRef {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java index 61b263e..660e50b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefFVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 ResourceRefFVO implements ResourceRefOrValueFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public ResourceRefFVO() { super(); @@ -37,12 +44,12 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { /** * Constructor with only required parameters */ - public ResourceRefFVO(String atType) { - this.atType = atType; + public ResourceRefFVO(String type) { + this.type = type; } - public ResourceRefFVO atType(String atType) { - this.atType = atType; + public ResourceRefFVO type(String type) { + this.type = type; return this; } @@ -53,16 +60,16 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -73,16 +80,16 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -93,12 +100,12 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceRefFVO href(String href) { @@ -121,8 +128,8 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { this.href = href; } - public ResourceRefFVO id(String id) { - this.id = id; + public ResourceRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ResourceRefFVO name(String name) { @@ -161,24 +168,24 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { this.name = name; } - public ResourceRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public ResourceRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class ResourceRefFVO implements ResourceRefOrValueFVO { return false; } ResourceRefFVO resourceRefFVO = (ResourceRefFVO) o; - return Objects.equals(this.atType, resourceRefFVO.atType) && - Objects.equals(this.atBaseType, resourceRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceRefFVO.atSchemaLocation) && + return Objects.equals(this.type, resourceRefFVO.type) && + Objects.equals(this.baseType, resourceRefFVO.baseType) && + Objects.equals(this.schemaLocation, resourceRefFVO.schemaLocation) && Objects.equals(this.href, resourceRefFVO.href) && - Objects.equals(this.id, resourceRefFVO.id) && + Objects.equals(this.uuid, resourceRefFVO.uuid) && Objects.equals(this.name, resourceRefFVO.name) && - Objects.equals(this.atReferredType, resourceRefFVO.atReferredType); + Objects.equals(this.referredType, resourceRefFVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceRefFVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java index 7442fe4..a826aa4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefMVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 ResourceRefMVO implements ResourceRefOrValueMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public ResourceRefMVO() { super(); @@ -37,12 +44,12 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { /** * Constructor with only required parameters */ - public ResourceRefMVO(String atType) { - this.atType = atType; + public ResourceRefMVO(String type) { + this.type = type; } - public ResourceRefMVO atType(String atType) { - this.atType = atType; + public ResourceRefMVO type(String type) { + this.type = type; return this; } @@ -53,16 +60,16 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { @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 String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } @@ -73,16 +80,16 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { @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 String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } @@ -93,12 +100,12 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { @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 String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceRefMVO href(String href) { @@ -121,8 +128,8 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { this.href = href; } - public ResourceRefMVO id(String id) { - this.id = id; + public ResourceRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ResourceRefMVO name(String name) { @@ -161,24 +168,24 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { this.name = name; } - public ResourceRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public ResourceRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class ResourceRefMVO implements ResourceRefOrValueMVO { return false; } ResourceRefMVO resourceRefMVO = (ResourceRefMVO) o; - return Objects.equals(this.atType, resourceRefMVO.atType) && - Objects.equals(this.atBaseType, resourceRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceRefMVO.atSchemaLocation) && + return Objects.equals(this.type, resourceRefMVO.type) && + Objects.equals(this.baseType, resourceRefMVO.baseType) && + Objects.equals(this.schemaLocation, resourceRefMVO.schemaLocation) && Objects.equals(this.href, resourceRefMVO.href) && - Objects.equals(this.id, resourceRefMVO.id) && + Objects.equals(this.uuid, resourceRefMVO.uuid) && Objects.equals(this.name, resourceRefMVO.name) && - Objects.equals(this.atReferredType, resourceRefMVO.atReferredType); + Objects.equals(this.referredType, resourceRefMVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceRefMVO {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" href: ").append(toIndentedString(href)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java index cebef2e..0b4a31e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValue.java @@ -21,5 +21,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface ResourceRefOrValue { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java index f25aecc..81c5285 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueFVO.java @@ -23,5 +23,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface ResourceRefOrValueFVO { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java index 77c2443..faa8be6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRefOrValueMVO.java @@ -23,5 +23,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface ResourceRefOrValueMVO { - public String getAtType(); + public String getType(); } -- GitLab From 7b7f63751452446c6b5e9b78c7240d7ee21ea21e Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Thu, 11 Jul 2024 15:52:28 +0300 Subject: [PATCH 16/19] Made additional classes extend Base Entities from common model, added JsonProperty annotations --- .../osl/tmf/pm628/model/FileTransferData.java | 74 +++---- .../tmf/pm628/model/FileTransferDataFVO.java | 74 +++---- .../tmf/pm628/model/FileTransferDataMVO.java | 74 +++---- ...erformanceIndicatorGroupSpecification.java | 159 ++------------- ...ormanceIndicatorGroupSpecificationFVO.java | 56 +++--- ...ormanceIndicatorGroupSpecificationMVO.java | 95 ++++----- ...ormanceIndicatorGroupSpecificationRef.java | 181 +++--------------- ...IndicatorGroupSpecificationRefOrValue.java | 2 +- .../PerformanceIndicatorSpecificationFVO.java | 4 +- .../etsi/osl/tmf/pm628/model/ResourceFVO.java | 6 +- .../etsi/osl/tmf/pm628/model/ResourceMVO.java | 6 +- .../tmf/pm628/model/ScheduleDefinition.java | 122 +++--------- .../pm628/model/ScheduleDefinitionFVO.java | 78 ++++---- .../pm628/model/ScheduleDefinitionMVO.java | 101 +++++----- .../osl/tmf/pm628/model/TrackingRecord.java | 118 ++---------- .../tmf/pm628/model/TrackingRecordFVO.java | 77 ++++---- .../tmf/pm628/model/TrackingRecordMVO.java | 100 +++++----- 17 files changed, 497 insertions(+), 830 deletions(-) diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index c820673..84929ba 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -17,20 +17,28 @@ import java.util.Objects; @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 FileTransferData extends ProtocolTransferData { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("fileLocation") private URI fileLocation; + @JsonProperty("fileFormat") private String fileFormat; + @JsonProperty("compressionType") private CompressionType compressionType; + @JsonProperty("retentionPeriod") private Duration retentionPeriod; + @JsonProperty("packingType") private PackingType packingType; public FileTransferData() { @@ -40,69 +48,69 @@ public class FileTransferData extends ProtocolTransferData { /** * Constructor with only required parameters */ - public FileTransferData(String atType) { + public FileTransferData(String type) { super(); - this.atType = atType; + this.type = type; } - public FileTransferData atType(String atType) { - this.atType = atType; + public FileTransferData type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FileTransferData atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FileTransferData baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FileTransferData atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FileTransferData schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FileTransferData fileLocation(URI fileLocation) { @@ -219,9 +227,9 @@ public class FileTransferData extends ProtocolTransferData { return false; } FileTransferData fileTransferData = (FileTransferData) o; - return Objects.equals(this.atType, fileTransferData.atType) && - Objects.equals(this.atBaseType, fileTransferData.atBaseType) && - Objects.equals(this.atSchemaLocation, fileTransferData.atSchemaLocation) && + return Objects.equals(this.type, fileTransferData.type) && + Objects.equals(this.baseType, fileTransferData.baseType) && + Objects.equals(this.schemaLocation, fileTransferData.schemaLocation) && Objects.equals(this.fileLocation, fileTransferData.fileLocation) && Objects.equals(this.fileFormat, fileTransferData.fileFormat) && Objects.equals(this.compressionType, fileTransferData.compressionType) && @@ -232,7 +240,7 @@ public class FileTransferData extends ProtocolTransferData { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); + return Objects.hash(type, baseType, schemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); } @Override @@ -240,9 +248,9 @@ public class FileTransferData extends ProtocolTransferData { StringBuilder sb = new StringBuilder(); sb.append("class FileTransferData {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java index 44aaa1c..584093e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataFVO.java @@ -17,20 +17,28 @@ import java.util.Objects; @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 FileTransferDataFVO extends ProtocolTransferDataFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("fileLocation") private URI fileLocation; + @JsonProperty("fileFormat") private String fileFormat; + @JsonProperty("compressionType") private CompressionType compressionType; + @JsonProperty("retentionPeriod") private Duration retentionPeriod; + @JsonProperty("packingType") private PackingType packingType; public FileTransferDataFVO() { @@ -40,69 +48,69 @@ public class FileTransferDataFVO extends ProtocolTransferDataFVO { /** * Constructor with only required parameters */ - public FileTransferDataFVO(String atType) { + public FileTransferDataFVO(String type) { super(); - this.atType = atType; + this.type = type; } - public FileTransferDataFVO atType(String atType) { - this.atType = atType; + public FileTransferDataFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FileTransferDataFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FileTransferDataFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FileTransferDataFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FileTransferDataFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FileTransferDataFVO fileLocation(URI fileLocation) { @@ -219,9 +227,9 @@ public class FileTransferDataFVO extends ProtocolTransferDataFVO { return false; } FileTransferDataFVO fileTransferDataFVO = (FileTransferDataFVO) o; - return Objects.equals(this.atType, fileTransferDataFVO.atType) && - Objects.equals(this.atBaseType, fileTransferDataFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, fileTransferDataFVO.atSchemaLocation) && + return Objects.equals(this.type, fileTransferDataFVO.type) && + Objects.equals(this.baseType, fileTransferDataFVO.baseType) && + Objects.equals(this.schemaLocation, fileTransferDataFVO.schemaLocation) && Objects.equals(this.fileLocation, fileTransferDataFVO.fileLocation) && Objects.equals(this.fileFormat, fileTransferDataFVO.fileFormat) && Objects.equals(this.compressionType, fileTransferDataFVO.compressionType) && @@ -232,7 +240,7 @@ public class FileTransferDataFVO extends ProtocolTransferDataFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); + return Objects.hash(type, baseType, schemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); } @Override @@ -240,9 +248,9 @@ public class FileTransferDataFVO extends ProtocolTransferDataFVO { StringBuilder sb = new StringBuilder(); sb.append("class FileTransferDataFVO {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java index 944b156..045e75b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferDataMVO.java @@ -17,20 +17,28 @@ import java.util.Objects; @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 FileTransferDataMVO extends ProtocolTransferData { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("fileLocation") private URI fileLocation; + @JsonProperty("fileFormat") private String fileFormat; + @JsonProperty("compressionType") private CompressionType compressionType; + @JsonProperty("retentionPeriod") private Duration retentionPeriod; + @JsonProperty("packingType") private PackingType packingType; public FileTransferDataMVO() { @@ -40,69 +48,69 @@ public class FileTransferDataMVO extends ProtocolTransferData { /** * Constructor with only required parameters */ - public FileTransferDataMVO(String atType) { + public FileTransferDataMVO(String type) { super(); - this.atType = atType; + this.type = type; } - public FileTransferDataMVO atType(String atType) { - this.atType = atType; + public FileTransferDataMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FileTransferDataMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FileTransferDataMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FileTransferDataMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FileTransferDataMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FileTransferDataMVO fileLocation(URI fileLocation) { @@ -219,9 +227,9 @@ public class FileTransferDataMVO extends ProtocolTransferData { return false; } FileTransferDataMVO fileTransferDataMVO = (FileTransferDataMVO) o; - return Objects.equals(this.atType, fileTransferDataMVO.atType) && - Objects.equals(this.atBaseType, fileTransferDataMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, fileTransferDataMVO.atSchemaLocation) && + return Objects.equals(this.type, fileTransferDataMVO.type) && + Objects.equals(this.baseType, fileTransferDataMVO.baseType) && + Objects.equals(this.schemaLocation, fileTransferDataMVO.schemaLocation) && Objects.equals(this.fileLocation, fileTransferDataMVO.fileLocation) && Objects.equals(this.fileFormat, fileTransferDataMVO.fileFormat) && Objects.equals(this.compressionType, fileTransferDataMVO.compressionType) && @@ -232,7 +240,7 @@ public class FileTransferDataMVO extends ProtocolTransferData { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); + return Objects.hash(type, baseType, schemaLocation, fileLocation, fileFormat, compressionType, retentionPeriod, packingType, super.hashCode()); } @Override @@ -240,9 +248,9 @@ public class FileTransferDataMVO extends ProtocolTransferData { StringBuilder sb = new StringBuilder(); sb.append("class FileTransferDataMVO {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" fileLocation: ").append(toIndentedString(fileLocation)).append("\n"); sb.append(" fileFormat: ").append(toIndentedString(fileFormat)).append("\n"); sb.append(" compressionType: ").append(toIndentedString(compressionType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index 96e08f8..4c3b19f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; +import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.ArrayList; @@ -17,22 +18,12 @@ import java.util.Objects; @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 PerformanceIndicatorGroupSpecification implements PatchPerformanceIndicatorGroupSpecification200Response, PerformanceIndicatorGroupSpecificationRefOrValue { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; +public class PerformanceIndicatorGroupSpecification extends BaseRootNamedEntity implements PatchPerformanceIndicatorGroupSpecification200Response, PerformanceIndicatorGroupSpecificationRefOrValue { + @JsonProperty("groupCategory") private String groupCategory; + @JsonProperty("performanceIndicatorSpecification") @Valid private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); @@ -43,128 +34,8 @@ public class PerformanceIndicatorGroupSpecification implements PatchPerformanceI /** * Constructor with only required parameters */ - public PerformanceIndicatorGroupSpecification(String atType) { - this.atType = atType; - } - - public PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification 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 PerformanceIndicatorGroupSpecification name(String name) { - this.name = name; - return this; - } - - /** - * A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged. - * @return name - */ - - @Schema(name = "name", description = "A word, term, or phrase by which a PerformanceIndicatorGroupSpecification is tagged.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; + public PerformanceIndicatorGroupSpecification(String type) { + this.type = type; } public PerformanceIndicatorGroupSpecification groupCategory(String groupCategory) { @@ -224,11 +95,11 @@ public class PerformanceIndicatorGroupSpecification implements PatchPerformanceI return false; } PerformanceIndicatorGroupSpecification performanceIndicatorGroupSpecification = (PerformanceIndicatorGroupSpecification) o; - return Objects.equals(this.atType, performanceIndicatorGroupSpecification.atType) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecification.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecification.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorGroupSpecification.type) && + Objects.equals(this.baseType, performanceIndicatorGroupSpecification.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorGroupSpecification.schemaLocation) && Objects.equals(this.href, performanceIndicatorGroupSpecification.href) && - Objects.equals(this.id, performanceIndicatorGroupSpecification.id) && + Objects.equals(this.uuid, performanceIndicatorGroupSpecification.uuid) && Objects.equals(this.name, performanceIndicatorGroupSpecification.name) && Objects.equals(this.groupCategory, performanceIndicatorGroupSpecification.groupCategory) && Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecification.performanceIndicatorSpecification); @@ -236,18 +107,18 @@ public class PerformanceIndicatorGroupSpecification implements PatchPerformanceI @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, groupCategory, performanceIndicatorSpecification); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, groupCategory, performanceIndicatorSpecification); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorGroupSpecification {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" groupCategory: ").append(toIndentedString(groupCategory)).append("\n"); sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java index 4427ee8..9eef481 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationFVO.java @@ -19,16 +19,22 @@ import java.util.Objects; @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 PerformanceIndicatorGroupSpecificationFVO { - private String atType; + @JsonProperty("@type") + private String type; + @JsonProperty("@baseType") private String atBaseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("name") private String name; + @JsonProperty("groupCategory") private String groupCategory; + @JsonProperty("performanceIndicatorSpecification") @Valid private List<@Valid PerformanceIndicatorSpecificationRefOrValueFVO> performanceIndicatorSpecification = new ArrayList<>(); @@ -39,30 +45,30 @@ public class PerformanceIndicatorGroupSpecificationFVO { /** * Constructor with only required parameters */ - public PerformanceIndicatorGroupSpecificationFVO(String atType, String name, String groupCategory) { - this.atType = atType; + public PerformanceIndicatorGroupSpecificationFVO(String type, String name, String groupCategory) { + this.type = type; this.name = name; this.groupCategory = groupCategory; } - public PerformanceIndicatorGroupSpecificationFVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorGroupSpecificationFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } public PerformanceIndicatorGroupSpecificationFVO atBaseType(String atBaseType) { @@ -77,32 +83,32 @@ public class PerformanceIndicatorGroupSpecificationFVO { @Schema(name = "@baseType", description = "When sub-classing, this defines the super-class", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("@baseType") - public String getAtBaseType() { + public String getBaseType() { return atBaseType; } - public void setAtBaseType(String atBaseType) { + public void setBaseType(String atBaseType) { this.atBaseType = atBaseType; } - public PerformanceIndicatorGroupSpecificationFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorGroupSpecificationFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorGroupSpecificationFVO name(String name) { @@ -182,9 +188,9 @@ public class PerformanceIndicatorGroupSpecificationFVO { return false; } PerformanceIndicatorGroupSpecificationFVO performanceIndicatorGroupSpecificationFVO = (PerformanceIndicatorGroupSpecificationFVO) o; - return Objects.equals(this.atType, performanceIndicatorGroupSpecificationFVO.atType) && + return Objects.equals(this.type, performanceIndicatorGroupSpecificationFVO.type) && Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationFVO.atSchemaLocation) && + Objects.equals(this.schemaLocation, performanceIndicatorGroupSpecificationFVO.schemaLocation) && Objects.equals(this.name, performanceIndicatorGroupSpecificationFVO.name) && Objects.equals(this.groupCategory, performanceIndicatorGroupSpecificationFVO.groupCategory) && Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationFVO.performanceIndicatorSpecification); @@ -192,16 +198,16 @@ public class PerformanceIndicatorGroupSpecificationFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, name, groupCategory, performanceIndicatorSpecification); + return Objects.hash(type, atBaseType, schemaLocation, name, groupCategory, performanceIndicatorSpecification); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorGroupSpecificationFVO {\n"); - sb.append(" atType: ").append(toIndentedString(atType)).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(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" groupCategory: ").append(toIndentedString(groupCategory)).append("\n"); sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java index f8ea05b..b9f81ab 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationMVO.java @@ -19,18 +19,25 @@ import java.util.Objects; @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 PerformanceIndicatorGroupSpecificationMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; + @JsonProperty("groupCategory") private String groupCategory; + @JsonProperty("performanceIndicatorSpecification") @Valid private List<@Valid PerformanceIndicatorSpecificationRefOrValueMVO> performanceIndicatorSpecification = new ArrayList<>(); @@ -41,72 +48,72 @@ public class PerformanceIndicatorGroupSpecificationMVO { /** * Constructor with only required parameters */ - public PerformanceIndicatorGroupSpecificationMVO(String atType) { - this.atType = atType; + public PerformanceIndicatorGroupSpecificationMVO(String type) { + this.type = type; } - public PerformanceIndicatorGroupSpecificationMVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorGroupSpecificationMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorGroupSpecificationMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorGroupSpecificationMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorGroupSpecificationMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorGroupSpecificationMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public PerformanceIndicatorGroupSpecificationMVO id(String id) { - this.id = id; + public PerformanceIndicatorGroupSpecificationMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -115,14 +122,14 @@ public class PerformanceIndicatorGroupSpecificationMVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorGroupSpecificationMVO name(String name) { @@ -202,10 +209,10 @@ public class PerformanceIndicatorGroupSpecificationMVO { return false; } PerformanceIndicatorGroupSpecificationMVO performanceIndicatorGroupSpecificationMVO = (PerformanceIndicatorGroupSpecificationMVO) o; - return Objects.equals(this.atType, performanceIndicatorGroupSpecificationMVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationMVO.atSchemaLocation) && - Objects.equals(this.id, performanceIndicatorGroupSpecificationMVO.id) && + return Objects.equals(this.type, performanceIndicatorGroupSpecificationMVO.type) && + Objects.equals(this.baseType, performanceIndicatorGroupSpecificationMVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorGroupSpecificationMVO.schemaLocation) && + Objects.equals(this.uuid, performanceIndicatorGroupSpecificationMVO.uuid) && Objects.equals(this.name, performanceIndicatorGroupSpecificationMVO.name) && Objects.equals(this.groupCategory, performanceIndicatorGroupSpecificationMVO.groupCategory) && Objects.equals(this.performanceIndicatorSpecification, performanceIndicatorGroupSpecificationMVO.performanceIndicatorSpecification); @@ -213,17 +220,17 @@ public class PerformanceIndicatorGroupSpecificationMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, name, groupCategory, performanceIndicatorSpecification); + return Objects.hash(type, baseType, schemaLocation, uuid, name, groupCategory, performanceIndicatorSpecification); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorGroupSpecificationMVO {\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(" id: ").append(toIndentedString(id)).append("\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(" groupCategory: ").append(toIndentedString(groupCategory)).append("\n"); sb.append(" performanceIndicatorSpecification: ").append(toIndentedString(performanceIndicatorSpecification)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java index ab0c12d..228980d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,22 +14,12 @@ import java.util.Objects; @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 PerformanceIndicatorGroupSpecificationRef implements PerformanceIndicatorGroupSpecificationRefOrValue { +public class PerformanceIndicatorGroupSpecificationRef extends BaseRootNamedEntity implements PerformanceIndicatorGroupSpecificationRefOrValue { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public PerformanceIndicatorGroupSpecificationRef() { @@ -38,149 +29,29 @@ public class PerformanceIndicatorGroupSpecificationRef implements PerformanceInd /** * Constructor with only required parameters */ - public PerformanceIndicatorGroupSpecificationRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PerformanceIndicatorGroupSpecificationRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PerformanceIndicatorGroupSpecificationRef 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 PerformanceIndicatorGroupSpecificationRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public PerformanceIndicatorGroupSpecificationRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PerformanceIndicatorGroupSpecificationRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PerformanceIndicatorGroupSpecificationRef version(String version) { @@ -212,32 +83,32 @@ public class PerformanceIndicatorGroupSpecificationRef implements PerformanceInd return false; } PerformanceIndicatorGroupSpecificationRef performanceIndicatorGroupSpecificationRef = (PerformanceIndicatorGroupSpecificationRef) o; - return Objects.equals(this.atType, performanceIndicatorGroupSpecificationRef.atType) && - Objects.equals(this.atBaseType, performanceIndicatorGroupSpecificationRef.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorGroupSpecificationRef.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorGroupSpecificationRef.type) && + Objects.equals(this.baseType, performanceIndicatorGroupSpecificationRef.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorGroupSpecificationRef.schemaLocation) && Objects.equals(this.href, performanceIndicatorGroupSpecificationRef.href) && - Objects.equals(this.id, performanceIndicatorGroupSpecificationRef.id) && + Objects.equals(this.uuid, performanceIndicatorGroupSpecificationRef.uuid) && Objects.equals(this.name, performanceIndicatorGroupSpecificationRef.name) && - Objects.equals(this.atReferredType, performanceIndicatorGroupSpecificationRef.atReferredType) && + Objects.equals(this.referredType, performanceIndicatorGroupSpecificationRef.referredType) && Objects.equals(this.version, performanceIndicatorGroupSpecificationRef.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorGroupSpecificationRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java index 4506069..8e9d0d4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRefOrValue.java @@ -19,5 +19,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PerformanceIndicatorGroupSpecificationRefOrValue { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java index ef1f514..5a48382 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationFVO.java @@ -174,8 +174,8 @@ public class PerformanceIndicatorSpecificationFVO implements PerformanceIndicato * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") public String getUuid() { return uuid; } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java index da5153f..e74863a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceFVO.java @@ -33,13 +33,13 @@ import java.util.Objects; @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 ResourceFVO implements ResourceRefOrValueFVO { - @JsonProperty("atType") + @JsonProperty("@type") private String type; - @JsonProperty("atBaseType") + @JsonProperty("@baseType") private String baseType; - @JsonProperty("atSchemaLocation") + @JsonProperty("@schemaLocation") private String schemaLocation; @JsonProperty("href") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java index 8a72f6e..ec999f3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceMVO.java @@ -33,13 +33,13 @@ import java.util.Objects; @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 ResourceMVO implements ResourceRefOrValueMVO { - @JsonProperty("atType") + @JsonProperty("@type") private String type; - @JsonProperty("atBaseType") + @JsonProperty("@baseType") private String baseType; - @JsonProperty("atSchemaLocation") + @JsonProperty("@schemaLocation") private String schemaLocation; @JsonProperty("href") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index 77f1b61..affce7d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -4,6 +4,7 @@ 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.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; @@ -18,37 +19,38 @@ import java.util.Objects; @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 ScheduleDefinition { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String id; +public class ScheduleDefinition extends BaseRootEntity { + @JsonProperty("scheduleDefinitionStartTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime scheduleDefinitionStartTime; + @JsonProperty("scheduleDefinitionEndTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime scheduleDefinitionEndTime; + @JsonProperty("recurringFrequency") private String recurringFrequency; + @JsonProperty("excludedDate") @Valid private List excludedDate = new ArrayList<>(); + @JsonProperty("scheduleDefinitionHourRange") private String scheduleDefinitionHourRange; + @JsonProperty("WeeklyScheduledDefinition") @Valid private List weeklyScheduledDefinition = new ArrayList<>(); + @JsonProperty("monthlyScheduleDayOfMonthDefinition") @Valid private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; + @JsonProperty("dateScheduleDefintion") @Valid private List dateScheduleDefintion = new ArrayList<>(); @@ -59,88 +61,8 @@ public class ScheduleDefinition { /** * Constructor with only required parameters */ - public ScheduleDefinition(String atType) { - this.atType = atType; - } - - public ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition 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 ScheduleDefinition id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the schedule definition - * @return id - */ - - @Schema(name = "id", description = "Identifier of the schedule definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; + public ScheduleDefinition(String type) { + this.type = type; } public ScheduleDefinition scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { @@ -364,10 +286,10 @@ public class ScheduleDefinition { return false; } ScheduleDefinition scheduleDefinition = (ScheduleDefinition) o; - return Objects.equals(this.atType, scheduleDefinition.atType) && - Objects.equals(this.atBaseType, scheduleDefinition.atBaseType) && - Objects.equals(this.atSchemaLocation, scheduleDefinition.atSchemaLocation) && - Objects.equals(this.id, scheduleDefinition.id) && + return Objects.equals(this.type, scheduleDefinition.type) && + Objects.equals(this.baseType, scheduleDefinition.baseType) && + Objects.equals(this.schemaLocation, scheduleDefinition.schemaLocation) && + Objects.equals(this.uuid, scheduleDefinition.uuid) && Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinition.scheduleDefinitionStartTime) && Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinition.scheduleDefinitionEndTime) && Objects.equals(this.recurringFrequency, scheduleDefinition.recurringFrequency) && @@ -381,17 +303,17 @@ public class ScheduleDefinition { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); + return Objects.hash(type, baseType, schemaLocation, uuid, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScheduleDefinition {\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(" id: ").append(toIndentedString(id)).append("\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(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java index 21206f2..bbb498f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionFVO.java @@ -20,33 +20,45 @@ import java.util.Objects; @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 ScheduleDefinitionFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("scheduleDefinitionStartTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime scheduleDefinitionStartTime; + @JsonProperty("scheduleDefinitionEndTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime scheduleDefinitionEndTime; + @JsonProperty("recurringFrequency") private String recurringFrequency; + @JsonProperty("excludedDate") @Valid private List excludedDate = new ArrayList<>(); + @JsonProperty("scheduleDefinitionHourRange") private String scheduleDefinitionHourRange; + @JsonProperty("WeeklyScheduledDefinition") @Valid private List weeklyScheduledDefinition = new ArrayList<>(); + @JsonProperty("monthlyScheduleDayOfMonthDefinition") @Valid private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") private MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinition; + @JsonProperty("dateScheduleDefintion") @Valid private List dateScheduleDefintion = new ArrayList<>(); @@ -57,68 +69,68 @@ public class ScheduleDefinitionFVO { /** * Constructor with only required parameters */ - public ScheduleDefinitionFVO(String atType) { - this.atType = atType; + public ScheduleDefinitionFVO(String type) { + this.type = type; } - public ScheduleDefinitionFVO atType(String atType) { - this.atType = atType; + public ScheduleDefinitionFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ScheduleDefinitionFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ScheduleDefinitionFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ScheduleDefinitionFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ScheduleDefinitionFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ScheduleDefinitionFVO scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { @@ -342,9 +354,9 @@ public class ScheduleDefinitionFVO { return false; } ScheduleDefinitionFVO scheduleDefinitionFVO = (ScheduleDefinitionFVO) o; - return Objects.equals(this.atType, scheduleDefinitionFVO.atType) && - Objects.equals(this.atBaseType, scheduleDefinitionFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, scheduleDefinitionFVO.atSchemaLocation) && + return Objects.equals(this.type, scheduleDefinitionFVO.type) && + Objects.equals(this.baseType, scheduleDefinitionFVO.baseType) && + Objects.equals(this.schemaLocation, scheduleDefinitionFVO.schemaLocation) && Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinitionFVO.scheduleDefinitionStartTime) && Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinitionFVO.scheduleDefinitionEndTime) && Objects.equals(this.recurringFrequency, scheduleDefinitionFVO.recurringFrequency) && @@ -358,16 +370,16 @@ public class ScheduleDefinitionFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); + return Objects.hash(type, baseType, schemaLocation, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScheduleDefinitionFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java index 347d220..9f4e792 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinitionMVO.java @@ -20,35 +20,48 @@ import java.util.Objects; @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 ScheduleDefinitionMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("scheduleDefinitionStartTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime scheduleDefinitionStartTime; + @JsonProperty("scheduleDefinitionEndTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime scheduleDefinitionEndTime; + @JsonProperty("recurringFrequency") private String recurringFrequency; + @JsonProperty("excludedDate") @Valid private List excludedDate = new ArrayList<>(); + @JsonProperty("scheduleDefinitionHourRange") private String scheduleDefinitionHourRange; + @JsonProperty("WeeklyScheduledDefinition") @Valid private List weeklyScheduledDefinition = new ArrayList<>(); + @JsonProperty("monthlyScheduleDayOfMonthDefinition") @Valid private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); + @JsonProperty("MonthlyScheduleDayOfWeekDefinition") private MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinition; + @JsonProperty("dateScheduleDefintion") @Valid private List dateScheduleDefintion = new ArrayList<>(); @@ -59,72 +72,72 @@ public class ScheduleDefinitionMVO { /** * Constructor with only required parameters */ - public ScheduleDefinitionMVO(String atType) { - this.atType = atType; + public ScheduleDefinitionMVO(String type) { + this.type = type; } - public ScheduleDefinitionMVO atType(String atType) { - this.atType = atType; + public ScheduleDefinitionMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ScheduleDefinitionMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ScheduleDefinitionMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ScheduleDefinitionMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ScheduleDefinitionMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public ScheduleDefinitionMVO id(String id) { - this.id = id; + public ScheduleDefinitionMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -133,14 +146,14 @@ public class ScheduleDefinitionMVO { * @return id */ - @Schema(name = "id", description = "Identifier of the schedule definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "Identifier of the schedule definition", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ScheduleDefinitionMVO scheduleDefinitionStartTime(OffsetDateTime scheduleDefinitionStartTime) { @@ -364,10 +377,10 @@ public class ScheduleDefinitionMVO { return false; } ScheduleDefinitionMVO scheduleDefinitionMVO = (ScheduleDefinitionMVO) o; - return Objects.equals(this.atType, scheduleDefinitionMVO.atType) && - Objects.equals(this.atBaseType, scheduleDefinitionMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, scheduleDefinitionMVO.atSchemaLocation) && - Objects.equals(this.id, scheduleDefinitionMVO.id) && + return Objects.equals(this.type, scheduleDefinitionMVO.type) && + Objects.equals(this.baseType, scheduleDefinitionMVO.baseType) && + Objects.equals(this.schemaLocation, scheduleDefinitionMVO.schemaLocation) && + Objects.equals(this.uuid, scheduleDefinitionMVO.uuid) && Objects.equals(this.scheduleDefinitionStartTime, scheduleDefinitionMVO.scheduleDefinitionStartTime) && Objects.equals(this.scheduleDefinitionEndTime, scheduleDefinitionMVO.scheduleDefinitionEndTime) && Objects.equals(this.recurringFrequency, scheduleDefinitionMVO.recurringFrequency) && @@ -381,17 +394,17 @@ public class ScheduleDefinitionMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); + return Objects.hash(type, baseType, schemaLocation, uuid, scheduleDefinitionStartTime, scheduleDefinitionEndTime, recurringFrequency, excludedDate, scheduleDefinitionHourRange, weeklyScheduledDefinition, monthlyScheduleDayOfMonthDefinition, monthlyScheduleDayOfWeekDefinition, dateScheduleDefintion); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ScheduleDefinitionMVO {\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(" id: ").append(toIndentedString(id)).append("\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(" scheduleDefinitionStartTime: ").append(toIndentedString(scheduleDefinitionStartTime)).append("\n"); sb.append(" scheduleDefinitionEndTime: ").append(toIndentedString(scheduleDefinitionEndTime)).append("\n"); sb.append(" recurringFrequency: ").append(toIndentedString(recurringFrequency)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index 3b8a902..1680b4c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -4,6 +4,7 @@ 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.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; @@ -18,28 +19,25 @@ import java.util.Objects; @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 TrackingRecord { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; +public class TrackingRecord extends BaseRootEntity { + @JsonProperty("description") private String description; + @JsonProperty("characteristic") @Valid private List characteristic = new ArrayList<>(); + @JsonProperty("systemId") private String systemId; + @JsonProperty("time") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime time; + @JsonProperty("user") private String user; - private String id; - public TrackingRecord() { super(); } @@ -47,70 +45,10 @@ public class TrackingRecord { /** * Constructor with only required parameters */ - public TrackingRecord(String atType) { - this.atType = atType; - } - - public TrackingRecord 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 TrackingRecord 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 TrackingRecord atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; - return this; + public TrackingRecord(String type) { + this.type = type; } - - /** - * 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 TrackingRecord description(String description) { this.description = description; return this; @@ -219,26 +157,6 @@ public class TrackingRecord { this.user = user; } - public TrackingRecord id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the TrackingRecord. - * @return id - */ - - @Schema(name = "id", description = "Identifier of the TrackingRecord.", 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) { @@ -248,35 +166,35 @@ public class TrackingRecord { return false; } TrackingRecord trackingRecord = (TrackingRecord) o; - return Objects.equals(this.atType, trackingRecord.atType) && - Objects.equals(this.atBaseType, trackingRecord.atBaseType) && - Objects.equals(this.atSchemaLocation, trackingRecord.atSchemaLocation) && + return Objects.equals(this.type, trackingRecord.type) && + Objects.equals(this.baseType, trackingRecord.baseType) && + Objects.equals(this.schemaLocation, trackingRecord.schemaLocation) && Objects.equals(this.description, trackingRecord.description) && Objects.equals(this.characteristic, trackingRecord.characteristic) && Objects.equals(this.systemId, trackingRecord.systemId) && Objects.equals(this.time, trackingRecord.time) && Objects.equals(this.user, trackingRecord.user) && - Objects.equals(this.id, trackingRecord.id); + Objects.equals(this.uuid, trackingRecord.uuid); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, description, characteristic, systemId, time, user, id); + return Objects.hash(type, baseType, schemaLocation, description, characteristic, systemId, time, user, uuid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TrackingRecord {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" characteristic: ").append(toIndentedString(characteristic)).append("\n"); sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java index 55e367c..36b881d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordFVO.java @@ -20,22 +20,33 @@ import java.util.Objects; @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 TrackingRecordFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") + protected String href = null; + + @JsonProperty("description") private String description; + @JsonProperty("characteristic") @Valid private List characteristic = new ArrayList<>(); + @JsonProperty("systemId") private String systemId; + @JsonProperty("time") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime time; + @JsonProperty("user") private String user; public TrackingRecordFVO() { @@ -45,68 +56,68 @@ public class TrackingRecordFVO { /** * Constructor with only required parameters */ - public TrackingRecordFVO(String atType) { - this.atType = atType; + public TrackingRecordFVO(String type) { + this.type = type; } - public TrackingRecordFVO atType(String atType) { - this.atType = atType; + public TrackingRecordFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public TrackingRecordFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public TrackingRecordFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public TrackingRecordFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public TrackingRecordFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public TrackingRecordFVO description(String description) { @@ -226,9 +237,9 @@ public class TrackingRecordFVO { return false; } TrackingRecordFVO trackingRecordFVO = (TrackingRecordFVO) o; - return Objects.equals(this.atType, trackingRecordFVO.atType) && - Objects.equals(this.atBaseType, trackingRecordFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, trackingRecordFVO.atSchemaLocation) && + return Objects.equals(this.type, trackingRecordFVO.type) && + Objects.equals(this.baseType, trackingRecordFVO.baseType) && + Objects.equals(this.schemaLocation, trackingRecordFVO.schemaLocation) && Objects.equals(this.description, trackingRecordFVO.description) && Objects.equals(this.characteristic, trackingRecordFVO.characteristic) && Objects.equals(this.systemId, trackingRecordFVO.systemId) && @@ -238,16 +249,16 @@ public class TrackingRecordFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, description, characteristic, systemId, time, user); + return Objects.hash(type, baseType, schemaLocation, description, characteristic, systemId, time, user); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TrackingRecordFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" characteristic: ").append(toIndentedString(characteristic)).append("\n"); sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java index 9d18e89..64be0fb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecordMVO.java @@ -20,25 +20,37 @@ import java.util.Objects; @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 TrackingRecordMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") + protected String href; + + @JsonProperty("description") private String description; + @JsonProperty("characteristic") @Valid private List characteristic = new ArrayList<>(); + @JsonProperty("systemId") private String systemId; + @JsonProperty("time") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime time; + @JsonProperty("user") private String user; - private String id; + @JsonProperty("uuid") + private String uuid; public TrackingRecordMVO() { super(); @@ -47,68 +59,68 @@ public class TrackingRecordMVO { /** * Constructor with only required parameters */ - public TrackingRecordMVO(String atType) { - this.atType = atType; + public TrackingRecordMVO(String type) { + this.type = type; } - public TrackingRecordMVO atType(String atType) { - this.atType = atType; + public TrackingRecordMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public TrackingRecordMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public TrackingRecordMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public TrackingRecordMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public TrackingRecordMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public TrackingRecordMVO description(String description) { @@ -219,8 +231,8 @@ public class TrackingRecordMVO { this.user = user; } - public TrackingRecordMVO id(String id) { - this.id = id; + public TrackingRecordMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -229,14 +241,14 @@ public class TrackingRecordMVO { * @return id */ - @Schema(name = "id", description = "Identifier of the TrackingRecord.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "Identifier of the TrackingRecord.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } @Override @@ -248,35 +260,35 @@ public class TrackingRecordMVO { return false; } TrackingRecordMVO trackingRecordMVO = (TrackingRecordMVO) o; - return Objects.equals(this.atType, trackingRecordMVO.atType) && - Objects.equals(this.atBaseType, trackingRecordMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, trackingRecordMVO.atSchemaLocation) && + return Objects.equals(this.type, trackingRecordMVO.type) && + Objects.equals(this.baseType, trackingRecordMVO.baseType) && + Objects.equals(this.schemaLocation, trackingRecordMVO.schemaLocation) && Objects.equals(this.description, trackingRecordMVO.description) && Objects.equals(this.characteristic, trackingRecordMVO.characteristic) && Objects.equals(this.systemId, trackingRecordMVO.systemId) && Objects.equals(this.time, trackingRecordMVO.time) && Objects.equals(this.user, trackingRecordMVO.user) && - Objects.equals(this.id, trackingRecordMVO.id); + Objects.equals(this.uuid, trackingRecordMVO.uuid); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, description, characteristic, systemId, time, user, id); + return Objects.hash(type, baseType, schemaLocation, description, characteristic, systemId, time, user, uuid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TrackingRecordMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" characteristic: ").append(toIndentedString(characteristic)).append("\n"); sb.append(" systemId: ").append(toIndentedString(systemId)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append("}"); return sb.toString(); } -- GitLab From 3d4a77679b5b85a828340708d495f59b73228c3d Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Thu, 18 Jul 2024 12:14:35 +0300 Subject: [PATCH 17/19] Made all classes we will use extend Base Entities from common model, added JsonProperty annotations --- .../osl/tmf/pm628/model/AttachmentRef.java | 182 +++--------------- .../osl/tmf/pm628/model/AttachmentRefFVO.java | 115 ++++++----- .../osl/tmf/pm628/model/AttachmentRefMVO.java | 115 ++++++----- .../osl/tmf/pm628/model/Characteristic.java | 137 ++----------- .../tmf/pm628/model/CharacteristicFVO.java | 72 +++---- .../tmf/pm628/model/CharacteristicMVO.java | 95 ++++----- .../model/CharacteristicRelationship.java | 113 ++--------- .../model/CharacteristicRelationshipFVO.java | 95 ++++----- .../model/CharacteristicRelationshipMVO.java | 93 ++++----- .../osl/tmf/pm628/model/CompressionType.java | 1 + .../tmf/pm628/model/DataFilterAttribute.java | 1 + .../model/DataFilterAttributeStringArray.java | 2 + .../pm628/model/DataFilterTemplateFVO.java | 17 ++ .../pm628/model/DataFilterTemplateMVO.java | 21 +- .../tmf/pm628/model/DayOfMonthRecurrence.java | 70 +++---- .../pm628/model/DayOfMonthRecurrenceFVO.java | 70 +++---- .../pm628/model/DayOfMonthRecurrenceMVO.java | 70 +++---- .../tmf/pm628/model/DayOfWeekRecurrence.java | 70 +++---- .../pm628/model/DayOfWeekRecurrenceFVO.java | 70 +++---- .../pm628/model/DayOfWeekRecurrenceMVO.java | 70 +++---- .../etsi/osl/tmf/pm628/model/Duration.java | 2 + .../tmf/pm628/model/ExternalIdentifier.java | 115 ++--------- .../pm628/model/ExternalIdentifierFVO.java | 71 +++---- .../pm628/model/ExternalIdentifierMVO.java | 95 ++++----- .../org/etsi/osl/tmf/pm628/model/Feature.java | 140 ++------------ .../etsi/osl/tmf/pm628/model/FeatureFVO.java | 75 ++++---- .../etsi/osl/tmf/pm628/model/FeatureMVO.java | 98 +++++----- .../tmf/pm628/model/FeatureRelationship.java | 179 +++-------------- .../pm628/model/FeatureRelationshipFVO.java | 115 +++++------ .../pm628/model/FeatureRelationshipMVO.java | 117 +++++------ .../etsi/osl/tmf/pm628/model/IntentRef.java | 180 +++-------------- .../osl/tmf/pm628/model/IntentRefFVO.java | 115 +++++------ .../osl/tmf/pm628/model/IntentRefMVO.java | 115 +++++------ .../osl/tmf/pm628/model/ManagementJobMVO.java | 2 +- .../pm628/model/MonitoredClassCriteria.java | 71 +++---- .../model/MonitoredClassCriteriaFVO.java | 71 +++---- .../model/MonitoredInstancesCriteria.java | 70 +++---- .../model/MonitoredInstancesCriteriaFVO.java | 70 +++---- .../MonthlyScheduleDayOfWeekDefinition.java | 71 +++---- ...MonthlyScheduleDayOfWeekDefinitionFVO.java | 71 +++---- ...MonthlyScheduleDayOfWeekDefinitionMVO.java | 71 +++---- .../org/etsi/osl/tmf/pm628/model/Note.java | 116 ++--------- .../org/etsi/osl/tmf/pm628/model/NoteFVO.java | 70 ++++--- .../org/etsi/osl/tmf/pm628/model/NoteMVO.java | 95 ++++----- .../etsi/osl/tmf/pm628/model/PackingType.java | 1 + .../etsi/osl/tmf/pm628/model/PartyRef.java | 180 +++-------------- .../etsi/osl/tmf/pm628/model/PartyRefFVO.java | 115 +++++------ .../etsi/osl/tmf/pm628/model/PartyRefMVO.java | 115 +++++------ .../pm628/model/PartyRefOrPartyRoleRef.java | 2 +- .../model/PartyRefOrPartyRoleRefFVO.java | 2 +- .../model/PartyRefOrPartyRoleRefMVO.java | 2 +- .../osl/tmf/pm628/model/PartyRoleRef.java | 182 +++--------------- .../osl/tmf/pm628/model/PartyRoleRefFVO.java | 117 +++++------ .../osl/tmf/pm628/model/PartyRoleRefMVO.java | 117 +++++------ .../PerformanceIndicatorSpecRelationship.java | 138 ++----------- ...rformanceIndicatorSpecRelationshipFVO.java | 96 ++++----- ...rformanceIndicatorSpecRelationshipMVO.java | 96 ++++----- .../etsi/osl/tmf/pm628/model/PlaceRef.java | 178 +++-------------- .../etsi/osl/tmf/pm628/model/PlaceRefFVO.java | 115 +++++------ .../etsi/osl/tmf/pm628/model/PlaceRefMVO.java | 115 +++++------ .../etsi/osl/tmf/pm628/model/PolicyRef.java | 179 +++-------------- .../osl/tmf/pm628/model/PolicyRefFVO.java | 116 +++++------ .../osl/tmf/pm628/model/PolicyRefMVO.java | 116 +++++------ .../tmf/pm628/model/ProtocolTransferData.java | 1 + .../pm628/model/ProtocolTransferDataFVO.java | 1 + .../pm628/model/ProtocolTransferDataMVO.java | 1 + .../model/RelatedPartyRefOrPartyRoleRef.java | 71 +++---- .../RelatedPartyRefOrPartyRoleRefFVO.java | 71 +++---- .../RelatedPartyRefOrPartyRoleRefMVO.java | 71 +++---- .../osl/tmf/pm628/model/RelatedPlaceRef.java | 71 +++---- .../tmf/pm628/model/RelatedPlaceRefFVO.java | 71 +++---- .../tmf/pm628/model/RelatedPlaceRefMVO.java | 71 +++---- .../pm628/model/RelatedResourceOrderItem.java | 95 ++++----- .../model/RelatedResourceOrderItemFVO.java | 95 ++++----- .../model/RelatedResourceOrderItemMVO.java | 95 ++++----- .../tmf/pm628/model/ResourceRelationship.java | 72 +++---- .../pm628/model/ResourceRelationshipFVO.java | 72 +++---- .../pm628/model/ResourceRelationshipMVO.java | 72 +++---- .../pm628/model/ResourceSpecificationRef.java | 181 +++-------------- .../model/ResourceSpecificationRefFVO.java | 116 +++++------ .../model/ResourceSpecificationRefMVO.java | 116 +++++------ .../etsi/osl/tmf/pm628/model/TimePeriod.java | 2 + 82 files changed, 2891 insertions(+), 4110 deletions(-) diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java index 76cbcce..90ac81a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,24 +14,15 @@ import java.util.Objects; @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 AttachmentRef { +public class AttachmentRef extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("description") private String description; + @JsonProperty("url") private String url; public AttachmentRef() { @@ -40,149 +32,29 @@ public class AttachmentRef { /** * Constructor with only required parameters */ - public AttachmentRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public AttachmentRef 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 AttachmentRef 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 AttachmentRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; - } - - public AttachmentRef 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 AttachmentRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public AttachmentRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public AttachmentRef 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 AttachmentRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public AttachmentRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public AttachmentRef description(String description) { @@ -234,33 +106,33 @@ public class AttachmentRef { return false; } AttachmentRef attachmentRef = (AttachmentRef) o; - return Objects.equals(this.atType, attachmentRef.atType) && - Objects.equals(this.atBaseType, attachmentRef.atBaseType) && - Objects.equals(this.atSchemaLocation, attachmentRef.atSchemaLocation) && + return Objects.equals(this.type, attachmentRef.type) && + Objects.equals(this.baseType, attachmentRef.baseType) && + Objects.equals(this.schemaLocation, attachmentRef.schemaLocation) && Objects.equals(this.href, attachmentRef.href) && - Objects.equals(this.id, attachmentRef.id) && + Objects.equals(this.uuid, attachmentRef.uuid) && Objects.equals(this.name, attachmentRef.name) && - Objects.equals(this.atReferredType, attachmentRef.atReferredType) && + Objects.equals(this.referredType, attachmentRef.referredType) && Objects.equals(this.description, attachmentRef.description) && Objects.equals(this.url, attachmentRef.url); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, description, url); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, description, url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AttachmentRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).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("}"); 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 index b4d0580..12a8ed0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefFVO.java @@ -15,22 +15,31 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("description") private String description; + @JsonProperty("url") private String url; public AttachmentRefFVO() { @@ -40,68 +49,68 @@ public class AttachmentRefFVO { /** * Constructor with only required parameters */ - public AttachmentRefFVO(String atType) { - this.atType = atType; + public AttachmentRefFVO(String type) { + this.type = type; } - public AttachmentRefFVO atType(String atType) { - this.atType = atType; + public AttachmentRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setAtType(String type) { + this.type = type; } - public AttachmentRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public AttachmentRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public AttachmentRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public AttachmentRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public AttachmentRefFVO href(String href) { @@ -124,8 +133,8 @@ public class AttachmentRefFVO { this.href = href; } - public AttachmentRefFVO id(String id) { - this.id = id; + public AttachmentRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -134,14 +143,14 @@ public class AttachmentRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public AttachmentRefFVO name(String name) { @@ -164,24 +173,24 @@ public class AttachmentRefFVO { this.name = name; } - public AttachmentRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public AttachmentRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public AttachmentRefFVO description(String description) { @@ -233,33 +242,33 @@ public class AttachmentRefFVO { return false; } AttachmentRefFVO attachmentRefFVO = (AttachmentRefFVO) o; - return Objects.equals(this.atType, attachmentRefFVO.atType) && - Objects.equals(this.atBaseType, attachmentRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, attachmentRefFVO.atSchemaLocation) && + 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.uuid, attachmentRefFVO.uuid) && Objects.equals(this.name, attachmentRefFVO.name) && - Objects.equals(this.atReferredType, attachmentRefFVO.atReferredType) && + 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(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, description, url); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, description, url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AttachmentRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).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("}"); 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 index 278354f..e51a940 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRefMVO.java @@ -15,22 +15,31 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("description") private String description; + @JsonProperty("url") private String url; public AttachmentRefMVO() { @@ -40,68 +49,68 @@ public class AttachmentRefMVO { /** * Constructor with only required parameters */ - public AttachmentRefMVO(String atType) { - this.atType = atType; + public AttachmentRefMVO(String type) { + this.type = type; } - public AttachmentRefMVO atType(String atType) { - this.atType = atType; + public AttachmentRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public AttachmentRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public AttachmentRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setAtBaseType(String baseType) { + this.baseType = baseType; } - public AttachmentRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public AttachmentRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public AttachmentRefMVO href(String href) { @@ -124,8 +133,8 @@ public class AttachmentRefMVO { this.href = href; } - public AttachmentRefMVO id(String id) { - this.id = id; + public AttachmentRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -134,14 +143,14 @@ public class AttachmentRefMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public AttachmentRefMVO name(String name) { @@ -164,24 +173,24 @@ public class AttachmentRefMVO { this.name = name; } - public AttachmentRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public AttachmentRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public AttachmentRefMVO description(String description) { @@ -233,33 +242,33 @@ public class AttachmentRefMVO { return false; } AttachmentRefMVO attachmentRefMVO = (AttachmentRefMVO) o; - return Objects.equals(this.atType, attachmentRefMVO.atType) && - Objects.equals(this.atBaseType, attachmentRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, attachmentRefMVO.atSchemaLocation) && + 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.uuid, attachmentRefMVO.uuid) && Objects.equals(this.name, attachmentRefMVO.name) && - Objects.equals(this.atReferredType, attachmentRefMVO.atReferredType) && + 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(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, description, url); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, description, url); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AttachmentRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).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("}"); 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 index fa9a2a5..aee9c21 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -4,6 +4,7 @@ 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.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.ArrayList; @@ -16,20 +17,12 @@ import java.util.Objects; @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 Characteristic { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String id; - - private String name; +public class Characteristic extends BaseRootNamedEntity { + @JsonProperty("valueType") private String valueType; + @JsonProperty("characteristicRelationship") @Valid private List characteristicRelationship = new ArrayList<>(); @@ -40,108 +33,8 @@ public class Characteristic { /** * Constructor with only required parameters */ - public Characteristic(String atType) { - this.atType = atType; - } - - public Characteristic 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 Characteristic 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 Characteristic 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 Characteristic id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the characteristic - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public Characteristic 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 Characteristic(String type) { + this.type = type; } public Characteristic valueType(String valueType) { @@ -201,10 +94,10 @@ public class Characteristic { return false; } Characteristic characteristic = (Characteristic) o; - return Objects.equals(this.atType, characteristic.atType) && - Objects.equals(this.atBaseType, characteristic.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristic.atSchemaLocation) && - Objects.equals(this.id, characteristic.id) && + 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); @@ -212,17 +105,17 @@ public class Characteristic { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, name, valueType, characteristicRelationship); + 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(" atType: ").append(toIndentedString(atType)).append("\n"); - sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n"); - sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\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"); 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 index 6d4ad45..912ae24 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicFVO.java @@ -18,16 +18,22 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("name") private String name; + @JsonProperty("valueType") private String valueType; + @JsonProperty("characteristicRelationship") @Valid private List characteristicRelationship = new ArrayList<>(); @@ -38,68 +44,68 @@ public class CharacteristicFVO { /** * Constructor with only required parameters */ - public CharacteristicFVO(String atType) { - this.atType = atType; + public CharacteristicFVO(String type) { + this.type = type; } - public CharacteristicFVO atType(String atType) { - this.atType = atType; + public CharacteristicFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public CharacteristicFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public CharacteristicFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public CharacteristicFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public CharacteristicFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public CharacteristicFVO name(String name) { @@ -179,9 +185,9 @@ public class CharacteristicFVO { return false; } CharacteristicFVO characteristicFVO = (CharacteristicFVO) o; - return Objects.equals(this.atType, characteristicFVO.atType) && - Objects.equals(this.atBaseType, characteristicFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicFVO.atSchemaLocation) && + 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); @@ -189,16 +195,16 @@ public class CharacteristicFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, name, valueType, characteristicRelationship); + return Objects.hash(type, baseType, schemaLocation, name, valueType, characteristicRelationship); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CharacteristicFVO {\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(" 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"); 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 index 4465aab..bccda46 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicMVO.java @@ -18,18 +18,25 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; + @JsonProperty("valueType") private String valueType; + @JsonProperty("characteristicRelationship") @Valid private List characteristicRelationship = new ArrayList<>(); @@ -40,72 +47,72 @@ public class CharacteristicMVO { /** * Constructor with only required parameters */ - public CharacteristicMVO(String atType) { - this.atType = atType; + public CharacteristicMVO(String type) { + this.type = type; } - public CharacteristicMVO atType(String atType) { - this.atType = atType; + public CharacteristicMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public CharacteristicMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public CharacteristicMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public CharacteristicMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public CharacteristicMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public CharacteristicMVO id(String id) { - this.id = id; + public CharacteristicMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -114,14 +121,14 @@ public class CharacteristicMVO { * @return id */ - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - 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 setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public CharacteristicMVO name(String name) { @@ -201,10 +208,10 @@ public class CharacteristicMVO { return false; } CharacteristicMVO characteristicMVO = (CharacteristicMVO) o; - return Objects.equals(this.atType, characteristicMVO.atType) && - Objects.equals(this.atBaseType, characteristicMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicMVO.atSchemaLocation) && - Objects.equals(this.id, characteristicMVO.id) && + 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); @@ -212,17 +219,17 @@ public class CharacteristicMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, name, valueType, characteristicRelationship); + 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(" atType: ").append(toIndentedString(atType)).append("\n"); - sb.append(" atBaseType: ").append(toIndentedString(atBaseType)).append("\n"); - sb.append(" atSchemaLocation: ").append(toIndentedString(atSchemaLocation)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\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"); 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 index 728e1c7..cda9411 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,16 +14,9 @@ import java.util.Objects; @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 CharacteristicRelationship { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String id; +public class CharacteristicRelationship extends BaseRootEntity { + @JsonProperty("relationshipType") private String relationshipType; public CharacteristicRelationship() { @@ -32,90 +26,15 @@ public class CharacteristicRelationship { /** * Constructor with only required parameters */ - public CharacteristicRelationship(String atType) { - this.atType = atType; + public CharacteristicRelationship(String type) { + this.type = type; } - public CharacteristicRelationship atType(String atType) { - this.atType = atType; + public CharacteristicRelationship type(String type) { + this.type = type; 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 CharacteristicRelationship 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 CharacteristicRelationship 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 CharacteristicRelationship id(String id) { - this.id = id; - return this; - } - - /** - * Unique identifier of the characteristic - * @return id - */ - - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - public CharacteristicRelationship relationshipType(String relationshipType) { this.relationshipType = relationshipType; return this; @@ -145,26 +64,26 @@ public class CharacteristicRelationship { return false; } CharacteristicRelationship characteristicRelationship = (CharacteristicRelationship) o; - return Objects.equals(this.atType, characteristicRelationship.atType) && - Objects.equals(this.atBaseType, characteristicRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicRelationship.atSchemaLocation) && - Objects.equals(this.id, characteristicRelationship.id) && + 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(atType, atBaseType, atSchemaLocation, id, relationshipType); + return Objects.hash(type, baseType, schemaLocation, uuid, relationshipType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CharacteristicRelationship {\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(" id: ").append(toIndentedString(id)).append("\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(); 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 index 975f21a..c34c454 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipFVO.java @@ -15,14 +15,19 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("relationshipType") private String relationshipType; public CharacteristicRelationshipFVO() { @@ -32,74 +37,74 @@ public class CharacteristicRelationshipFVO { /** * Constructor with only required parameters */ - public CharacteristicRelationshipFVO(String atType, String id, String relationshipType) { - this.atType = atType; - this.id = id; + public CharacteristicRelationshipFVO(String type, String uuid, String relationshipType) { + this.type = type; + this.uuid = uuid; this.relationshipType = relationshipType; } - public CharacteristicRelationshipFVO atType(String atType) { - this.atType = atType; + public CharacteristicRelationshipFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public CharacteristicRelationshipFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public CharacteristicRelationshipFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public CharacteristicRelationshipFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public CharacteristicRelationshipFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public CharacteristicRelationshipFVO id(String id) { - this.id = id; + public CharacteristicRelationshipFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -108,14 +113,14 @@ public class CharacteristicRelationshipFVO { * @return id */ @NotNull - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public CharacteristicRelationshipFVO relationshipType(String relationshipType) { @@ -147,26 +152,26 @@ public class CharacteristicRelationshipFVO { return false; } CharacteristicRelationshipFVO characteristicRelationshipFVO = (CharacteristicRelationshipFVO) o; - return Objects.equals(this.atType, characteristicRelationshipFVO.atType) && - Objects.equals(this.atBaseType, characteristicRelationshipFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicRelationshipFVO.atSchemaLocation) && - Objects.equals(this.id, characteristicRelationshipFVO.id) && + 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(atType, atBaseType, atSchemaLocation, id, relationshipType); + return Objects.hash(type, baseType, schemaLocation, uuid, relationshipType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CharacteristicRelationshipFVO {\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(" id: ").append(toIndentedString(id)).append("\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(); 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 index 0ad2b02..7e9848c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationshipMVO.java @@ -15,14 +15,19 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("relationshipType") private String relationshipType; public CharacteristicRelationshipMVO() { @@ -32,72 +37,72 @@ public class CharacteristicRelationshipMVO { /** * Constructor with only required parameters */ - public CharacteristicRelationshipMVO(String atType) { - this.atType = atType; + public CharacteristicRelationshipMVO(String type) { + this.type = type; } - public CharacteristicRelationshipMVO atType(String atType) { - this.atType = atType; + public CharacteristicRelationshipMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public CharacteristicRelationshipMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public CharacteristicRelationshipMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public CharacteristicRelationshipMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public CharacteristicRelationshipMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public CharacteristicRelationshipMVO id(String id) { - this.id = id; + public CharacteristicRelationshipMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -106,14 +111,14 @@ public class CharacteristicRelationshipMVO { * @return id */ - @Schema(name = "id", description = "Unique identifier of the characteristic", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - 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 setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public CharacteristicRelationshipMVO relationshipType(String relationshipType) { @@ -145,26 +150,26 @@ public class CharacteristicRelationshipMVO { return false; } CharacteristicRelationshipMVO characteristicRelationshipMVO = (CharacteristicRelationshipMVO) o; - return Objects.equals(this.atType, characteristicRelationshipMVO.atType) && - Objects.equals(this.atBaseType, characteristicRelationshipMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, characteristicRelationshipMVO.atSchemaLocation) && - Objects.equals(this.id, characteristicRelationshipMVO.id) && + 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(atType, atBaseType, atSchemaLocation, id, relationshipType); + return Objects.hash(type, baseType, schemaLocation, uuid, relationshipType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CharacteristicRelationshipMVO {\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(" id: ").append(toIndentedString(id)).append("\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(); 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 index 5ad1a98..bc2ebb9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -15,6 +15,7 @@ import java.util.Objects; @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 CompressionType { + @JsonProperty("compressionEnumType") private CompressionEnumType compressionEnumType; public CompressionType compressionEnumType(CompressionEnumType compressionEnumType) { 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 index 6b7c0df..5eab513 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttribute.java @@ -26,6 +26,7 @@ import java.util.Objects; @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) { 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 index 4e29bb4..12cc0dd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterAttributeStringArray.java @@ -1,5 +1,6 @@ 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; @@ -15,6 +16,7 @@ import java.util.Objects; */ @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 { 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 index 92b50e6..ecd0fc6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateFVO.java @@ -24,6 +24,9 @@ public class DataFilterTemplateFVO { @JsonProperty("@schemaLocation") private String schemaLocation; + @JsonProperty("href") + private String href = null; + @JsonProperty("name") private String name; @@ -101,6 +104,20 @@ public class DataFilterTemplateFVO { 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; 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 index fca9a28..5d1fc54 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplateMVO.java @@ -24,6 +24,9 @@ public class DataFilterTemplateMVO { @JsonProperty("@schemaLocation") private String schemaLocation; + @JsonProperty("href") + protected String href = null; + @JsonProperty("uuid") private String uuid; @@ -104,6 +107,20 @@ public class DataFilterTemplateMVO { 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 uuid(String uuid) { this.uuid = uuid; return this; @@ -114,8 +131,8 @@ public class DataFilterTemplateMVO { * @return id */ - @Schema(name = "id", example = "6c088cf7f1bc", description = "Unique identifier of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") + @Schema(name = "uuid", example = "6c088cf7f1bc", description = "Unique identifier of this DataFilterTemplate", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") public String getUuid() { return uuid; } 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 index 7616c69..8b593f5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 DayOfMonthRecurrence { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dates") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime dates; @@ -34,68 +38,68 @@ public class DayOfMonthRecurrence { /** * Constructor with only required parameters */ - public DayOfMonthRecurrence(String atType) { - this.atType = atType; + public DayOfMonthRecurrence(String type) { + this.type = type; } - public DayOfMonthRecurrence atType(String atType) { - this.atType = atType; + public DayOfMonthRecurrence type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DayOfMonthRecurrence atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DayOfMonthRecurrence baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DayOfMonthRecurrence atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DayOfMonthRecurrence schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DayOfMonthRecurrence dates(OffsetDateTime dates) { @@ -127,24 +131,24 @@ public class DayOfMonthRecurrence { return false; } DayOfMonthRecurrence dayOfMonthRecurrence = (DayOfMonthRecurrence) o; - return Objects.equals(this.atType, dayOfMonthRecurrence.atType) && - Objects.equals(this.atBaseType, dayOfMonthRecurrence.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfMonthRecurrence.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, dates); + return Objects.hash(type, baseType, schemaLocation, dates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DayOfMonthRecurrence {\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(" 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(); 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 index 23b231f..1cee0eb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceFVO.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dates") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime dates; @@ -34,68 +38,68 @@ public class DayOfMonthRecurrenceFVO { /** * Constructor with only required parameters */ - public DayOfMonthRecurrenceFVO(String atType) { - this.atType = atType; + public DayOfMonthRecurrenceFVO(String type) { + this.type = type; } - public DayOfMonthRecurrenceFVO atType(String atType) { - this.atType = atType; + public DayOfMonthRecurrenceFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DayOfMonthRecurrenceFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DayOfMonthRecurrenceFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DayOfMonthRecurrenceFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DayOfMonthRecurrenceFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DayOfMonthRecurrenceFVO dates(OffsetDateTime dates) { @@ -127,24 +131,24 @@ public class DayOfMonthRecurrenceFVO { return false; } DayOfMonthRecurrenceFVO dayOfMonthRecurrenceFVO = (DayOfMonthRecurrenceFVO) o; - return Objects.equals(this.atType, dayOfMonthRecurrenceFVO.atType) && - Objects.equals(this.atBaseType, dayOfMonthRecurrenceFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfMonthRecurrenceFVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, dates); + return Objects.hash(type, baseType, schemaLocation, dates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DayOfMonthRecurrenceFVO {\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(" 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(); 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 index 2ac8dda..0a8506a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrenceMVO.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dates") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime dates; @@ -34,68 +38,68 @@ public class DayOfMonthRecurrenceMVO { /** * Constructor with only required parameters */ - public DayOfMonthRecurrenceMVO(String atType) { - this.atType = atType; + public DayOfMonthRecurrenceMVO(String type) { + this.type = type; } - public DayOfMonthRecurrenceMVO atType(String atType) { - this.atType = atType; + public DayOfMonthRecurrenceMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DayOfMonthRecurrenceMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DayOfMonthRecurrenceMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DayOfMonthRecurrenceMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DayOfMonthRecurrenceMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DayOfMonthRecurrenceMVO dates(OffsetDateTime dates) { @@ -127,24 +131,24 @@ public class DayOfMonthRecurrenceMVO { return false; } DayOfMonthRecurrenceMVO dayOfMonthRecurrenceMVO = (DayOfMonthRecurrenceMVO) o; - return Objects.equals(this.atType, dayOfMonthRecurrenceMVO.atType) && - Objects.equals(this.atBaseType, dayOfMonthRecurrenceMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfMonthRecurrenceMVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, dates); + return Objects.hash(type, baseType, schemaLocation, dates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DayOfMonthRecurrenceMVO {\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(" 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(); 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 index c25cd6b..ce5c8e1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 DayOfWeekRecurrence { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dates") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime dates; @@ -34,68 +38,68 @@ public class DayOfWeekRecurrence { /** * Constructor with only required parameters */ - public DayOfWeekRecurrence(String atType) { - this.atType = atType; + public DayOfWeekRecurrence(String type) { + this.type = type; } - public DayOfWeekRecurrence atType(String atType) { - this.atType = atType; + public DayOfWeekRecurrence type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DayOfWeekRecurrence atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DayOfWeekRecurrence baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DayOfWeekRecurrence atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DayOfWeekRecurrence schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DayOfWeekRecurrence dates(OffsetDateTime dates) { @@ -127,24 +131,24 @@ public class DayOfWeekRecurrence { return false; } DayOfWeekRecurrence dayOfWeekRecurrence = (DayOfWeekRecurrence) o; - return Objects.equals(this.atType, dayOfWeekRecurrence.atType) && - Objects.equals(this.atBaseType, dayOfWeekRecurrence.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfWeekRecurrence.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, dates); + return Objects.hash(type, baseType, schemaLocation, dates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DayOfWeekRecurrence {\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(" 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(); 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 index 7cb56bd..33c5794 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceFVO.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dates") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime dates; @@ -34,68 +38,68 @@ public class DayOfWeekRecurrenceFVO { /** * Constructor with only required parameters */ - public DayOfWeekRecurrenceFVO(String atType) { - this.atType = atType; + public DayOfWeekRecurrenceFVO(String type) { + this.type = type; } - public DayOfWeekRecurrenceFVO atType(String atType) { - this.atType = atType; + public DayOfWeekRecurrenceFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DayOfWeekRecurrenceFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DayOfWeekRecurrenceFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DayOfWeekRecurrenceFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DayOfWeekRecurrenceFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DayOfWeekRecurrenceFVO dates(OffsetDateTime dates) { @@ -127,24 +131,24 @@ public class DayOfWeekRecurrenceFVO { return false; } DayOfWeekRecurrenceFVO dayOfWeekRecurrenceFVO = (DayOfWeekRecurrenceFVO) o; - return Objects.equals(this.atType, dayOfWeekRecurrenceFVO.atType) && - Objects.equals(this.atBaseType, dayOfWeekRecurrenceFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfWeekRecurrenceFVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, dates); + return Objects.hash(type, baseType, schemaLocation, dates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DayOfWeekRecurrenceFVO {\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(" 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(); 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 index d001c7b..2ef8783 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrenceMVO.java @@ -18,12 +18,16 @@ import java.util.Objects; @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 { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dates") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime dates; @@ -34,68 +38,68 @@ public class DayOfWeekRecurrenceMVO { /** * Constructor with only required parameters */ - public DayOfWeekRecurrenceMVO(String atType) { - this.atType = atType; + public DayOfWeekRecurrenceMVO(String type) { + this.type = type; } - public DayOfWeekRecurrenceMVO atType(String atType) { - this.atType = atType; + public DayOfWeekRecurrenceMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public DayOfWeekRecurrenceMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public DayOfWeekRecurrenceMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public DayOfWeekRecurrenceMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public DayOfWeekRecurrenceMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public DayOfWeekRecurrenceMVO dates(OffsetDateTime dates) { @@ -127,24 +131,24 @@ public class DayOfWeekRecurrenceMVO { return false; } DayOfWeekRecurrenceMVO dayOfWeekRecurrenceMVO = (DayOfWeekRecurrenceMVO) o; - return Objects.equals(this.atType, dayOfWeekRecurrenceMVO.atType) && - Objects.equals(this.atBaseType, dayOfWeekRecurrenceMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, dayOfWeekRecurrenceMVO.atSchemaLocation) && + 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(atType, atBaseType, atSchemaLocation, dates); + return Objects.hash(type, baseType, schemaLocation, dates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DayOfWeekRecurrenceMVO {\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(" 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(); 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 index 7501efa..d926f80 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -14,8 +14,10 @@ import java.util.Objects; @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 Duration { + @JsonProperty("amount") private Integer amount; + @JsonProperty("units") private String units; public Duration amount(Integer amount) { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java index d581a36..685d7a6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,20 +14,14 @@ import java.util.Objects; @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 ExternalIdentifier { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; +public class ExternalIdentifier extends BaseRootEntity { + @JsonProperty("owner") private String owner; + @JsonProperty("externalIdentifierType") private String externalIdentifierType; - private String id; - public ExternalIdentifier() { super(); } @@ -34,68 +29,8 @@ public class ExternalIdentifier { /** * Constructor with only required parameters */ - public ExternalIdentifier(String atType) { - this.atType = atType; - } - - public ExternalIdentifier 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 ExternalIdentifier 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 ExternalIdentifier 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 ExternalIdentifier(String type) { + this.type = type; } public ExternalIdentifier owner(String owner) { @@ -138,26 +73,6 @@ public class ExternalIdentifier { this.externalIdentifierType = externalIdentifierType; } - public ExternalIdentifier id(String id) { - this.id = id; - return this; - } - - /** - * identification of the entity within the external system. - * @return id - */ - - @Schema(name = "id", description = "identification of the entity within the external system.", 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) { @@ -167,29 +82,29 @@ public class ExternalIdentifier { return false; } ExternalIdentifier externalIdentifier = (ExternalIdentifier) o; - return Objects.equals(this.atType, externalIdentifier.atType) && - Objects.equals(this.atBaseType, externalIdentifier.atBaseType) && - Objects.equals(this.atSchemaLocation, externalIdentifier.atSchemaLocation) && + return Objects.equals(this.type, externalIdentifier.type) && + Objects.equals(this.baseType, externalIdentifier.baseType) && + Objects.equals(this.schemaLocation, externalIdentifier.schemaLocation) && Objects.equals(this.owner, externalIdentifier.owner) && Objects.equals(this.externalIdentifierType, externalIdentifier.externalIdentifierType) && - Objects.equals(this.id, externalIdentifier.id); + Objects.equals(this.uuid, externalIdentifier.uuid); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, owner, externalIdentifierType, id); + return Objects.hash(type, baseType, schemaLocation, owner, externalIdentifierType, uuid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalIdentifier {\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(" atType: ").append(toIndentedString(type)).append("\n"); + sb.append(" atBaseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" atSchemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); sb.append(" externalIdentifierType: ").append(toIndentedString(externalIdentifierType)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java index 9bac525..41f0164 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierFVO.java @@ -15,14 +15,19 @@ import java.util.Objects; @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 ExternalIdentifierFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("owner") private String owner; + @JsonProperty("externalIdentifierType") private String externalIdentifierType; public ExternalIdentifierFVO() { @@ -32,68 +37,68 @@ public class ExternalIdentifierFVO { /** * Constructor with only required parameters */ - public ExternalIdentifierFVO(String atType) { - this.atType = atType; + public ExternalIdentifierFVO(String type) { + this.type = type; } - public ExternalIdentifierFVO atType(String atType) { - this.atType = atType; + public ExternalIdentifierFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ExternalIdentifierFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ExternalIdentifierFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ExternalIdentifierFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ExternalIdentifierFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ExternalIdentifierFVO owner(String owner) { @@ -145,25 +150,25 @@ public class ExternalIdentifierFVO { return false; } ExternalIdentifierFVO externalIdentifierFVO = (ExternalIdentifierFVO) o; - return Objects.equals(this.atType, externalIdentifierFVO.atType) && - Objects.equals(this.atBaseType, externalIdentifierFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, externalIdentifierFVO.atSchemaLocation) && + return Objects.equals(this.type, externalIdentifierFVO.type) && + Objects.equals(this.baseType, externalIdentifierFVO.baseType) && + Objects.equals(this.schemaLocation, externalIdentifierFVO.schemaLocation) && Objects.equals(this.owner, externalIdentifierFVO.owner) && Objects.equals(this.externalIdentifierType, externalIdentifierFVO.externalIdentifierType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, owner, externalIdentifierType); + return Objects.hash(type, baseType, schemaLocation, owner, externalIdentifierType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalIdentifierFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); sb.append(" externalIdentifierType: ").append(toIndentedString(externalIdentifierType)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java index 0cd368c..509e624 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifierMVO.java @@ -3,6 +3,7 @@ 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 jdk.security.jarsigner.JarSigner; import javax.annotation.Generated; import java.util.Objects; @@ -15,17 +16,23 @@ import java.util.Objects; @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 ExternalIdentifierMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("owner") private String owner; + @JsonProperty("externalIdentifierType") private String externalIdentifierType; - private String id; + @JsonProperty("uuid") + private String uuid; public ExternalIdentifierMVO() { super(); @@ -34,68 +41,68 @@ public class ExternalIdentifierMVO { /** * Constructor with only required parameters */ - public ExternalIdentifierMVO(String atType) { - this.atType = atType; + public ExternalIdentifierMVO(String type) { + this.type = type; } - public ExternalIdentifierMVO atType(String atType) { - this.atType = atType; + public ExternalIdentifierMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ExternalIdentifierMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ExternalIdentifierMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ExternalIdentifierMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ExternalIdentifierMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ExternalIdentifierMVO owner(String owner) { @@ -138,8 +145,8 @@ public class ExternalIdentifierMVO { this.externalIdentifierType = externalIdentifierType; } - public ExternalIdentifierMVO id(String id) { - this.id = id; + public ExternalIdentifierMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -148,14 +155,14 @@ public class ExternalIdentifierMVO { * @return id */ - @Schema(name = "id", description = "identification of the entity within the external system.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "identification of the entity within the external system.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } @Override @@ -167,29 +174,29 @@ public class ExternalIdentifierMVO { return false; } ExternalIdentifierMVO externalIdentifierMVO = (ExternalIdentifierMVO) o; - return Objects.equals(this.atType, externalIdentifierMVO.atType) && - Objects.equals(this.atBaseType, externalIdentifierMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, externalIdentifierMVO.atSchemaLocation) && + return Objects.equals(this.type, externalIdentifierMVO.type) && + Objects.equals(this.baseType, externalIdentifierMVO.baseType) && + Objects.equals(this.schemaLocation, externalIdentifierMVO.schemaLocation) && Objects.equals(this.owner, externalIdentifierMVO.owner) && Objects.equals(this.externalIdentifierType, externalIdentifierMVO.externalIdentifierType) && - Objects.equals(this.id, externalIdentifierMVO.id); + Objects.equals(this.uuid, externalIdentifierMVO.uuid); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, owner, externalIdentifierType, id); + return Objects.hash(type, baseType, schemaLocation, owner, externalIdentifierType, uuid); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExternalIdentifierMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" owner: ").append(toIndentedString(owner)).append("\n"); sb.append(" externalIdentifierType: ").append(toIndentedString(externalIdentifierType)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java index 8581f65..e7764b2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java @@ -4,6 +4,7 @@ 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.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.ArrayList; @@ -16,31 +17,26 @@ import java.util.Objects; @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 Feature { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; +public class Feature extends BaseRootNamedEntity { + @JsonProperty("isBundle") private Boolean isBundle; + @JsonProperty("featureRelationship") @Valid private List featureRelationship = new ArrayList<>(); + @JsonProperty("featureCharacteristic") @Valid private List featureCharacteristic = new ArrayList<>(); + @JsonProperty("policyConstraint") @Valid private List policyConstraint = new ArrayList<>(); + @JsonProperty("isEnabled") private Boolean isEnabled; - private String id; - - private String name; - public Feature() { super(); } @@ -48,70 +44,10 @@ public class Feature { /** * Constructor with only required parameters */ - public Feature(String atType) { - this.atType = atType; - } - - public Feature 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 Feature(String type) { + this.type = type; } - - public Feature 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 Feature 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 Feature isBundle(Boolean isBundle) { this.isBundle = isBundle; return this; @@ -235,47 +171,7 @@ public class Feature { public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; } - - public Feature 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 Feature name(String name) { - this.name = name; - return this; - } - - /** - * This is the name for the feature. - * @return name - */ - - @Schema(name = "name", description = "This is the name for the feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - @Override public boolean equals(Object o) { if (this == o) { @@ -285,36 +181,36 @@ public class Feature { return false; } Feature feature = (Feature) o; - return Objects.equals(this.atType, feature.atType) && - Objects.equals(this.atBaseType, feature.atBaseType) && - Objects.equals(this.atSchemaLocation, feature.atSchemaLocation) && + return Objects.equals(this.type, feature.type) && + Objects.equals(this.baseType, feature.baseType) && + Objects.equals(this.schemaLocation, feature.schemaLocation) && Objects.equals(this.isBundle, feature.isBundle) && Objects.equals(this.featureRelationship, feature.featureRelationship) && Objects.equals(this.featureCharacteristic, feature.featureCharacteristic) && Objects.equals(this.policyConstraint, feature.policyConstraint) && Objects.equals(this.isEnabled, feature.isEnabled) && - Objects.equals(this.id, feature.id) && + Objects.equals(this.uuid, feature.uuid) && Objects.equals(this.name, feature.name); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, id, name); + return Objects.hash(type, baseType, schemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, uuid, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Feature {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" isBundle: ").append(toIndentedString(isBundle)).append("\n"); sb.append(" featureRelationship: ").append(toIndentedString(featureRelationship)).append("\n"); sb.append(" featureCharacteristic: ").append(toIndentedString(featureCharacteristic)).append("\n"); sb.append(" policyConstraint: ").append(toIndentedString(policyConstraint)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java index 6530ee9..401bd5c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureFVO.java @@ -18,25 +18,34 @@ import java.util.Objects; @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 FeatureFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("isBundle") private Boolean isBundle; + @JsonProperty("featureRelationship") @Valid private List featureRelationship = new ArrayList<>(); + @JsonProperty("featureCharacteristic") @Valid private List featureCharacteristic = new ArrayList<>(); + @JsonProperty("policyConstraint") @Valid private List policyConstraint = new ArrayList<>(); + @JsonProperty("isEnabled") private Boolean isEnabled; + @JsonProperty("name") private String name; public FeatureFVO() { @@ -46,68 +55,68 @@ public class FeatureFVO { /** * Constructor with only required parameters */ - public FeatureFVO(String atType) { - this.atType = atType; + public FeatureFVO(String type) { + this.type = type; } - public FeatureFVO atType(String atType) { - this.atType = atType; + public FeatureFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FeatureFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FeatureFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FeatureFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FeatureFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FeatureFVO isBundle(Boolean isBundle) { @@ -263,9 +272,9 @@ public class FeatureFVO { return false; } FeatureFVO featureFVO = (FeatureFVO) o; - return Objects.equals(this.atType, featureFVO.atType) && - Objects.equals(this.atBaseType, featureFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, featureFVO.atSchemaLocation) && + return Objects.equals(this.type, featureFVO.type) && + Objects.equals(this.baseType, featureFVO.baseType) && + Objects.equals(this.schemaLocation, featureFVO.schemaLocation) && Objects.equals(this.isBundle, featureFVO.isBundle) && Objects.equals(this.featureRelationship, featureFVO.featureRelationship) && Objects.equals(this.featureCharacteristic, featureFVO.featureCharacteristic) && @@ -276,16 +285,16 @@ public class FeatureFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, name); + return Objects.hash(type, baseType, schemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FeatureFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" isBundle: ").append(toIndentedString(isBundle)).append("\n"); sb.append(" featureRelationship: ").append(toIndentedString(featureRelationship)).append("\n"); sb.append(" featureCharacteristic: ").append(toIndentedString(featureCharacteristic)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java index 55436e5..91dd2e5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureMVO.java @@ -18,27 +18,37 @@ import java.util.Objects; @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 FeatureMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("isBundle") private Boolean isBundle; + @JsonProperty("featureRelationship") @Valid private List featureRelationship = new ArrayList<>(); + @JsonProperty("featureCharacteristic") @Valid private List featureCharacteristic = new ArrayList<>(); + @JsonProperty("policyConstraint") @Valid private List policyConstraint = new ArrayList<>(); + @JsonProperty("isEnabled") private Boolean isEnabled; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; public FeatureMVO() { @@ -48,69 +58,69 @@ public class FeatureMVO { /** * Constructor with only required parameters */ - public FeatureMVO(String atType, String name) { - this.atType = atType; + public FeatureMVO(String type, String name) { + this.type = type; this.name = name; } - public FeatureMVO atType(String atType) { - this.atType = atType; + public FeatureMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FeatureMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FeatureMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FeatureMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FeatureMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FeatureMVO isBundle(Boolean isBundle) { @@ -237,8 +247,8 @@ public class FeatureMVO { this.isEnabled = isEnabled; } - public FeatureMVO id(String id) { - this.id = id; + public FeatureMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -247,14 +257,14 @@ public class FeatureMVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public FeatureMVO name(String name) { @@ -286,36 +296,36 @@ public class FeatureMVO { return false; } FeatureMVO featureMVO = (FeatureMVO) o; - return Objects.equals(this.atType, featureMVO.atType) && - Objects.equals(this.atBaseType, featureMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, featureMVO.atSchemaLocation) && + return Objects.equals(this.type, featureMVO.type) && + Objects.equals(this.baseType, featureMVO.baseType) && + Objects.equals(this.schemaLocation, featureMVO.schemaLocation) && Objects.equals(this.isBundle, featureMVO.isBundle) && Objects.equals(this.featureRelationship, featureMVO.featureRelationship) && Objects.equals(this.featureCharacteristic, featureMVO.featureCharacteristic) && Objects.equals(this.policyConstraint, featureMVO.policyConstraint) && Objects.equals(this.isEnabled, featureMVO.isEnabled) && - Objects.equals(this.id, featureMVO.id) && + Objects.equals(this.uuid, featureMVO.uuid) && Objects.equals(this.name, featureMVO.name); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, id, name); + return Objects.hash(type, baseType, schemaLocation, isBundle, featureRelationship, featureCharacteristic, policyConstraint, isEnabled, uuid, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FeatureMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" isBundle: ").append(toIndentedString(isBundle)).append("\n"); sb.append(" featureRelationship: ").append(toIndentedString(featureRelationship)).append("\n"); sb.append(" featureCharacteristic: ").append(toIndentedString(featureCharacteristic)).append("\n"); sb.append(" policyConstraint: ").append(toIndentedString(policyConstraint)).append("\n"); sb.append(" isEnabled: ").append(toIndentedString(isEnabled)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java index e4542a4..8bc4f5a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java @@ -6,6 +6,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; +import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -16,21 +17,9 @@ import java.util.Objects; @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 FeatureRelationship { +public class FeatureRelationship extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + private String referredType; /** * This is the type of the feature relationship. @@ -82,149 +71,29 @@ public class FeatureRelationship { /** * Constructor with only required parameters */ - public FeatureRelationship(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public FeatureRelationship 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 FeatureRelationship 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 FeatureRelationship 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 FeatureRelationship href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public FeatureRelationship id(String id) { - this.id = id; - return this; + public FeatureRelationship(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public FeatureRelationship name(String name) { - this.name = name; - return this; - } - - /** - * This is the name of the target feature. - * @return name - */ - @Schema(name = "name", description = "This is the name of the target feature.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("name") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public FeatureRelationship atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public FeatureRelationship referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public FeatureRelationship relationshipType(RelationshipTypeEnum relationshipType) { @@ -276,33 +145,33 @@ public class FeatureRelationship { return false; } FeatureRelationship featureRelationship = (FeatureRelationship) o; - return Objects.equals(this.atType, featureRelationship.atType) && - Objects.equals(this.atBaseType, featureRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, featureRelationship.atSchemaLocation) && + return Objects.equals(this.type, featureRelationship.type) && + Objects.equals(this.baseType, featureRelationship.baseType) && + Objects.equals(this.schemaLocation, featureRelationship.schemaLocation) && Objects.equals(this.href, featureRelationship.href) && - Objects.equals(this.id, featureRelationship.id) && + Objects.equals(this.uuid, featureRelationship.uuid) && Objects.equals(this.name, featureRelationship.name) && - Objects.equals(this.atReferredType, featureRelationship.atReferredType) && + Objects.equals(this.referredType, featureRelationship.referredType) && Objects.equals(this.relationshipType, featureRelationship.relationshipType) && Objects.equals(this.validFor, featureRelationship.validFor); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, relationshipType, validFor); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, relationshipType, validFor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FeatureRelationship {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java index 3066ced..10319d1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java @@ -18,19 +18,26 @@ import java.util.Objects; @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 FeatureRelationshipFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; /** * This is the type of the feature relationship. @@ -82,70 +89,70 @@ public class FeatureRelationshipFVO { /** * Constructor with only required parameters */ - public FeatureRelationshipFVO(String atType, String id, RelationshipTypeEnum relationshipType) { - this.atType = atType; - this.id = id; + public FeatureRelationshipFVO(String type, String uuid, RelationshipTypeEnum relationshipType) { + this.type = type; + this.uuid = uuid; this.relationshipType = relationshipType; } - public FeatureRelationshipFVO atType(String atType) { - this.atType = atType; + public FeatureRelationshipFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FeatureRelationshipFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FeatureRelationshipFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FeatureRelationshipFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FeatureRelationshipFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setAtSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FeatureRelationshipFVO href(String href) { @@ -168,8 +175,8 @@ public class FeatureRelationshipFVO { this.href = href; } - public FeatureRelationshipFVO id(String id) { - this.id = id; + public FeatureRelationshipFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -178,14 +185,14 @@ public class FeatureRelationshipFVO { * @return id */ @NotNull - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public FeatureRelationshipFVO name(String name) { @@ -208,24 +215,24 @@ public class FeatureRelationshipFVO { this.name = name; } - public FeatureRelationshipFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public FeatureRelationshipFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public FeatureRelationshipFVO relationshipType(RelationshipTypeEnum relationshipType) { @@ -277,33 +284,33 @@ public class FeatureRelationshipFVO { return false; } FeatureRelationshipFVO featureRelationshipFVO = (FeatureRelationshipFVO) o; - return Objects.equals(this.atType, featureRelationshipFVO.atType) && - Objects.equals(this.atBaseType, featureRelationshipFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, featureRelationshipFVO.atSchemaLocation) && + return Objects.equals(this.type, featureRelationshipFVO.type) && + Objects.equals(this.baseType, featureRelationshipFVO.baseType) && + Objects.equals(this.schemaLocation, featureRelationshipFVO.schemaLocation) && Objects.equals(this.href, featureRelationshipFVO.href) && - Objects.equals(this.id, featureRelationshipFVO.id) && + Objects.equals(this.uuid, featureRelationshipFVO.uuid) && Objects.equals(this.name, featureRelationshipFVO.name) && - Objects.equals(this.atReferredType, featureRelationshipFVO.atReferredType) && + Objects.equals(this.referredType, featureRelationshipFVO.referredType) && Objects.equals(this.relationshipType, featureRelationshipFVO.relationshipType) && Objects.equals(this.validFor, featureRelationshipFVO.validFor); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, relationshipType, validFor); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, relationshipType, validFor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FeatureRelationshipFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java index 8737c50..b7e26bb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java @@ -18,19 +18,26 @@ import java.util.Objects; @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 FeatureRelationshipMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; /** * This is the type of the feature relationship. @@ -82,70 +89,70 @@ public class FeatureRelationshipMVO { /** * Constructor with only required parameters */ - public FeatureRelationshipMVO(String atType, String id, RelationshipTypeEnum relationshipType) { - this.atType = atType; - this.id = id; + public FeatureRelationshipMVO(String type, String uuid, RelationshipTypeEnum relationshipType) { + this.type = type; + this.uuid = uuid; this.relationshipType = relationshipType; } - public FeatureRelationshipMVO atType(String atType) { - this.atType = atType; + public FeatureRelationshipMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public FeatureRelationshipMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public FeatureRelationshipMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public FeatureRelationshipMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public FeatureRelationshipMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public FeatureRelationshipMVO href(String href) { @@ -168,8 +175,8 @@ public class FeatureRelationshipMVO { this.href = href; } - public FeatureRelationshipMVO id(String id) { - this.id = id; + public FeatureRelationshipMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -178,14 +185,14 @@ public class FeatureRelationshipMVO { * @return id */ @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public FeatureRelationshipMVO name(String name) { @@ -208,24 +215,24 @@ public class FeatureRelationshipMVO { this.name = name; } - public FeatureRelationshipMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public FeatureRelationshipMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public FeatureRelationshipMVO relationshipType(RelationshipTypeEnum relationshipType) { @@ -277,33 +284,33 @@ public class FeatureRelationshipMVO { return false; } FeatureRelationshipMVO featureRelationshipMVO = (FeatureRelationshipMVO) o; - return Objects.equals(this.atType, featureRelationshipMVO.atType) && - Objects.equals(this.atBaseType, featureRelationshipMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, featureRelationshipMVO.atSchemaLocation) && + return Objects.equals(this.type, featureRelationshipMVO.type) && + Objects.equals(this.baseType, featureRelationshipMVO.baseType) && + Objects.equals(this.schemaLocation, featureRelationshipMVO.schemaLocation) && Objects.equals(this.href, featureRelationshipMVO.href) && - Objects.equals(this.id, featureRelationshipMVO.id) && + Objects.equals(this.uuid, featureRelationshipMVO.uuid) && Objects.equals(this.name, featureRelationshipMVO.name) && - Objects.equals(this.atReferredType, featureRelationshipMVO.atReferredType) && + Objects.equals(this.referredType, featureRelationshipMVO.referredType) && Objects.equals(this.relationshipType, featureRelationshipMVO.relationshipType) && Objects.equals(this.validFor, featureRelationshipMVO.validFor); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, relationshipType, validFor); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, relationshipType, validFor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FeatureRelationshipMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java index 1e30ba4..7431225 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -14,21 +15,10 @@ import java.util.Objects; @Schema(name = "IntentRef", description = "Intent reference, for when Intent is used by other entities") @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 IntentRef { +public class IntentRef extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public IntentRef() { super(); @@ -37,149 +27,29 @@ public class IntentRef { /** * Constructor with only required parameters */ - public IntentRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public IntentRef 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 IntentRef 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 IntentRef 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 IntentRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public IntentRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public IntentRef 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 IntentRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public IntentRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public IntentRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -191,31 +61,31 @@ public class IntentRef { return false; } IntentRef intentRef = (IntentRef) o; - return Objects.equals(this.atType, intentRef.atType) && - Objects.equals(this.atBaseType, intentRef.atBaseType) && - Objects.equals(this.atSchemaLocation, intentRef.atSchemaLocation) && + return Objects.equals(this.type, intentRef.type) && + Objects.equals(this.baseType, intentRef.baseType) && + Objects.equals(this.schemaLocation, intentRef.schemaLocation) && Objects.equals(this.href, intentRef.href) && - Objects.equals(this.id, intentRef.id) && + Objects.equals(this.uuid, intentRef.uuid) && Objects.equals(this.name, intentRef.name) && - Objects.equals(this.atReferredType, intentRef.atReferredType); + Objects.equals(this.referredType, intentRef.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntentRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java index 728a5ef..3412c6d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefFVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 IntentRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public IntentRefFVO() { super(); @@ -37,68 +44,68 @@ public class IntentRefFVO { /** * Constructor with only required parameters */ - public IntentRefFVO(String atType) { - this.atType = atType; + public IntentRefFVO(String type) { + this.type = type; } - public IntentRefFVO atType(String atType) { - this.atType = atType; + public IntentRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public IntentRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public IntentRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public IntentRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public IntentRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public IntentRefFVO href(String href) { @@ -121,8 +128,8 @@ public class IntentRefFVO { this.href = href; } - public IntentRefFVO id(String id) { - this.id = id; + public IntentRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class IntentRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public IntentRefFVO name(String name) { @@ -161,24 +168,24 @@ public class IntentRefFVO { this.name = name; } - public IntentRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public IntentRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class IntentRefFVO { return false; } IntentRefFVO intentRefFVO = (IntentRefFVO) o; - return Objects.equals(this.atType, intentRefFVO.atType) && - Objects.equals(this.atBaseType, intentRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, intentRefFVO.atSchemaLocation) && + return Objects.equals(this.type, intentRefFVO.type) && + Objects.equals(this.baseType, intentRefFVO.baseType) && + Objects.equals(this.schemaLocation, intentRefFVO.schemaLocation) && Objects.equals(this.href, intentRefFVO.href) && - Objects.equals(this.id, intentRefFVO.id) && + Objects.equals(this.uuid, intentRefFVO.uuid) && Objects.equals(this.name, intentRefFVO.name) && - Objects.equals(this.atReferredType, intentRefFVO.atReferredType); + Objects.equals(this.referredType, intentRefFVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntentRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java index 451873b..63551a5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRefMVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 IntentRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public IntentRefMVO() { super(); @@ -37,68 +44,68 @@ public class IntentRefMVO { /** * Constructor with only required parameters */ - public IntentRefMVO(String atType) { - this.atType = atType; + public IntentRefMVO(String type) { + this.type = type; } - public IntentRefMVO atType(String atType) { - this.atType = atType; + public IntentRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public IntentRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public IntentRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public IntentRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public IntentRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public IntentRefMVO href(String href) { @@ -121,8 +128,8 @@ public class IntentRefMVO { this.href = href; } - public IntentRefMVO id(String id) { - this.id = id; + public IntentRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class IntentRefMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public IntentRefMVO name(String name) { @@ -161,24 +168,24 @@ public class IntentRefMVO { this.name = name; } - public IntentRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public IntentRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class IntentRefMVO { return false; } IntentRefMVO intentRefMVO = (IntentRefMVO) o; - return Objects.equals(this.atType, intentRefMVO.atType) && - Objects.equals(this.atBaseType, intentRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, intentRefMVO.atSchemaLocation) && + return Objects.equals(this.type, intentRefMVO.type) && + Objects.equals(this.baseType, intentRefMVO.baseType) && + Objects.equals(this.schemaLocation, intentRefMVO.schemaLocation) && Objects.equals(this.href, intentRefMVO.href) && - Objects.equals(this.id, intentRefMVO.id) && + Objects.equals(this.uuid, intentRefMVO.uuid) && Objects.equals(this.name, intentRefMVO.name) && - Objects.equals(this.atReferredType, intentRefMVO.atReferredType); + Objects.equals(this.referredType, intentRefMVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class IntentRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java index 9eebaa9..7a62bc1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJobMVO.java @@ -55,7 +55,7 @@ public class ManagementJobMVO { @Valid private List dataAccessEndpoint = new ArrayList<>(); - @JsonProperty("jobId") + @JsonProperty("scheduleDefinition") @Valid private List scheduleDefinition = new ArrayList<>(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index 0c086ac..7900e52 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -15,14 +15,19 @@ import java.util.Objects; @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 MonitoredClassCriteria { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("monitoredObjectClass") private String monitoredObjectClass; + @JsonProperty("objectInstanceFilter") private String objectInstanceFilter; public MonitoredClassCriteria() { @@ -32,68 +37,68 @@ public class MonitoredClassCriteria { /** * Constructor with only required parameters */ - public MonitoredClassCriteria(String atType) { - this.atType = atType; + public MonitoredClassCriteria(String type) { + this.type = type; } - public MonitoredClassCriteria atType(String atType) { - this.atType = atType; + public MonitoredClassCriteria type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonitoredClassCriteria atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonitoredClassCriteria baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonitoredClassCriteria atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonitoredClassCriteria schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonitoredClassCriteria monitoredObjectClass(String monitoredObjectClass) { @@ -145,25 +150,25 @@ public class MonitoredClassCriteria { return false; } MonitoredClassCriteria monitoredClassCriteria = (MonitoredClassCriteria) o; - return Objects.equals(this.atType, monitoredClassCriteria.atType) && - Objects.equals(this.atBaseType, monitoredClassCriteria.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredClassCriteria.atSchemaLocation) && + return Objects.equals(this.type, monitoredClassCriteria.type) && + Objects.equals(this.baseType, monitoredClassCriteria.baseType) && + Objects.equals(this.schemaLocation, monitoredClassCriteria.schemaLocation) && Objects.equals(this.monitoredObjectClass, monitoredClassCriteria.monitoredObjectClass) && Objects.equals(this.objectInstanceFilter, monitoredClassCriteria.objectInstanceFilter); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectClass, objectInstanceFilter); + return Objects.hash(type, baseType, schemaLocation, monitoredObjectClass, objectInstanceFilter); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitoredClassCriteria {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java index 95ae96f..436acd3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteriaFVO.java @@ -15,14 +15,19 @@ import java.util.Objects; @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 MonitoredClassCriteriaFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("monitoredObjectClass") private String monitoredObjectClass; + @JsonProperty("objectInstanceFilter") private String objectInstanceFilter; public MonitoredClassCriteriaFVO() { @@ -32,68 +37,68 @@ public class MonitoredClassCriteriaFVO { /** * Constructor with only required parameters */ - public MonitoredClassCriteriaFVO(String atType) { - this.atType = atType; + public MonitoredClassCriteriaFVO(String type) { + this.type = type; } - public MonitoredClassCriteriaFVO atType(String atType) { - this.atType = atType; + public MonitoredClassCriteriaFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonitoredClassCriteriaFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonitoredClassCriteriaFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonitoredClassCriteriaFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonitoredClassCriteriaFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonitoredClassCriteriaFVO monitoredObjectClass(String monitoredObjectClass) { @@ -145,25 +150,25 @@ public class MonitoredClassCriteriaFVO { return false; } MonitoredClassCriteriaFVO monitoredClassCriteriaFVO = (MonitoredClassCriteriaFVO) o; - return Objects.equals(this.atType, monitoredClassCriteriaFVO.atType) && - Objects.equals(this.atBaseType, monitoredClassCriteriaFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredClassCriteriaFVO.atSchemaLocation) && + return Objects.equals(this.type, monitoredClassCriteriaFVO.type) && + Objects.equals(this.baseType, monitoredClassCriteriaFVO.baseType) && + Objects.equals(this.schemaLocation, monitoredClassCriteriaFVO.schemaLocation) && Objects.equals(this.monitoredObjectClass, monitoredClassCriteriaFVO.monitoredObjectClass) && Objects.equals(this.objectInstanceFilter, monitoredClassCriteriaFVO.objectInstanceFilter); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectClass, objectInstanceFilter); + return Objects.hash(type, baseType, schemaLocation, monitoredObjectClass, objectInstanceFilter); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitoredClassCriteriaFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" monitoredObjectClass: ").append(toIndentedString(monitoredObjectClass)).append("\n"); sb.append(" objectInstanceFilter: ").append(toIndentedString(objectInstanceFilter)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index ebf978d..8bac500 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -19,12 +19,16 @@ import java.util.Objects; @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 MonitoredInstancesCriteria { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("monitoredObjectInstances") @Valid private List monitoredObjectInstances = new ArrayList<>(); @@ -35,68 +39,68 @@ public class MonitoredInstancesCriteria { /** * Constructor with only required parameters */ - public MonitoredInstancesCriteria(String atType) { - this.atType = atType; + public MonitoredInstancesCriteria(String type) { + this.type = type; } - public MonitoredInstancesCriteria atType(String atType) { - this.atType = atType; + public MonitoredInstancesCriteria type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonitoredInstancesCriteria atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonitoredInstancesCriteria baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonitoredInstancesCriteria atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonitoredInstancesCriteria schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonitoredInstancesCriteria monitoredObjectInstances(List monitoredObjectInstances) { @@ -136,24 +140,24 @@ public class MonitoredInstancesCriteria { return false; } MonitoredInstancesCriteria monitoredInstancesCriteria = (MonitoredInstancesCriteria) o; - return Objects.equals(this.atType, monitoredInstancesCriteria.atType) && - Objects.equals(this.atBaseType, monitoredInstancesCriteria.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredInstancesCriteria.atSchemaLocation) && + return Objects.equals(this.type, monitoredInstancesCriteria.type) && + Objects.equals(this.baseType, monitoredInstancesCriteria.baseType) && + Objects.equals(this.schemaLocation, monitoredInstancesCriteria.schemaLocation) && Objects.equals(this.monitoredObjectInstances, monitoredInstancesCriteria.monitoredObjectInstances); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectInstances); + return Objects.hash(type, baseType, schemaLocation, monitoredObjectInstances); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitoredInstancesCriteria {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" monitoredObjectInstances: ").append(toIndentedString(monitoredObjectInstances)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java index 6c51571..d91d0f7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteriaFVO.java @@ -19,12 +19,16 @@ import java.util.Objects; @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 MonitoredInstancesCriteriaFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("monitoredObjectInstances") @Valid private List monitoredObjectInstances = new ArrayList<>(); @@ -35,68 +39,68 @@ public class MonitoredInstancesCriteriaFVO { /** * Constructor with only required parameters */ - public MonitoredInstancesCriteriaFVO(String atType) { - this.atType = atType; + public MonitoredInstancesCriteriaFVO(String type) { + this.type = type; } - public MonitoredInstancesCriteriaFVO atType(String atType) { - this.atType = atType; + public MonitoredInstancesCriteriaFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonitoredInstancesCriteriaFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonitoredInstancesCriteriaFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonitoredInstancesCriteriaFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonitoredInstancesCriteriaFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonitoredInstancesCriteriaFVO monitoredObjectInstances(List monitoredObjectInstances) { @@ -136,24 +140,24 @@ public class MonitoredInstancesCriteriaFVO { return false; } MonitoredInstancesCriteriaFVO monitoredInstancesCriteriaFVO = (MonitoredInstancesCriteriaFVO) o; - return Objects.equals(this.atType, monitoredInstancesCriteriaFVO.atType) && - Objects.equals(this.atBaseType, monitoredInstancesCriteriaFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, monitoredInstancesCriteriaFVO.atSchemaLocation) && + return Objects.equals(this.type, monitoredInstancesCriteriaFVO.type) && + Objects.equals(this.baseType, monitoredInstancesCriteriaFVO.baseType) && + Objects.equals(this.schemaLocation, monitoredInstancesCriteriaFVO.schemaLocation) && Objects.equals(this.monitoredObjectInstances, monitoredInstancesCriteriaFVO.monitoredObjectInstances); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, monitoredObjectInstances); + return Objects.hash(type, baseType, schemaLocation, monitoredObjectInstances); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonitoredInstancesCriteriaFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" monitoredObjectInstances: ").append(toIndentedString(monitoredObjectInstances)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index 7dc6fa9..2dc0816 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -18,15 +18,20 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinition { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dayOfMonthRecurrence") @Valid private List dayOfMonthRecurrence = new ArrayList<>(); + @JsonProperty("recurringDaySequence") private String recurringDaySequence; public MonthlyScheduleDayOfWeekDefinition() { @@ -36,68 +41,68 @@ public class MonthlyScheduleDayOfWeekDefinition { /** * Constructor with only required parameters */ - public MonthlyScheduleDayOfWeekDefinition(String atType) { - this.atType = atType; + public MonthlyScheduleDayOfWeekDefinition(String type) { + this.type = type; } - public MonthlyScheduleDayOfWeekDefinition atType(String atType) { - this.atType = atType; + public MonthlyScheduleDayOfWeekDefinition type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonthlyScheduleDayOfWeekDefinition atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonthlyScheduleDayOfWeekDefinition baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonthlyScheduleDayOfWeekDefinition atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonthlyScheduleDayOfWeekDefinition schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonthlyScheduleDayOfWeekDefinition dayOfMonthRecurrence(List dayOfMonthRecurrence) { @@ -157,25 +162,25 @@ public class MonthlyScheduleDayOfWeekDefinition { return false; } MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition = (MonthlyScheduleDayOfWeekDefinition) o; - return Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinition.atType) && - Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinition.atBaseType) && - Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinition.atSchemaLocation) && + return Objects.equals(this.type, monthlyScheduleDayOfWeekDefinition.type) && + Objects.equals(this.baseType, monthlyScheduleDayOfWeekDefinition.baseType) && + Objects.equals(this.schemaLocation, monthlyScheduleDayOfWeekDefinition.schemaLocation) && Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinition.dayOfMonthRecurrence) && Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinition.recurringDaySequence); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, dayOfMonthRecurrence, recurringDaySequence); + return Objects.hash(type, baseType, schemaLocation, dayOfMonthRecurrence, recurringDaySequence); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonthlyScheduleDayOfWeekDefinition {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).append("\n"); sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java index 0c60d54..c5e8663 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionFVO.java @@ -18,15 +18,20 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinitionFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dayOfMonthRecurrence") @Valid private List dayOfMonthRecurrence = new ArrayList<>(); + @JsonProperty("recurringDaySequence") private String recurringDaySequence; public MonthlyScheduleDayOfWeekDefinitionFVO() { @@ -36,68 +41,68 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO { /** * Constructor with only required parameters */ - public MonthlyScheduleDayOfWeekDefinitionFVO(String atType) { - this.atType = atType; + public MonthlyScheduleDayOfWeekDefinitionFVO(String type) { + this.type = type; } - public MonthlyScheduleDayOfWeekDefinitionFVO atType(String atType) { - this.atType = atType; + public MonthlyScheduleDayOfWeekDefinitionFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonthlyScheduleDayOfWeekDefinitionFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonthlyScheduleDayOfWeekDefinitionFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonthlyScheduleDayOfWeekDefinitionFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonthlyScheduleDayOfWeekDefinitionFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonthlyScheduleDayOfWeekDefinitionFVO dayOfMonthRecurrence(List dayOfMonthRecurrence) { @@ -157,25 +162,25 @@ public class MonthlyScheduleDayOfWeekDefinitionFVO { return false; } MonthlyScheduleDayOfWeekDefinitionFVO monthlyScheduleDayOfWeekDefinitionFVO = (MonthlyScheduleDayOfWeekDefinitionFVO) o; - return Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinitionFVO.atType) && - Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinitionFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinitionFVO.atSchemaLocation) && + return Objects.equals(this.type, monthlyScheduleDayOfWeekDefinitionFVO.type) && + Objects.equals(this.baseType, monthlyScheduleDayOfWeekDefinitionFVO.baseType) && + Objects.equals(this.schemaLocation, monthlyScheduleDayOfWeekDefinitionFVO.schemaLocation) && Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinitionFVO.dayOfMonthRecurrence) && Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinitionFVO.recurringDaySequence); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, dayOfMonthRecurrence, recurringDaySequence); + return Objects.hash(type, baseType, schemaLocation, dayOfMonthRecurrence, recurringDaySequence); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonthlyScheduleDayOfWeekDefinitionFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).append("\n"); sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java index 775f710..760f22c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinitionMVO.java @@ -18,15 +18,20 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinitionMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("dayOfMonthRecurrence") @Valid private List dayOfMonthRecurrence = new ArrayList<>(); + @JsonProperty("recurringDaySequence") private String recurringDaySequence; public MonthlyScheduleDayOfWeekDefinitionMVO() { @@ -36,68 +41,68 @@ public class MonthlyScheduleDayOfWeekDefinitionMVO { /** * Constructor with only required parameters */ - public MonthlyScheduleDayOfWeekDefinitionMVO(String atType) { - this.atType = atType; + public MonthlyScheduleDayOfWeekDefinitionMVO(String type) { + this.type = type; } - public MonthlyScheduleDayOfWeekDefinitionMVO atType(String atType) { - this.atType = atType; + public MonthlyScheduleDayOfWeekDefinitionMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public MonthlyScheduleDayOfWeekDefinitionMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public MonthlyScheduleDayOfWeekDefinitionMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public MonthlyScheduleDayOfWeekDefinitionMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public MonthlyScheduleDayOfWeekDefinitionMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public MonthlyScheduleDayOfWeekDefinitionMVO dayOfMonthRecurrence(List dayOfMonthRecurrence) { @@ -157,25 +162,25 @@ public class MonthlyScheduleDayOfWeekDefinitionMVO { return false; } MonthlyScheduleDayOfWeekDefinitionMVO monthlyScheduleDayOfWeekDefinitionMVO = (MonthlyScheduleDayOfWeekDefinitionMVO) o; - return Objects.equals(this.atType, monthlyScheduleDayOfWeekDefinitionMVO.atType) && - Objects.equals(this.atBaseType, monthlyScheduleDayOfWeekDefinitionMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, monthlyScheduleDayOfWeekDefinitionMVO.atSchemaLocation) && + return Objects.equals(this.type, monthlyScheduleDayOfWeekDefinitionMVO.type) && + Objects.equals(this.baseType, monthlyScheduleDayOfWeekDefinitionMVO.baseType) && + Objects.equals(this.schemaLocation, monthlyScheduleDayOfWeekDefinitionMVO.schemaLocation) && Objects.equals(this.dayOfMonthRecurrence, monthlyScheduleDayOfWeekDefinitionMVO.dayOfMonthRecurrence) && Objects.equals(this.recurringDaySequence, monthlyScheduleDayOfWeekDefinitionMVO.recurringDaySequence); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, dayOfMonthRecurrence, recurringDaySequence); + return Objects.hash(type, baseType, schemaLocation, dayOfMonthRecurrence, recurringDaySequence); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MonthlyScheduleDayOfWeekDefinitionMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" dayOfMonthRecurrence: ").append(toIndentedString(dayOfMonthRecurrence)).append("\n"); sb.append(" recurringDaySequence: ").append(toIndentedString(recurringDaySequence)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java index 735c9d0..c44706c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java @@ -4,6 +4,7 @@ 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.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; import javax.annotation.Generated; @@ -16,21 +17,16 @@ import java.util.Objects; @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 Note { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String id; +public class Note extends BaseRootEntity { + @JsonProperty("author") private String author; + @JsonProperty("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime date; + @JsonProperty("text") private String text; public Note() { @@ -40,88 +36,8 @@ public class Note { /** * Constructor with only required parameters */ - public Note(String atType) { - this.atType = atType; - } - - public Note 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 Note 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 Note 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 Note id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the note within its containing entity - * @return id - */ - - @Schema(name = "id", example = "afa9-3d90aaa8da0f", description = "Identifier of the note within its containing entity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; + public Note(String type) { + this.type = type; } public Note author(String author) { @@ -193,10 +109,10 @@ public class Note { return false; } Note note = (Note) o; - return Objects.equals(this.atType, note.atType) && - Objects.equals(this.atBaseType, note.atBaseType) && - Objects.equals(this.atSchemaLocation, note.atSchemaLocation) && - Objects.equals(this.id, note.id) && + return Objects.equals(this.type, note.type) && + Objects.equals(this.baseType, note.baseType) && + Objects.equals(this.schemaLocation, note.schemaLocation) && + Objects.equals(this.uuid, note.uuid) && Objects.equals(this.author, note.author) && Objects.equals(this.date, note.date) && Objects.equals(this.text, note.text); @@ -204,17 +120,17 @@ public class Note { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, author, date, text); + return Objects.hash(type, baseType, schemaLocation, uuid, author, date, text); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Note {\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(" id: ").append(toIndentedString(id)).append("\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(" author: ").append(toIndentedString(author)).append("\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java index bdc1501..6d4d7dd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteFVO.java @@ -18,17 +18,23 @@ import java.util.Objects; @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 NoteFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("author") private String author; + @JsonProperty("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime date; + @JsonProperty("text") private String text; public NoteFVO() { @@ -38,68 +44,68 @@ public class NoteFVO { /** * Constructor with only required parameters */ - public NoteFVO(String atType) { - this.atType = atType; + public NoteFVO(String type) { + this.type = type; } - public NoteFVO atType(String atType) { - this.atType = atType; + public NoteFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public NoteFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public NoteFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public NoteFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public NoteFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setAtSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public NoteFVO author(String author) { @@ -171,9 +177,9 @@ public class NoteFVO { return false; } NoteFVO noteFVO = (NoteFVO) o; - return Objects.equals(this.atType, noteFVO.atType) && - Objects.equals(this.atBaseType, noteFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, noteFVO.atSchemaLocation) && + return Objects.equals(this.type, noteFVO.type) && + Objects.equals(this.baseType, noteFVO.baseType) && + Objects.equals(this.schemaLocation, noteFVO.schemaLocation) && Objects.equals(this.author, noteFVO.author) && Objects.equals(this.date, noteFVO.date) && Objects.equals(this.text, noteFVO.text); @@ -181,16 +187,16 @@ public class NoteFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, author, date, text); + return Objects.hash(type, baseType, schemaLocation, author, date, text); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NoteFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" author: ").append(toIndentedString(author)).append("\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java index a1563ba..7785c14 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/NoteMVO.java @@ -18,19 +18,26 @@ import java.util.Objects; @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 NoteMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("author") private String author; + @JsonProperty("date") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime date; + @JsonProperty("text") private String text; public NoteMVO() { @@ -40,72 +47,72 @@ public class NoteMVO { /** * Constructor with only required parameters */ - public NoteMVO(String atType) { - this.atType = atType; + public NoteMVO(String type) { + this.type = type; } - public NoteMVO atType(String atType) { - this.atType = atType; + public NoteMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public NoteMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public NoteMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public NoteMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public NoteMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public NoteMVO id(String id) { - this.id = id; + public NoteMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -114,14 +121,14 @@ public class NoteMVO { * @return id */ - @Schema(name = "id", example = "afa9-3d90aaa8da0f", description = "Identifier of the note within its containing entity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", example = "afa9-3d90aaa8da0f", description = "Identifier of the note within its containing entity", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public NoteMVO author(String author) { @@ -193,10 +200,10 @@ public class NoteMVO { return false; } NoteMVO noteMVO = (NoteMVO) o; - return Objects.equals(this.atType, noteMVO.atType) && - Objects.equals(this.atBaseType, noteMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, noteMVO.atSchemaLocation) && - Objects.equals(this.id, noteMVO.id) && + return Objects.equals(this.type, noteMVO.type) && + Objects.equals(this.baseType, noteMVO.baseType) && + Objects.equals(this.schemaLocation, noteMVO.schemaLocation) && + Objects.equals(this.uuid, noteMVO.uuid) && Objects.equals(this.author, noteMVO.author) && Objects.equals(this.date, noteMVO.date) && Objects.equals(this.text, noteMVO.text); @@ -204,17 +211,17 @@ public class NoteMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, id, author, date, text); + return Objects.hash(type, baseType, schemaLocation, uuid, author, date, text); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NoteMVO {\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(" id: ").append(toIndentedString(id)).append("\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(" author: ").append(toIndentedString(author)).append("\n"); sb.append(" date: ").append(toIndentedString(date)).append("\n"); sb.append(" text: ").append(toIndentedString(text)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 125b24b..9e1a6af 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -15,6 +15,7 @@ import java.util.Objects; @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 PackingType { + @JsonProperty("packingEnumType") private PackingEnumType packingEnumType; public PackingType packingEnumType(PackingEnumType packingEnumType) { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java index 3cd3553..f2a784b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -14,21 +15,10 @@ import java.util.Objects; @Schema(name = "PartyRef", description = "A Party reference") @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 PartyRef implements PartyRefOrPartyRoleRef { +public class PartyRef extends BaseRootNamedEntity implements PartyRefOrPartyRoleRef { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public PartyRef() { super(); @@ -37,149 +27,29 @@ public class PartyRef implements PartyRefOrPartyRoleRef { /** * Constructor with only required parameters */ - public PartyRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public PartyRef 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 PartyRef 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 PartyRef 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 PartyRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PartyRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PartyRef 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 PartyRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public PartyRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PartyRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -191,31 +61,31 @@ public class PartyRef implements PartyRefOrPartyRoleRef { return false; } PartyRef partyRef = (PartyRef) o; - return Objects.equals(this.atType, partyRef.atType) && - Objects.equals(this.atBaseType, partyRef.atBaseType) && - Objects.equals(this.atSchemaLocation, partyRef.atSchemaLocation) && + return Objects.equals(this.type, partyRef.type) && + Objects.equals(this.baseType, partyRef.baseType) && + Objects.equals(this.schemaLocation, partyRef.schemaLocation) && Objects.equals(this.href, partyRef.href) && - Objects.equals(this.id, partyRef.id) && + Objects.equals(this.uuid, partyRef.uuid) && Objects.equals(this.name, partyRef.name) && - Objects.equals(this.atReferredType, partyRef.atReferredType); + Objects.equals(this.referredType, partyRef.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartyRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java index 7bd2652..b7aaa14 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefFVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 PartyRefFVO implements PartyRefOrPartyRoleRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public PartyRefFVO() { super(); @@ -37,68 +44,68 @@ public class PartyRefFVO implements PartyRefOrPartyRoleRefFVO { /** * Constructor with only required parameters */ - public PartyRefFVO(String atType) { - this.atType = atType; + public PartyRefFVO(String type) { + this.type = type; } - public PartyRefFVO atType(String atType) { - this.atType = atType; + public PartyRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PartyRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PartyRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PartyRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PartyRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PartyRefFVO href(String href) { @@ -121,8 +128,8 @@ public class PartyRefFVO implements PartyRefOrPartyRoleRefFVO { this.href = href; } - public PartyRefFVO id(String id) { - this.id = id; + public PartyRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class PartyRefFVO implements PartyRefOrPartyRoleRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PartyRefFVO name(String name) { @@ -161,24 +168,24 @@ public class PartyRefFVO implements PartyRefOrPartyRoleRefFVO { this.name = name; } - public PartyRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PartyRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class PartyRefFVO implements PartyRefOrPartyRoleRefFVO { return false; } PartyRefFVO partyRefFVO = (PartyRefFVO) o; - return Objects.equals(this.atType, partyRefFVO.atType) && - Objects.equals(this.atBaseType, partyRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, partyRefFVO.atSchemaLocation) && + return Objects.equals(this.type, partyRefFVO.type) && + Objects.equals(this.baseType, partyRefFVO.baseType) && + Objects.equals(this.schemaLocation, partyRefFVO.schemaLocation) && Objects.equals(this.href, partyRefFVO.href) && - Objects.equals(this.id, partyRefFVO.id) && + Objects.equals(this.uuid, partyRefFVO.uuid) && Objects.equals(this.name, partyRefFVO.name) && - Objects.equals(this.atReferredType, partyRefFVO.atReferredType); + Objects.equals(this.referredType, partyRefFVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartyRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java index 584e114..1d5a9d4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefMVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 PartyRefMVO implements PartyRefOrPartyRoleRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public PartyRefMVO() { super(); @@ -37,68 +44,68 @@ public class PartyRefMVO implements PartyRefOrPartyRoleRefMVO { /** * Constructor with only required parameters */ - public PartyRefMVO(String atType) { - this.atType = atType; + public PartyRefMVO(String type) { + this.type = type; } - public PartyRefMVO atType(String atType) { - this.atType = atType; + public PartyRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PartyRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PartyRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PartyRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PartyRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PartyRefMVO href(String href) { @@ -121,8 +128,8 @@ public class PartyRefMVO implements PartyRefOrPartyRoleRefMVO { this.href = href; } - public PartyRefMVO id(String id) { - this.id = id; + public PartyRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class PartyRefMVO implements PartyRefOrPartyRoleRefMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PartyRefMVO name(String name) { @@ -161,24 +168,24 @@ public class PartyRefMVO implements PartyRefOrPartyRoleRefMVO { this.name = name; } - public PartyRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PartyRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class PartyRefMVO implements PartyRefOrPartyRoleRefMVO { return false; } PartyRefMVO partyRefMVO = (PartyRefMVO) o; - return Objects.equals(this.atType, partyRefMVO.atType) && - Objects.equals(this.atBaseType, partyRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, partyRefMVO.atSchemaLocation) && + return Objects.equals(this.type, partyRefMVO.type) && + Objects.equals(this.baseType, partyRefMVO.baseType) && + Objects.equals(this.schemaLocation, partyRefMVO.schemaLocation) && Objects.equals(this.href, partyRefMVO.href) && - Objects.equals(this.id, partyRefMVO.id) && + Objects.equals(this.uuid, partyRefMVO.uuid) && Objects.equals(this.name, partyRefMVO.name) && - Objects.equals(this.atReferredType, partyRefMVO.atReferredType); + Objects.equals(this.referredType, partyRefMVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartyRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java index 6a5cdd5..9f42c3a 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRef.java @@ -19,5 +19,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PartyRefOrPartyRoleRef { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java index 805bad9..eccd3c6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefFVO.java @@ -21,5 +21,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PartyRefOrPartyRoleRefFVO { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java index 7930ed3..1175dab 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRefOrPartyRoleRefMVO.java @@ -21,5 +21,5 @@ import javax.annotation.Generated; @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-05-15T07:30:16.936523289Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT") public interface PartyRefOrPartyRoleRefMVO { - public String getAtType(); + public String getType(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java index 7c1903f..edc380c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,24 +14,15 @@ import java.util.Objects; @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 PartyRoleRef implements PartyRefOrPartyRoleRef { +public class PartyRoleRef extends BaseRootNamedEntity implements PartyRefOrPartyRoleRef { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("partyId") private String partyId; + @JsonProperty("partyName") private String partyName; public PartyRoleRef() { @@ -40,149 +32,29 @@ public class PartyRoleRef implements PartyRefOrPartyRoleRef { /** * Constructor with only required parameters */ - public PartyRoleRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public PartyRoleRef 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 PartyRoleRef 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 PartyRoleRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; - } - - public PartyRoleRef 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 PartyRoleRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PartyRoleRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PartyRoleRef 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 PartyRoleRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PartyRoleRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PartyRoleRef partyId(String partyId) { @@ -234,33 +106,33 @@ public class PartyRoleRef implements PartyRefOrPartyRoleRef { return false; } PartyRoleRef partyRoleRef = (PartyRoleRef) o; - return Objects.equals(this.atType, partyRoleRef.atType) && - Objects.equals(this.atBaseType, partyRoleRef.atBaseType) && - Objects.equals(this.atSchemaLocation, partyRoleRef.atSchemaLocation) && + return Objects.equals(this.type, partyRoleRef.type) && + Objects.equals(this.baseType, partyRoleRef.baseType) && + Objects.equals(this.schemaLocation, partyRoleRef.schemaLocation) && Objects.equals(this.href, partyRoleRef.href) && - Objects.equals(this.id, partyRoleRef.id) && + Objects.equals(this.uuid, partyRoleRef.uuid) && Objects.equals(this.name, partyRoleRef.name) && - Objects.equals(this.atReferredType, partyRoleRef.atReferredType) && + Objects.equals(this.referredType, partyRoleRef.referredType) && Objects.equals(this.partyId, partyRoleRef.partyId) && Objects.equals(this.partyName, partyRoleRef.partyName); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, partyId, partyName); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, partyId, partyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartyRoleRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" partyId: ").append(toIndentedString(partyId)).append("\n"); sb.append(" partyName: ").append(toIndentedString(partyName)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java index 4f44089..fafb8ee 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefFVO.java @@ -15,22 +15,31 @@ import java.util.Objects; @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 PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("partyId") private String partyId; + @JsonProperty("partyName") private String partyName; public PartyRoleRefFVO() { @@ -40,68 +49,68 @@ public class PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { /** * Constructor with only required parameters */ - public PartyRoleRefFVO(String atType) { - this.atType = atType; + public PartyRoleRefFVO(String type) { + this.type = type; } - public PartyRoleRefFVO atType(String atType) { - this.atType = atType; + public PartyRoleRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PartyRoleRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PartyRoleRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PartyRoleRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PartyRoleRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PartyRoleRefFVO href(String href) { @@ -124,8 +133,8 @@ public class PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { this.href = href; } - public PartyRoleRefFVO id(String id) { - this.id = id; + public PartyRoleRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -134,14 +143,14 @@ public class PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PartyRoleRefFVO name(String name) { @@ -164,24 +173,24 @@ public class PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { this.name = name; } - public PartyRoleRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PartyRoleRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PartyRoleRefFVO partyId(String partyId) { @@ -233,33 +242,33 @@ public class PartyRoleRefFVO implements PartyRefOrPartyRoleRefFVO { return false; } PartyRoleRefFVO partyRoleRefFVO = (PartyRoleRefFVO) o; - return Objects.equals(this.atType, partyRoleRefFVO.atType) && - Objects.equals(this.atBaseType, partyRoleRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, partyRoleRefFVO.atSchemaLocation) && + return Objects.equals(this.type, partyRoleRefFVO.type) && + Objects.equals(this.baseType, partyRoleRefFVO.baseType) && + Objects.equals(this.schemaLocation, partyRoleRefFVO.schemaLocation) && Objects.equals(this.href, partyRoleRefFVO.href) && - Objects.equals(this.id, partyRoleRefFVO.id) && + Objects.equals(this.uuid, partyRoleRefFVO.uuid) && Objects.equals(this.name, partyRoleRefFVO.name) && - Objects.equals(this.atReferredType, partyRoleRefFVO.atReferredType) && + Objects.equals(this.referredType, partyRoleRefFVO.referredType) && Objects.equals(this.partyId, partyRoleRefFVO.partyId) && Objects.equals(this.partyName, partyRoleRefFVO.partyName); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, partyId, partyName); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, partyId, partyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartyRoleRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" partyId: ").append(toIndentedString(partyId)).append("\n"); sb.append(" partyName: ").append(toIndentedString(partyName)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java index b49c6fa..bc500b8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRefMVO.java @@ -15,22 +15,31 @@ import java.util.Objects; @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 PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("partyId") private String partyId; + @JsonProperty("partyName") private String partyName; public PartyRoleRefMVO() { @@ -40,68 +49,68 @@ public class PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { /** * Constructor with only required parameters */ - public PartyRoleRefMVO(String atType) { - this.atType = atType; + public PartyRoleRefMVO(String type) { + this.type = type; } - public PartyRoleRefMVO atType(String atType) { - this.atType = atType; + public PartyRoleRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PartyRoleRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PartyRoleRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PartyRoleRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PartyRoleRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PartyRoleRefMVO href(String href) { @@ -124,8 +133,8 @@ public class PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { this.href = href; } - public PartyRoleRefMVO id(String id) { - this.id = id; + public PartyRoleRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -134,14 +143,14 @@ public class PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PartyRoleRefMVO name(String name) { @@ -164,24 +173,24 @@ public class PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { this.name = name; } - public PartyRoleRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PartyRoleRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PartyRoleRefMVO partyId(String partyId) { @@ -233,33 +242,33 @@ public class PartyRoleRefMVO implements PartyRefOrPartyRoleRefMVO { return false; } PartyRoleRefMVO partyRoleRefMVO = (PartyRoleRefMVO) o; - return Objects.equals(this.atType, partyRoleRefMVO.atType) && - Objects.equals(this.atBaseType, partyRoleRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, partyRoleRefMVO.atSchemaLocation) && + return Objects.equals(this.type, partyRoleRefMVO.type) && + Objects.equals(this.baseType, partyRoleRefMVO.baseType) && + Objects.equals(this.schemaLocation, partyRoleRefMVO.schemaLocation) && Objects.equals(this.href, partyRoleRefMVO.href) && - Objects.equals(this.id, partyRoleRefMVO.id) && + Objects.equals(this.uuid, partyRoleRefMVO.uuid) && Objects.equals(this.name, partyRoleRefMVO.name) && - Objects.equals(this.atReferredType, partyRoleRefMVO.atReferredType) && + Objects.equals(this.referredType, partyRoleRefMVO.referredType) && Objects.equals(this.partyId, partyRoleRefMVO.partyId) && Objects.equals(this.partyName, partyRoleRefMVO.partyName); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, partyId, partyName); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, partyId, partyName); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PartyRoleRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" partyId: ").append(toIndentedString(partyId)).append("\n"); sb.append(" partyName: ").append(toIndentedString(partyName)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index 2641a3d..cb59c04 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -4,6 +4,7 @@ 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.common.model.BaseRootEntity; import javax.annotation.Generated; import java.util.Objects; @@ -14,22 +15,15 @@ import java.util.Objects; @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 PerformanceIndicatorSpecRelationship { - - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; +public class PerformanceIndicatorSpecRelationship extends BaseRootEntity { + @JsonProperty("relationshipType") private String relationshipType; + @JsonProperty("role") private String role; + @JsonProperty("validFor") private TimePeriod validFor; public PerformanceIndicatorSpecRelationship() { @@ -39,108 +33,8 @@ public class PerformanceIndicatorSpecRelationship { /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecRelationship(String atType) { - this.atType = atType; - } - - public PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship 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 PerformanceIndicatorSpecRelationship(String type) { + this.type = type; } public PerformanceIndicatorSpecRelationship relationshipType(String relationshipType) { @@ -212,11 +106,11 @@ public class PerformanceIndicatorSpecRelationship { return false; } PerformanceIndicatorSpecRelationship performanceIndicatorSpecRelationship = (PerformanceIndicatorSpecRelationship) o; - return Objects.equals(this.atType, performanceIndicatorSpecRelationship.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationship.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecRelationship.type) && + Objects.equals(this.baseType, performanceIndicatorSpecRelationship.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecRelationship.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecRelationship.href) && - Objects.equals(this.id, performanceIndicatorSpecRelationship.id) && + Objects.equals(this.uuid, performanceIndicatorSpecRelationship.uuid) && Objects.equals(this.relationshipType, performanceIndicatorSpecRelationship.relationshipType) && Objects.equals(this.role, performanceIndicatorSpecRelationship.role) && Objects.equals(this.validFor, performanceIndicatorSpecRelationship.validFor); @@ -224,18 +118,18 @@ public class PerformanceIndicatorSpecRelationship { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, role, validFor); + return Objects.hash(type, baseType, schemaLocation, href, uuid, relationshipType, role, validFor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecRelationship {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java index fb0fbbb..3691d14 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipFVO.java @@ -16,20 +16,28 @@ import java.util.Objects; @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 PerformanceIndicatorSpecRelationshipFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("relationshipType") private String relationshipType; + @JsonProperty("role") private String role; + @JsonProperty("validFor") private TimePeriod validFor; public PerformanceIndicatorSpecRelationshipFVO() { @@ -39,70 +47,70 @@ public class PerformanceIndicatorSpecRelationshipFVO { /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecRelationshipFVO(String atType, String relationshipType, TimePeriod validFor) { - this.atType = atType; + public PerformanceIndicatorSpecRelationshipFVO(String type, String relationshipType, TimePeriod validFor) { + this.type = type; this.relationshipType = relationshipType; this.validFor = validFor; } - public PerformanceIndicatorSpecRelationshipFVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecRelationshipFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorSpecRelationshipFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorSpecRelationshipFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorSpecRelationshipFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorSpecRelationshipFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorSpecRelationshipFVO href(String href) { @@ -125,8 +133,8 @@ public class PerformanceIndicatorSpecRelationshipFVO { this.href = href; } - public PerformanceIndicatorSpecRelationshipFVO id(String id) { - this.id = id; + public PerformanceIndicatorSpecRelationshipFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -135,14 +143,14 @@ public class PerformanceIndicatorSpecRelationshipFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorSpecRelationshipFVO relationshipType(String relationshipType) { @@ -214,11 +222,11 @@ public class PerformanceIndicatorSpecRelationshipFVO { return false; } PerformanceIndicatorSpecRelationshipFVO performanceIndicatorSpecRelationshipFVO = (PerformanceIndicatorSpecRelationshipFVO) o; - return Objects.equals(this.atType, performanceIndicatorSpecRelationshipFVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecRelationshipFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationshipFVO.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecRelationshipFVO.type) && + Objects.equals(this.baseType, performanceIndicatorSpecRelationshipFVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecRelationshipFVO.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecRelationshipFVO.href) && - Objects.equals(this.id, performanceIndicatorSpecRelationshipFVO.id) && + Objects.equals(this.uuid, performanceIndicatorSpecRelationshipFVO.uuid) && Objects.equals(this.relationshipType, performanceIndicatorSpecRelationshipFVO.relationshipType) && Objects.equals(this.role, performanceIndicatorSpecRelationshipFVO.role) && Objects.equals(this.validFor, performanceIndicatorSpecRelationshipFVO.validFor); @@ -226,18 +234,18 @@ public class PerformanceIndicatorSpecRelationshipFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, role, validFor); + return Objects.hash(type, baseType, schemaLocation, href, uuid, relationshipType, role, validFor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecRelationshipFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java index eafde01..02eccdd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationshipMVO.java @@ -16,20 +16,28 @@ import java.util.Objects; @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 PerformanceIndicatorSpecRelationshipMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("relationshipType") private String relationshipType; + @JsonProperty("role") private String role; + @JsonProperty("validFor") private TimePeriod validFor; public PerformanceIndicatorSpecRelationshipMVO() { @@ -39,68 +47,68 @@ public class PerformanceIndicatorSpecRelationshipMVO { /** * Constructor with only required parameters */ - public PerformanceIndicatorSpecRelationshipMVO(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecRelationshipMVO(String type) { + this.type = type; } - public PerformanceIndicatorSpecRelationshipMVO atType(String atType) { - this.atType = atType; + public PerformanceIndicatorSpecRelationshipMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PerformanceIndicatorSpecRelationshipMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PerformanceIndicatorSpecRelationshipMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PerformanceIndicatorSpecRelationshipMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PerformanceIndicatorSpecRelationshipMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PerformanceIndicatorSpecRelationshipMVO href(String href) { @@ -123,8 +131,8 @@ public class PerformanceIndicatorSpecRelationshipMVO { this.href = href; } - public PerformanceIndicatorSpecRelationshipMVO id(String id) { - this.id = id; + public PerformanceIndicatorSpecRelationshipMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -133,14 +141,14 @@ public class PerformanceIndicatorSpecRelationshipMVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PerformanceIndicatorSpecRelationshipMVO relationshipType(String relationshipType) { @@ -212,11 +220,11 @@ public class PerformanceIndicatorSpecRelationshipMVO { return false; } PerformanceIndicatorSpecRelationshipMVO performanceIndicatorSpecRelationshipMVO = (PerformanceIndicatorSpecRelationshipMVO) o; - return Objects.equals(this.atType, performanceIndicatorSpecRelationshipMVO.atType) && - Objects.equals(this.atBaseType, performanceIndicatorSpecRelationshipMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, performanceIndicatorSpecRelationshipMVO.atSchemaLocation) && + return Objects.equals(this.type, performanceIndicatorSpecRelationshipMVO.type) && + Objects.equals(this.baseType, performanceIndicatorSpecRelationshipMVO.baseType) && + Objects.equals(this.schemaLocation, performanceIndicatorSpecRelationshipMVO.schemaLocation) && Objects.equals(this.href, performanceIndicatorSpecRelationshipMVO.href) && - Objects.equals(this.id, performanceIndicatorSpecRelationshipMVO.id) && + Objects.equals(this.uuid, performanceIndicatorSpecRelationshipMVO.uuid) && Objects.equals(this.relationshipType, performanceIndicatorSpecRelationshipMVO.relationshipType) && Objects.equals(this.role, performanceIndicatorSpecRelationshipMVO.role) && Objects.equals(this.validFor, performanceIndicatorSpecRelationshipMVO.validFor); @@ -224,18 +232,18 @@ public class PerformanceIndicatorSpecRelationshipMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, relationshipType, role, validFor); + return Objects.hash(type, baseType, schemaLocation, href, uuid, relationshipType, role, validFor); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PerformanceIndicatorSpecRelationshipMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" validFor: ").append(toIndentedString(validFor)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java index e1e2ac6..acf7fe5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -14,21 +15,10 @@ import java.util.Objects; @Schema(name = "PlaceRef", description = "Place reference.") @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 PlaceRef { +public class PlaceRef extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public PlaceRef() { super(); @@ -37,149 +27,29 @@ public class PlaceRef { /** * Constructor with only required parameters */ - public PlaceRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public PlaceRef 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 PlaceRef 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 PlaceRef 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 PlaceRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public PlaceRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PlaceRef 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 PlaceRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public PlaceRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PlaceRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setAtReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -191,31 +61,31 @@ public class PlaceRef { return false; } PlaceRef placeRef = (PlaceRef) o; - return Objects.equals(this.atType, placeRef.atType) && - Objects.equals(this.atBaseType, placeRef.atBaseType) && - Objects.equals(this.atSchemaLocation, placeRef.atSchemaLocation) && + return Objects.equals(this.type, placeRef.type) && + Objects.equals(this.baseType, placeRef.baseType) && + Objects.equals(this.schemaLocation, placeRef.schemaLocation) && Objects.equals(this.href, placeRef.href) && - Objects.equals(this.id, placeRef.id) && + Objects.equals(this.uuid, placeRef.uuid) && Objects.equals(this.name, placeRef.name) && - Objects.equals(this.atReferredType, placeRef.atReferredType); + Objects.equals(this.referredType, placeRef.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlaceRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java index 683a27b..d731eb1 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefFVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 PlaceRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public PlaceRefFVO() { super(); @@ -37,68 +44,68 @@ public class PlaceRefFVO { /** * Constructor with only required parameters */ - public PlaceRefFVO(String atType) { - this.atType = atType; + public PlaceRefFVO(String type) { + this.type = type; } - public PlaceRefFVO atType(String atType) { - this.atType = atType; + public PlaceRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PlaceRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PlaceRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PlaceRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PlaceRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PlaceRefFVO href(String href) { @@ -121,8 +128,8 @@ public class PlaceRefFVO { this.href = href; } - public PlaceRefFVO id(String id) { - this.id = id; + public PlaceRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class PlaceRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PlaceRefFVO name(String name) { @@ -161,24 +168,24 @@ public class PlaceRefFVO { this.name = name; } - public PlaceRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PlaceRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class PlaceRefFVO { return false; } PlaceRefFVO placeRefFVO = (PlaceRefFVO) o; - return Objects.equals(this.atType, placeRefFVO.atType) && - Objects.equals(this.atBaseType, placeRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, placeRefFVO.atSchemaLocation) && + return Objects.equals(this.type, placeRefFVO.type) && + Objects.equals(this.baseType, placeRefFVO.baseType) && + Objects.equals(this.schemaLocation, placeRefFVO.schemaLocation) && Objects.equals(this.href, placeRefFVO.href) && - Objects.equals(this.id, placeRefFVO.id) && + Objects.equals(this.uuid, placeRefFVO.uuid) && Objects.equals(this.name, placeRefFVO.name) && - Objects.equals(this.atReferredType, placeRefFVO.atReferredType); + Objects.equals(this.referredType, placeRefFVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlaceRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java index b8e4e00..8b3dadf 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRefMVO.java @@ -16,19 +16,26 @@ import java.util.Objects; @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 PlaceRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; public PlaceRefMVO() { super(); @@ -37,68 +44,68 @@ public class PlaceRefMVO { /** * Constructor with only required parameters */ - public PlaceRefMVO(String atType) { - this.atType = atType; + public PlaceRefMVO(String type) { + this.type = type; } - public PlaceRefMVO atType(String atType) { - this.atType = atType; + public PlaceRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PlaceRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PlaceRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PlaceRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PlaceRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PlaceRefMVO href(String href) { @@ -121,8 +128,8 @@ public class PlaceRefMVO { this.href = href; } - public PlaceRefMVO id(String id) { - this.id = id; + public PlaceRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -131,14 +138,14 @@ public class PlaceRefMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PlaceRefMVO name(String name) { @@ -161,24 +168,24 @@ public class PlaceRefMVO { this.name = name; } - public PlaceRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PlaceRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } @Override @@ -190,31 +197,31 @@ public class PlaceRefMVO { return false; } PlaceRefMVO placeRefMVO = (PlaceRefMVO) o; - return Objects.equals(this.atType, placeRefMVO.atType) && - Objects.equals(this.atBaseType, placeRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, placeRefMVO.atSchemaLocation) && + return Objects.equals(this.type, placeRefMVO.type) && + Objects.equals(this.baseType, placeRefMVO.baseType) && + Objects.equals(this.schemaLocation, placeRefMVO.schemaLocation) && Objects.equals(this.href, placeRefMVO.href) && - Objects.equals(this.id, placeRefMVO.id) && + Objects.equals(this.uuid, placeRefMVO.uuid) && Objects.equals(this.name, placeRefMVO.name) && - Objects.equals(this.atReferredType, placeRefMVO.atReferredType); + Objects.equals(this.referredType, placeRefMVO.referredType); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PlaceRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java index 96d525b..dc53645 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,21 +14,9 @@ import java.util.Objects; @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 PolicyRef { +public class PolicyRef extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + private String referredType; private String version; @@ -38,149 +27,29 @@ public class PolicyRef { /** * Constructor with only required parameters */ - public PolicyRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef 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 PolicyRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - public PolicyRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PolicyRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PolicyRef version(String version) { @@ -212,32 +81,32 @@ public class PolicyRef { return false; } PolicyRef policyRef = (PolicyRef) o; - return Objects.equals(this.atType, policyRef.atType) && - Objects.equals(this.atBaseType, policyRef.atBaseType) && - Objects.equals(this.atSchemaLocation, policyRef.atSchemaLocation) && + return Objects.equals(this.type, policyRef.type) && + Objects.equals(this.baseType, policyRef.baseType) && + Objects.equals(this.schemaLocation, policyRef.schemaLocation) && Objects.equals(this.href, policyRef.href) && - Objects.equals(this.id, policyRef.id) && + Objects.equals(this.uuid, policyRef.uuid) && Objects.equals(this.name, policyRef.name) && - Objects.equals(this.atReferredType, policyRef.atReferredType) && + Objects.equals(this.referredType, policyRef.referredType) && Objects.equals(this.version, policyRef.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java index be3ebcf..161957c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefFVO.java @@ -15,20 +15,28 @@ import java.util.Objects; @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 PolicyRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public PolicyRefFVO() { @@ -38,68 +46,68 @@ public class PolicyRefFVO { /** * Constructor with only required parameters */ - public PolicyRefFVO(String atType) { - this.atType = atType; + public PolicyRefFVO(String type) { + this.type = type; } - public PolicyRefFVO atType(String atType) { - this.atType = atType; + public PolicyRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PolicyRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PolicyRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PolicyRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PolicyRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PolicyRefFVO href(String href) { @@ -122,8 +130,8 @@ public class PolicyRefFVO { this.href = href; } - public PolicyRefFVO id(String id) { - this.id = id; + public PolicyRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -132,14 +140,14 @@ public class PolicyRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PolicyRefFVO name(String name) { @@ -162,24 +170,24 @@ public class PolicyRefFVO { this.name = name; } - public PolicyRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PolicyRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PolicyRefFVO version(String version) { @@ -211,32 +219,32 @@ public class PolicyRefFVO { return false; } PolicyRefFVO policyRefFVO = (PolicyRefFVO) o; - return Objects.equals(this.atType, policyRefFVO.atType) && - Objects.equals(this.atBaseType, policyRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, policyRefFVO.atSchemaLocation) && + return Objects.equals(this.type, policyRefFVO.type) && + Objects.equals(this.baseType, policyRefFVO.baseType) && + Objects.equals(this.schemaLocation, policyRefFVO.schemaLocation) && Objects.equals(this.href, policyRefFVO.href) && - Objects.equals(this.id, policyRefFVO.id) && + Objects.equals(this.uuid, policyRefFVO.uuid) && Objects.equals(this.name, policyRefFVO.name) && - Objects.equals(this.atReferredType, policyRefFVO.atReferredType) && + Objects.equals(this.referredType, policyRefFVO.referredType) && Objects.equals(this.version, policyRefFVO.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java index 656737a..bf33af5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRefMVO.java @@ -15,20 +15,28 @@ import java.util.Objects; @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 PolicyRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public PolicyRefMVO() { @@ -38,68 +46,68 @@ public class PolicyRefMVO { /** * Constructor with only required parameters */ - public PolicyRefMVO(String atType) { - this.atType = atType; + public PolicyRefMVO(String type) { + this.type = type; } - public PolicyRefMVO atType(String atType) { - this.atType = atType; + public PolicyRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public PolicyRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public PolicyRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public PolicyRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public PolicyRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public PolicyRefMVO href(String href) { @@ -122,8 +130,8 @@ public class PolicyRefMVO { this.href = href; } - public PolicyRefMVO id(String id) { - this.id = id; + public PolicyRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -132,14 +140,14 @@ public class PolicyRefMVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public PolicyRefMVO name(String name) { @@ -162,24 +170,24 @@ public class PolicyRefMVO { this.name = name; } - public PolicyRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public PolicyRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public PolicyRefMVO version(String version) { @@ -211,32 +219,32 @@ public class PolicyRefMVO { return false; } PolicyRefMVO policyRefMVO = (PolicyRefMVO) o; - return Objects.equals(this.atType, policyRefMVO.atType) && - Objects.equals(this.atBaseType, policyRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, policyRefMVO.atSchemaLocation) && + return Objects.equals(this.type, policyRefMVO.type) && + Objects.equals(this.baseType, policyRefMVO.baseType) && + Objects.equals(this.schemaLocation, policyRefMVO.schemaLocation) && Objects.equals(this.href, policyRefMVO.href) && - Objects.equals(this.id, policyRefMVO.id) && + Objects.equals(this.uuid, policyRefMVO.uuid) && Objects.equals(this.name, policyRefMVO.name) && - Objects.equals(this.atReferredType, policyRefMVO.atReferredType) && + Objects.equals(this.referredType, policyRefMVO.referredType) && Objects.equals(this.version, policyRefMVO.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java index f9fb697..cd6bb4b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -26,6 +26,7 @@ import java.util.Objects; @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 ProtocolTransferData { + @JsonProperty("transportProtocol") private String transportProtocol; public ProtocolTransferData transportProtocol(String transportProtocol) { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java index 9cb5e0d..87ccdfa 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataFVO.java @@ -25,6 +25,7 @@ import java.util.Objects; @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 ProtocolTransferDataFVO { + @JsonProperty("transportProtocol") private String transportProtocol; public ProtocolTransferDataFVO transportProtocol(String transportProtocol) { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java index fe56034..9c47362 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferDataMVO.java @@ -14,6 +14,7 @@ import java.util.Objects; @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 ProtocolTransferDataMVO { + @JsonProperty("transportProtocol") private String transportProtocol; public ProtocolTransferDataMVO transportProtocol(String transportProtocol) { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java index 74f02bc..09b14ed 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 RelatedPartyRefOrPartyRoleRef { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("role") private String role; + @JsonProperty("partyOrPartyRole") private PartyRefOrPartyRoleRef partyOrPartyRole; public RelatedPartyRefOrPartyRoleRef() { @@ -33,68 +38,68 @@ public class RelatedPartyRefOrPartyRoleRef { /** * Constructor with only required parameters */ - public RelatedPartyRefOrPartyRoleRef(String atType) { - this.atType = atType; + public RelatedPartyRefOrPartyRoleRef(String type) { + this.type = type; } - public RelatedPartyRefOrPartyRoleRef atType(String atType) { - this.atType = atType; + public RelatedPartyRefOrPartyRoleRef type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedPartyRefOrPartyRoleRef atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedPartyRefOrPartyRoleRef baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedPartyRefOrPartyRoleRef atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedPartyRefOrPartyRoleRef schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public RelatedPartyRefOrPartyRoleRef role(String role) { @@ -146,25 +151,25 @@ public class RelatedPartyRefOrPartyRoleRef { return false; } RelatedPartyRefOrPartyRoleRef relatedPartyRefOrPartyRoleRef = (RelatedPartyRefOrPartyRoleRef) o; - return Objects.equals(this.atType, relatedPartyRefOrPartyRoleRef.atType) && - Objects.equals(this.atBaseType, relatedPartyRefOrPartyRoleRef.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedPartyRefOrPartyRoleRef.atSchemaLocation) && + return Objects.equals(this.type, relatedPartyRefOrPartyRoleRef.type) && + Objects.equals(this.baseType, relatedPartyRefOrPartyRoleRef.baseType) && + Objects.equals(this.schemaLocation, relatedPartyRefOrPartyRoleRef.schemaLocation) && Objects.equals(this.role, relatedPartyRefOrPartyRoleRef.role) && Objects.equals(this.partyOrPartyRole, relatedPartyRefOrPartyRoleRef.partyOrPartyRole); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, role, partyOrPartyRole); + return Objects.hash(type, baseType, schemaLocation, role, partyOrPartyRole); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedPartyRefOrPartyRoleRef {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" partyOrPartyRole: ").append(toIndentedString(partyOrPartyRole)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java index 9643189..af9af10 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefFVO.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 RelatedPartyRefOrPartyRoleRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("role") private String role; + @JsonProperty("partyOrPartyRole") private PartyRefOrPartyRoleRefFVO partyOrPartyRole; public RelatedPartyRefOrPartyRoleRefFVO() { @@ -33,69 +38,69 @@ public class RelatedPartyRefOrPartyRoleRefFVO { /** * Constructor with only required parameters */ - public RelatedPartyRefOrPartyRoleRefFVO(String atType, String role) { - this.atType = atType; + public RelatedPartyRefOrPartyRoleRefFVO(String type, String role) { + this.type = type; this.role = role; } - public RelatedPartyRefOrPartyRoleRefFVO atType(String atType) { - this.atType = atType; + public RelatedPartyRefOrPartyRoleRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedPartyRefOrPartyRoleRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedPartyRefOrPartyRoleRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedPartyRefOrPartyRoleRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedPartyRefOrPartyRoleRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public RelatedPartyRefOrPartyRoleRefFVO role(String role) { @@ -147,25 +152,25 @@ public class RelatedPartyRefOrPartyRoleRefFVO { return false; } RelatedPartyRefOrPartyRoleRefFVO relatedPartyRefOrPartyRoleRefFVO = (RelatedPartyRefOrPartyRoleRefFVO) o; - return Objects.equals(this.atType, relatedPartyRefOrPartyRoleRefFVO.atType) && - Objects.equals(this.atBaseType, relatedPartyRefOrPartyRoleRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedPartyRefOrPartyRoleRefFVO.atSchemaLocation) && + return Objects.equals(this.type, relatedPartyRefOrPartyRoleRefFVO.type) && + Objects.equals(this.baseType, relatedPartyRefOrPartyRoleRefFVO.baseType) && + Objects.equals(this.schemaLocation, relatedPartyRefOrPartyRoleRefFVO.schemaLocation) && Objects.equals(this.role, relatedPartyRefOrPartyRoleRefFVO.role) && Objects.equals(this.partyOrPartyRole, relatedPartyRefOrPartyRoleRefFVO.partyOrPartyRole); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, role, partyOrPartyRole); + return Objects.hash(type, baseType, schemaLocation, role, partyOrPartyRole); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedPartyRefOrPartyRoleRefFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" partyOrPartyRole: ").append(toIndentedString(partyOrPartyRole)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java index 2f15ba0..241aaae 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRefMVO.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 RelatedPartyRefOrPartyRoleRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("role") private String role; + @JsonProperty("partyOrPartyRole") private PartyRefOrPartyRoleRefMVO partyOrPartyRole; public RelatedPartyRefOrPartyRoleRefMVO() { @@ -33,69 +38,69 @@ public class RelatedPartyRefOrPartyRoleRefMVO { /** * Constructor with only required parameters */ - public RelatedPartyRefOrPartyRoleRefMVO(String atType, String role) { - this.atType = atType; + public RelatedPartyRefOrPartyRoleRefMVO(String type, String role) { + this.type = type; this.role = role; } - public RelatedPartyRefOrPartyRoleRefMVO atType(String atType) { - this.atType = atType; + public RelatedPartyRefOrPartyRoleRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedPartyRefOrPartyRoleRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedPartyRefOrPartyRoleRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedPartyRefOrPartyRoleRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedPartyRefOrPartyRoleRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public RelatedPartyRefOrPartyRoleRefMVO role(String role) { @@ -147,25 +152,25 @@ public class RelatedPartyRefOrPartyRoleRefMVO { return false; } RelatedPartyRefOrPartyRoleRefMVO relatedPartyRefOrPartyRoleRefMVO = (RelatedPartyRefOrPartyRoleRefMVO) o; - return Objects.equals(this.atType, relatedPartyRefOrPartyRoleRefMVO.atType) && - Objects.equals(this.atBaseType, relatedPartyRefOrPartyRoleRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedPartyRefOrPartyRoleRefMVO.atSchemaLocation) && + return Objects.equals(this.type, relatedPartyRefOrPartyRoleRefMVO.type) && + Objects.equals(this.baseType, relatedPartyRefOrPartyRoleRefMVO.baseType) && + Objects.equals(this.schemaLocation, relatedPartyRefOrPartyRoleRefMVO.schemaLocation) && Objects.equals(this.role, relatedPartyRefOrPartyRoleRefMVO.role) && Objects.equals(this.partyOrPartyRole, relatedPartyRefOrPartyRoleRefMVO.partyOrPartyRole); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, role, partyOrPartyRole); + return Objects.hash(type, baseType, schemaLocation, role, partyOrPartyRole); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedPartyRefOrPartyRoleRefMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" partyOrPartyRole: ").append(toIndentedString(partyOrPartyRole)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java index 971c0fa..00327cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 RelatedPlaceRef { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("role") private String role; + @JsonProperty("place") private PlaceRef place; public RelatedPlaceRef() { @@ -33,68 +38,68 @@ public class RelatedPlaceRef { /** * Constructor with only required parameters */ - public RelatedPlaceRef(String atType) { - this.atType = atType; + public RelatedPlaceRef(String type) { + this.type = type; } - public RelatedPlaceRef atType(String atType) { - this.atType = atType; + public RelatedPlaceRef type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedPlaceRef atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedPlaceRef baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedPlaceRef atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedPlaceRef schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public RelatedPlaceRef role(String role) { @@ -146,25 +151,25 @@ public class RelatedPlaceRef { return false; } RelatedPlaceRef relatedPlaceRef = (RelatedPlaceRef) o; - return Objects.equals(this.atType, relatedPlaceRef.atType) && - Objects.equals(this.atBaseType, relatedPlaceRef.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedPlaceRef.atSchemaLocation) && + return Objects.equals(this.type, relatedPlaceRef.type) && + Objects.equals(this.baseType, relatedPlaceRef.baseType) && + Objects.equals(this.schemaLocation, relatedPlaceRef.schemaLocation) && Objects.equals(this.role, relatedPlaceRef.role) && Objects.equals(this.place, relatedPlaceRef.place); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, role, place); + return Objects.hash(type, baseType, schemaLocation, role, place); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedPlaceRef {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" place: ").append(toIndentedString(place)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java index 99c102d..43ca4b4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefFVO.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 RelatedPlaceRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("role") private String role; + @JsonProperty("place") private PlaceRefFVO place; public RelatedPlaceRefFVO() { @@ -33,70 +38,70 @@ public class RelatedPlaceRefFVO { /** * Constructor with only required parameters */ - public RelatedPlaceRefFVO(String atType, String role, PlaceRefFVO place) { - this.atType = atType; + public RelatedPlaceRefFVO(String type, String role, PlaceRefFVO place) { + this.type = type; this.role = role; this.place = place; } - public RelatedPlaceRefFVO atType(String atType) { - this.atType = atType; + public RelatedPlaceRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedPlaceRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedPlaceRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedPlaceRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedPlaceRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public RelatedPlaceRefFVO role(String role) { @@ -148,25 +153,25 @@ public class RelatedPlaceRefFVO { return false; } RelatedPlaceRefFVO relatedPlaceRefFVO = (RelatedPlaceRefFVO) o; - return Objects.equals(this.atType, relatedPlaceRefFVO.atType) && - Objects.equals(this.atBaseType, relatedPlaceRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedPlaceRefFVO.atSchemaLocation) && + return Objects.equals(this.type, relatedPlaceRefFVO.type) && + Objects.equals(this.baseType, relatedPlaceRefFVO.baseType) && + Objects.equals(this.schemaLocation, relatedPlaceRefFVO.schemaLocation) && Objects.equals(this.role, relatedPlaceRefFVO.role) && Objects.equals(this.place, relatedPlaceRefFVO.place); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, role, place); + return Objects.hash(type, baseType, schemaLocation, role, place); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedPlaceRefFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" place: ").append(toIndentedString(place)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java index efe9691..f0e5b6d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRefMVO.java @@ -16,14 +16,19 @@ import java.util.Objects; @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 RelatedPlaceRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("role") private String role; + @JsonProperty("place") private PlaceRefMVO place; public RelatedPlaceRefMVO() { @@ -33,70 +38,70 @@ public class RelatedPlaceRefMVO { /** * Constructor with only required parameters */ - public RelatedPlaceRefMVO(String atType, String role, PlaceRefMVO place) { - this.atType = atType; + public RelatedPlaceRefMVO(String type, String role, PlaceRefMVO place) { + this.type = type; this.role = role; this.place = place; } - public RelatedPlaceRefMVO atType(String atType) { - this.atType = atType; + public RelatedPlaceRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedPlaceRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedPlaceRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedPlaceRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedPlaceRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public RelatedPlaceRefMVO role(String role) { @@ -148,25 +153,25 @@ public class RelatedPlaceRefMVO { return false; } RelatedPlaceRefMVO relatedPlaceRefMVO = (RelatedPlaceRefMVO) o; - return Objects.equals(this.atType, relatedPlaceRefMVO.atType) && - Objects.equals(this.atBaseType, relatedPlaceRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedPlaceRefMVO.atSchemaLocation) && + return Objects.equals(this.type, relatedPlaceRefMVO.type) && + Objects.equals(this.baseType, relatedPlaceRefMVO.baseType) && + Objects.equals(this.schemaLocation, relatedPlaceRefMVO.schemaLocation) && Objects.equals(this.role, relatedPlaceRefMVO.role) && Objects.equals(this.place, relatedPlaceRefMVO.place); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, role, place); + return Objects.hash(type, baseType, schemaLocation, role, place); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedPlaceRefMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" place: ").append(toIndentedString(place)).append("\n"); sb.append("}"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java index 6df885d..cb6c4bd 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java @@ -16,22 +16,31 @@ import java.util.Objects; @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 RelatedResourceOrderItem { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("resourceOrderHref") private String resourceOrderHref; + @JsonProperty("resourceOrderId") private String resourceOrderId; + @JsonProperty("itemAction") private OrderItemActionType itemAction; + @JsonProperty("itemId") private String itemId; + @JsonProperty("role") private String role; public RelatedResourceOrderItem() { @@ -41,88 +50,88 @@ public class RelatedResourceOrderItem { /** * Constructor with only required parameters */ - public RelatedResourceOrderItem(String atType) { - this.atType = atType; + public RelatedResourceOrderItem(String type) { + this.type = type; } - public RelatedResourceOrderItem atType(String atType) { - this.atType = atType; + public RelatedResourceOrderItem type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedResourceOrderItem atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedResourceOrderItem baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedResourceOrderItem atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedResourceOrderItem schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public RelatedResourceOrderItem atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public RelatedResourceOrderItem referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public RelatedResourceOrderItem resourceOrderHref(String resourceOrderHref) { @@ -234,10 +243,10 @@ public class RelatedResourceOrderItem { return false; } RelatedResourceOrderItem relatedResourceOrderItem = (RelatedResourceOrderItem) o; - return Objects.equals(this.atType, relatedResourceOrderItem.atType) && - Objects.equals(this.atBaseType, relatedResourceOrderItem.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedResourceOrderItem.atSchemaLocation) && - Objects.equals(this.atReferredType, relatedResourceOrderItem.atReferredType) && + return Objects.equals(this.type, relatedResourceOrderItem.type) && + Objects.equals(this.baseType, relatedResourceOrderItem.baseType) && + Objects.equals(this.schemaLocation, relatedResourceOrderItem.schemaLocation) && + Objects.equals(this.referredType, relatedResourceOrderItem.referredType) && Objects.equals(this.resourceOrderHref, relatedResourceOrderItem.resourceOrderHref) && Objects.equals(this.resourceOrderId, relatedResourceOrderItem.resourceOrderId) && Objects.equals(this.itemAction, relatedResourceOrderItem.itemAction) && @@ -247,17 +256,17 @@ public class RelatedResourceOrderItem { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, atReferredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); + return Objects.hash(type, baseType, schemaLocation, referredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedResourceOrderItem {\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(" atReferredType: ").append(toIndentedString(atReferredType)).append("\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(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" resourceOrderHref: ").append(toIndentedString(resourceOrderHref)).append("\n"); sb.append(" resourceOrderId: ").append(toIndentedString(resourceOrderId)).append("\n"); sb.append(" itemAction: ").append(toIndentedString(itemAction)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java index f95f0ba..80a15e6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemFVO.java @@ -16,22 +16,31 @@ import java.util.Objects; @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 RelatedResourceOrderItemFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("resourceOrderHref") private String resourceOrderHref; + @JsonProperty("resourceOrderId") private String resourceOrderId; + @JsonProperty("itemAction") private OrderItemActionType itemAction; + @JsonProperty("itemId") private String itemId; + @JsonProperty("role") private String role; public RelatedResourceOrderItemFVO() { @@ -41,88 +50,88 @@ public class RelatedResourceOrderItemFVO { /** * Constructor with only required parameters */ - public RelatedResourceOrderItemFVO(String atType) { - this.atType = atType; + public RelatedResourceOrderItemFVO(String type) { + this.type = type; } - public RelatedResourceOrderItemFVO atType(String atType) { - this.atType = atType; + public RelatedResourceOrderItemFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedResourceOrderItemFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedResourceOrderItemFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedResourceOrderItemFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedResourceOrderItemFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public RelatedResourceOrderItemFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public RelatedResourceOrderItemFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public RelatedResourceOrderItemFVO resourceOrderHref(String resourceOrderHref) { @@ -234,10 +243,10 @@ public class RelatedResourceOrderItemFVO { return false; } RelatedResourceOrderItemFVO relatedResourceOrderItemFVO = (RelatedResourceOrderItemFVO) o; - return Objects.equals(this.atType, relatedResourceOrderItemFVO.atType) && - Objects.equals(this.atBaseType, relatedResourceOrderItemFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedResourceOrderItemFVO.atSchemaLocation) && - Objects.equals(this.atReferredType, relatedResourceOrderItemFVO.atReferredType) && + return Objects.equals(this.type, relatedResourceOrderItemFVO.type) && + Objects.equals(this.baseType, relatedResourceOrderItemFVO.baseType) && + Objects.equals(this.schemaLocation, relatedResourceOrderItemFVO.schemaLocation) && + Objects.equals(this.referredType, relatedResourceOrderItemFVO.referredType) && Objects.equals(this.resourceOrderHref, relatedResourceOrderItemFVO.resourceOrderHref) && Objects.equals(this.resourceOrderId, relatedResourceOrderItemFVO.resourceOrderId) && Objects.equals(this.itemAction, relatedResourceOrderItemFVO.itemAction) && @@ -247,17 +256,17 @@ public class RelatedResourceOrderItemFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, atReferredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); + return Objects.hash(type, baseType, schemaLocation, referredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedResourceOrderItemFVO {\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(" atReferredType: ").append(toIndentedString(atReferredType)).append("\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(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" resourceOrderHref: ").append(toIndentedString(resourceOrderHref)).append("\n"); sb.append(" resourceOrderId: ").append(toIndentedString(resourceOrderId)).append("\n"); sb.append(" itemAction: ").append(toIndentedString(itemAction)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java index f9d9215..41c4090 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItemMVO.java @@ -16,22 +16,31 @@ import java.util.Objects; @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 RelatedResourceOrderItemMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("resourceOrderHref") private String resourceOrderHref; + @JsonProperty("resourceOrderId") private String resourceOrderId; + @JsonProperty("itemAction") private OrderItemActionType itemAction; + @JsonProperty("itemId") private String itemId; + @JsonProperty("role") private String role; public RelatedResourceOrderItemMVO() { @@ -41,88 +50,88 @@ public class RelatedResourceOrderItemMVO { /** * Constructor with only required parameters */ - public RelatedResourceOrderItemMVO(String atType) { - this.atType = atType; + public RelatedResourceOrderItemMVO(String type) { + this.type = type; } - public RelatedResourceOrderItemMVO atType(String atType) { - this.atType = atType; + public RelatedResourceOrderItemMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public RelatedResourceOrderItemMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public RelatedResourceOrderItemMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public RelatedResourceOrderItemMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public RelatedResourceOrderItemMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } - public RelatedResourceOrderItemMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public RelatedResourceOrderItemMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public RelatedResourceOrderItemMVO resourceOrderHref(String resourceOrderHref) { @@ -234,10 +243,10 @@ public class RelatedResourceOrderItemMVO { return false; } RelatedResourceOrderItemMVO relatedResourceOrderItemMVO = (RelatedResourceOrderItemMVO) o; - return Objects.equals(this.atType, relatedResourceOrderItemMVO.atType) && - Objects.equals(this.atBaseType, relatedResourceOrderItemMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, relatedResourceOrderItemMVO.atSchemaLocation) && - Objects.equals(this.atReferredType, relatedResourceOrderItemMVO.atReferredType) && + return Objects.equals(this.type, relatedResourceOrderItemMVO.type) && + Objects.equals(this.baseType, relatedResourceOrderItemMVO.baseType) && + Objects.equals(this.schemaLocation, relatedResourceOrderItemMVO.schemaLocation) && + Objects.equals(this.referredType, relatedResourceOrderItemMVO.referredType) && Objects.equals(this.resourceOrderHref, relatedResourceOrderItemMVO.resourceOrderHref) && Objects.equals(this.resourceOrderId, relatedResourceOrderItemMVO.resourceOrderId) && Objects.equals(this.itemAction, relatedResourceOrderItemMVO.itemAction) && @@ -247,17 +256,17 @@ public class RelatedResourceOrderItemMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, atReferredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); + return Objects.hash(type, baseType, schemaLocation, referredType, resourceOrderHref, resourceOrderId, itemAction, itemId, role); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RelatedResourceOrderItemMVO {\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(" atReferredType: ").append(toIndentedString(atReferredType)).append("\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(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" resourceOrderHref: ").append(toIndentedString(resourceOrderHref)).append("\n"); sb.append(" resourceOrderId: ").append(toIndentedString(resourceOrderId)).append("\n"); sb.append(" itemAction: ").append(toIndentedString(itemAction)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java index 5a7d18d..ddd29b0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java @@ -18,17 +18,23 @@ import java.util.Objects; @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 ResourceRelationship { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("resourceRelationshipCharacteristic") @Valid private List resourceRelationshipCharacteristic = new ArrayList<>(); + @JsonProperty("resource") private ResourceRefOrValue resource; + @JsonProperty("relationshipType") private String relationshipType; public ResourceRelationship() { @@ -38,68 +44,68 @@ public class ResourceRelationship { /** * Constructor with only required parameters */ - public ResourceRelationship(String atType) { - this.atType = atType; + public ResourceRelationship(String type) { + this.type = type; } - public ResourceRelationship atType(String atType) { - this.atType = atType; + public ResourceRelationship type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceRelationship atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceRelationship baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceRelationship atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceRelationship schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceRelationship resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { @@ -179,9 +185,9 @@ public class ResourceRelationship { return false; } ResourceRelationship resourceRelationship = (ResourceRelationship) o; - return Objects.equals(this.atType, resourceRelationship.atType) && - Objects.equals(this.atBaseType, resourceRelationship.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceRelationship.atSchemaLocation) && + return Objects.equals(this.type, resourceRelationship.type) && + Objects.equals(this.baseType, resourceRelationship.baseType) && + Objects.equals(this.schemaLocation, resourceRelationship.schemaLocation) && Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationship.resourceRelationshipCharacteristic) && Objects.equals(this.resource, resourceRelationship.resource) && Objects.equals(this.relationshipType, resourceRelationship.relationshipType); @@ -189,16 +195,16 @@ public class ResourceRelationship { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + return Objects.hash(type, baseType, schemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceRelationship {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java index 5e45a68..5421fd4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipFVO.java @@ -18,17 +18,23 @@ import java.util.Objects; @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 ResourceRelationshipFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("resourceRelationshipCharacteristic") @Valid private List resourceRelationshipCharacteristic = new ArrayList<>(); + @JsonProperty("resource") private ResourceRefOrValueFVO resource; + @JsonProperty("relationshipType") private String relationshipType; public ResourceRelationshipFVO() { @@ -38,70 +44,70 @@ public class ResourceRelationshipFVO { /** * Constructor with only required parameters */ - public ResourceRelationshipFVO(String atType, ResourceRefOrValueFVO resource, String relationshipType) { - this.atType = atType; + public ResourceRelationshipFVO(String type, ResourceRefOrValueFVO resource, String relationshipType) { + this.type = type; this.resource = resource; this.relationshipType = relationshipType; } - public ResourceRelationshipFVO atType(String atType) { - this.atType = atType; + public ResourceRelationshipFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceRelationshipFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceRelationshipFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceRelationshipFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceRelationshipFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceRelationshipFVO resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { @@ -181,9 +187,9 @@ public class ResourceRelationshipFVO { return false; } ResourceRelationshipFVO resourceRelationshipFVO = (ResourceRelationshipFVO) o; - return Objects.equals(this.atType, resourceRelationshipFVO.atType) && - Objects.equals(this.atBaseType, resourceRelationshipFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceRelationshipFVO.atSchemaLocation) && + return Objects.equals(this.type, resourceRelationshipFVO.type) && + Objects.equals(this.baseType, resourceRelationshipFVO.baseType) && + Objects.equals(this.schemaLocation, resourceRelationshipFVO.schemaLocation) && Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationshipFVO.resourceRelationshipCharacteristic) && Objects.equals(this.resource, resourceRelationshipFVO.resource) && Objects.equals(this.relationshipType, resourceRelationshipFVO.relationshipType); @@ -191,16 +197,16 @@ public class ResourceRelationshipFVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + return Objects.hash(type, baseType, schemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceRelationshipFVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java index 8d5b089..0678503 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java @@ -18,17 +18,23 @@ import java.util.Objects; @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 ResourceRelationshipMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("resourceRelationshipCharacteristic") @Valid private List resourceRelationshipCharacteristic = new ArrayList<>(); + @JsonProperty("resource") private ResourceRefOrValueMVO resource; + @JsonProperty("relationshipType") private String relationshipType; public ResourceRelationshipMVO() { @@ -38,70 +44,70 @@ public class ResourceRelationshipMVO { /** * Constructor with only required parameters */ - public ResourceRelationshipMVO(String atType, ResourceRefOrValueMVO resource, String relationshipType) { - this.atType = atType; + public ResourceRelationshipMVO(String type, ResourceRefOrValueMVO resource, String relationshipType) { + this.type = type; this.resource = resource; this.relationshipType = relationshipType; } - public ResourceRelationshipMVO atType(String atType) { - this.atType = atType; + public ResourceRelationshipMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceRelationshipMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceRelationshipMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceRelationshipMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceRelationshipMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceRelationshipMVO resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { @@ -181,9 +187,9 @@ public class ResourceRelationshipMVO { return false; } ResourceRelationshipMVO resourceRelationshipMVO = (ResourceRelationshipMVO) o; - return Objects.equals(this.atType, resourceRelationshipMVO.atType) && - Objects.equals(this.atBaseType, resourceRelationshipMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceRelationshipMVO.atSchemaLocation) && + return Objects.equals(this.type, resourceRelationshipMVO.type) && + Objects.equals(this.baseType, resourceRelationshipMVO.baseType) && + Objects.equals(this.schemaLocation, resourceRelationshipMVO.schemaLocation) && Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationshipMVO.resourceRelationshipCharacteristic) && Objects.equals(this.resource, resourceRelationshipMVO.resource) && Objects.equals(this.relationshipType, resourceRelationshipMVO.relationshipType); @@ -191,16 +197,16 @@ public class ResourceRelationshipMVO { @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + return Objects.hash(type, baseType, schemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceRelationshipMVO {\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(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" baseType: ").append(toIndentedString(baseType)).append("\n"); + sb.append(" schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n"); sb.append(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java index 492a8e4..d36a030 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java @@ -3,6 +3,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; import java.util.Objects; @@ -13,22 +14,12 @@ import java.util.Objects; @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 ResourceSpecificationRef { +public class ResourceSpecificationRef extends BaseRootNamedEntity { - private String atType; - - private String atBaseType; - - private String atSchemaLocation; - - private String href; - - private String id; - - private String name; - - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public ResourceSpecificationRef() { @@ -38,149 +29,29 @@ public class ResourceSpecificationRef { /** * Constructor with only required parameters */ - public ResourceSpecificationRef(String atType, String id) { - this.atType = atType; - this.id = id; - } - - public ResourceSpecificationRef 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 ResourceSpecificationRef 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 ResourceSpecificationRef 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 ResourceSpecificationRef(String type, String uuid) { + this.type = type; + this.uuid = uuid; } - - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; - } - - public ResourceSpecificationRef href(String href) { - this.href = href; - return this; - } - - /** - * The URI of the referred entity. - * @return href - */ - @Schema(name = "href", description = "The URI of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("href") - public String getHref() { - return href; - } - - public void setHref(String href) { - this.href = href; - } - - public ResourceSpecificationRef id(String id) { - this.id = id; - return this; - } - - /** - * The identifier of the referred entity. - * @return id - */ - @NotNull - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.REQUIRED) - @JsonProperty("id") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public ResourceSpecificationRef 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 ResourceSpecificationRef atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public ResourceSpecificationRef referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public ResourceSpecificationRef version(String version) { @@ -212,32 +83,32 @@ public class ResourceSpecificationRef { return false; } ResourceSpecificationRef resourceSpecificationRef = (ResourceSpecificationRef) o; - return Objects.equals(this.atType, resourceSpecificationRef.atType) && - Objects.equals(this.atBaseType, resourceSpecificationRef.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceSpecificationRef.atSchemaLocation) && + return Objects.equals(this.type, resourceSpecificationRef.type) && + Objects.equals(this.baseType, resourceSpecificationRef.baseType) && + Objects.equals(this.schemaLocation, resourceSpecificationRef.schemaLocation) && Objects.equals(this.href, resourceSpecificationRef.href) && - Objects.equals(this.id, resourceSpecificationRef.id) && + Objects.equals(this.uuid, resourceSpecificationRef.uuid) && Objects.equals(this.name, resourceSpecificationRef.name) && - Objects.equals(this.atReferredType, resourceSpecificationRef.atReferredType) && + Objects.equals(this.referredType, resourceSpecificationRef.referredType) && Objects.equals(this.version, resourceSpecificationRef.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceSpecificationRef {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java index 74949e5..0229156 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefFVO.java @@ -15,20 +15,28 @@ import java.util.Objects; @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 ResourceSpecificationRefFVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public ResourceSpecificationRefFVO() { @@ -38,68 +46,68 @@ public class ResourceSpecificationRefFVO { /** * Constructor with only required parameters */ - public ResourceSpecificationRefFVO(String atType) { - this.atType = atType; + public ResourceSpecificationRefFVO(String type) { + this.type = type; } - public ResourceSpecificationRefFVO atType(String atType) { - this.atType = atType; + public ResourceSpecificationRefFVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceSpecificationRefFVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceSpecificationRefFVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceSpecificationRefFVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceSpecificationRefFVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceSpecificationRefFVO href(String href) { @@ -122,8 +130,8 @@ public class ResourceSpecificationRefFVO { this.href = href; } - public ResourceSpecificationRefFVO id(String id) { - this.id = id; + public ResourceSpecificationRefFVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -132,14 +140,14 @@ public class ResourceSpecificationRefFVO { * @return id */ - @Schema(name = "id", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "unique identifier", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ResourceSpecificationRefFVO name(String name) { @@ -162,24 +170,24 @@ public class ResourceSpecificationRefFVO { this.name = name; } - public ResourceSpecificationRefFVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public ResourceSpecificationRefFVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public ResourceSpecificationRefFVO version(String version) { @@ -211,32 +219,32 @@ public class ResourceSpecificationRefFVO { return false; } ResourceSpecificationRefFVO resourceSpecificationRefFVO = (ResourceSpecificationRefFVO) o; - return Objects.equals(this.atType, resourceSpecificationRefFVO.atType) && - Objects.equals(this.atBaseType, resourceSpecificationRefFVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceSpecificationRefFVO.atSchemaLocation) && + return Objects.equals(this.type, resourceSpecificationRefFVO.type) && + Objects.equals(this.baseType, resourceSpecificationRefFVO.baseType) && + Objects.equals(this.schemaLocation, resourceSpecificationRefFVO.schemaLocation) && Objects.equals(this.href, resourceSpecificationRefFVO.href) && - Objects.equals(this.id, resourceSpecificationRefFVO.id) && + Objects.equals(this.uuid, resourceSpecificationRefFVO.uuid) && Objects.equals(this.name, resourceSpecificationRefFVO.name) && - Objects.equals(this.atReferredType, resourceSpecificationRefFVO.atReferredType) && + Objects.equals(this.referredType, resourceSpecificationRefFVO.referredType) && Objects.equals(this.version, resourceSpecificationRefFVO.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceSpecificationRefFVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java index fdca4db..6548bfc 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRefMVO.java @@ -15,20 +15,28 @@ import java.util.Objects; @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 ResourceSpecificationRefMVO { - private String atType; + @JsonProperty("@type") + private String type; - private String atBaseType; + @JsonProperty("@baseType") + private String baseType; - private String atSchemaLocation; + @JsonProperty("@schemaLocation") + private String schemaLocation; + @JsonProperty("href") private String href; - private String id; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("name") private String name; - private String atReferredType; + @JsonProperty("@referredType") + private String referredType; + @JsonProperty("version") private String version; public ResourceSpecificationRefMVO() { @@ -38,68 +46,68 @@ public class ResourceSpecificationRefMVO { /** * Constructor with only required parameters */ - public ResourceSpecificationRefMVO(String atType) { - this.atType = atType; + public ResourceSpecificationRefMVO(String type) { + this.type = type; } - public ResourceSpecificationRefMVO atType(String atType) { - this.atType = atType; + public ResourceSpecificationRefMVO type(String type) { + this.type = type; return this; } /** * When sub-classing, this defines the sub-class Extensible name - * @return atType + * @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 atType; + public String getType() { + return type; } - public void setAtType(String atType) { - this.atType = atType; + public void setType(String type) { + this.type = type; } - public ResourceSpecificationRefMVO atBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public ResourceSpecificationRefMVO baseType(String baseType) { + this.baseType = baseType; return this; } /** * When sub-classing, this defines the super-class - * @return atBaseType + * @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 atBaseType; + public String getBaseType() { + return baseType; } - public void setAtBaseType(String atBaseType) { - this.atBaseType = atBaseType; + public void setBaseType(String baseType) { + this.baseType = baseType; } - public ResourceSpecificationRefMVO atSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public ResourceSpecificationRefMVO schemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; return this; } /** * A URI to a JSON-Schema file that defines additional attributes and relationships - * @return atSchemaLocation + * @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 getAtSchemaLocation() { - return atSchemaLocation; + public String getSchemaLocation() { + return schemaLocation; } - public void setAtSchemaLocation(String atSchemaLocation) { - this.atSchemaLocation = atSchemaLocation; + public void setSchemaLocation(String schemaLocation) { + this.schemaLocation = schemaLocation; } public ResourceSpecificationRefMVO href(String href) { @@ -122,8 +130,8 @@ public class ResourceSpecificationRefMVO { this.href = href; } - public ResourceSpecificationRefMVO id(String id) { - this.id = id; + public ResourceSpecificationRefMVO uuid(String uuid) { + this.uuid = uuid; return this; } @@ -132,14 +140,14 @@ public class ResourceSpecificationRefMVO { * @return id */ - @Schema(name = "id", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) - @JsonProperty("id") - public String getId() { - return id; + @Schema(name = "uuid", description = "The identifier of the referred entity.", requiredMode = Schema.RequiredMode.NOT_REQUIRED) + @JsonProperty("uuid") + public String getUuid() { + return uuid; } - public void setId(String id) { - this.id = id; + public void setUuid(String uuid) { + this.uuid = uuid; } public ResourceSpecificationRefMVO name(String name) { @@ -162,24 +170,24 @@ public class ResourceSpecificationRefMVO { this.name = name; } - public ResourceSpecificationRefMVO atReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public ResourceSpecificationRefMVO referredType(String referredType) { + this.referredType = referredType; return this; } /** * The actual type of the target instance when needed for disambiguation. - * @return atReferredType + * @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 getAtReferredType() { - return atReferredType; + public String getReferredType() { + return referredType; } - public void setAtReferredType(String atReferredType) { - this.atReferredType = atReferredType; + public void setReferredType(String referredType) { + this.referredType = referredType; } public ResourceSpecificationRefMVO version(String version) { @@ -211,32 +219,32 @@ public class ResourceSpecificationRefMVO { return false; } ResourceSpecificationRefMVO resourceSpecificationRefMVO = (ResourceSpecificationRefMVO) o; - return Objects.equals(this.atType, resourceSpecificationRefMVO.atType) && - Objects.equals(this.atBaseType, resourceSpecificationRefMVO.atBaseType) && - Objects.equals(this.atSchemaLocation, resourceSpecificationRefMVO.atSchemaLocation) && + return Objects.equals(this.type, resourceSpecificationRefMVO.type) && + Objects.equals(this.baseType, resourceSpecificationRefMVO.baseType) && + Objects.equals(this.schemaLocation, resourceSpecificationRefMVO.schemaLocation) && Objects.equals(this.href, resourceSpecificationRefMVO.href) && - Objects.equals(this.id, resourceSpecificationRefMVO.id) && + Objects.equals(this.uuid, resourceSpecificationRefMVO.uuid) && Objects.equals(this.name, resourceSpecificationRefMVO.name) && - Objects.equals(this.atReferredType, resourceSpecificationRefMVO.atReferredType) && + Objects.equals(this.referredType, resourceSpecificationRefMVO.referredType) && Objects.equals(this.version, resourceSpecificationRefMVO.version); } @Override public int hashCode() { - return Objects.hash(atType, atBaseType, atSchemaLocation, href, id, name, atReferredType, version); + return Objects.hash(type, baseType, schemaLocation, href, uuid, name, referredType, version); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResourceSpecificationRefMVO {\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(" 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(" id: ").append(toIndentedString(uuid)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" atReferredType: ").append(toIndentedString(atReferredType)).append("\n"); + sb.append(" referredType: ").append(toIndentedString(referredType)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index e5c377b..96ab57d 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -17,9 +17,11 @@ import java.util.Objects; @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 TimePeriod { + @JsonProperty("startDateTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime startDateTime; + @JsonProperty("endDateTime") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) private OffsetDateTime endDateTime; -- GitLab From 9a0c10a5d438de092742d56805880b6eb7e07150 Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Mon, 22 Jul 2024 17:51:48 +0300 Subject: [PATCH 18/19] DataFilterMap should not extend BaseRootEntity as it does not have an id attribute --- .../osl/tmf/pm628/model/DataFilterMap.java | 79 +++++++++++++++++-- 1 file changed, 73 insertions(+), 6 deletions(-) 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 index f835e8e..019e4f3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -2,11 +2,10 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; -import jakarta.persistence.ElementCollection; -import jakarta.persistence.Embeddable; +import jakarta.persistence.*; +import jakarta.persistence.Entity; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; -import org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; import java.util.ArrayList; @@ -19,11 +18,18 @@ import java.util.Objects; @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 extends BaseRootEntity { +public class DataFilterMap { + + @JsonProperty("@type") + private String type; + + @JsonProperty("@baseType") + private String baseType; + + @JsonProperty("@schemaLocation") + private String schemaLocation; @JsonProperty("mappings") - @ElementCollection(targetClass = DataFilterMapItem.class) - @Valid private List<@Valid DataFilterMapItem> mappings = new ArrayList<>(); public DataFilterMap() { @@ -37,6 +43,67 @@ public class DataFilterMap extends BaseRootEntity { 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; -- GitLab From 6db6cd680fa6c9c090841f9d55d0fe079ea66c5a Mon Sep 17 00:00:00 2001 From: Nikolaos Kyriakoulis Date: Wed, 28 Aug 2024 11:12:29 +0300 Subject: [PATCH 19/19] Added annotations and Mappers for PM628 --- .../osl/tmf/pm628/model/AttachmentRef.java | 3 +- .../osl/tmf/pm628/model/Characteristic.java | 6 +++- .../model/CharacteristicRelationship.java | 3 +- .../osl/tmf/pm628/model/CompressionType.java | 2 ++ .../tmf/pm628/model/DataAccessEndpoint.java | 4 ++- .../pm628/model/DataAccessEndpointMapper.java | 25 ++++++++++++++ .../osl/tmf/pm628/model/DataFilterMap.java | 5 ++- .../tmf/pm628/model/DataFilterMapItem.java | 5 ++- .../tmf/pm628/model/DataFilterTemplate.java | 7 ++-- .../tmf/pm628/model/DayOfMonthRecurrence.java | 6 ++++ .../tmf/pm628/model/DayOfWeekRecurrence.java | 6 ++++ .../etsi/osl/tmf/pm628/model/Duration.java | 2 ++ .../tmf/pm628/model/ExternalIdentifier.java | 3 +- .../org/etsi/osl/tmf/pm628/model/Feature.java | 8 ++++- .../tmf/pm628/model/FeatureRelationship.java | 6 +++- .../pm628/model/FeatureRelationshipFVO.java | 2 ++ .../pm628/model/FeatureRelationshipMVO.java | 2 ++ .../osl/tmf/pm628/model/FileTransferData.java | 10 ++++++ .../etsi/osl/tmf/pm628/model/IntentRef.java | 3 +- .../osl/tmf/pm628/model/LogicalResource.java | 4 +-- .../osl/tmf/pm628/model/ManagementJob.java | 9 ++++- .../pm628/model/MeasurementCollectionJob.java | 21 +++++++++++- .../osl/tmf/pm628/model/MeasurementJob.java | 22 +++++++++++++ .../pm628/model/MonitoredClassCriteria.java | 6 ++++ .../model/MonitoredInstancesCriteria.java | 6 ++++ .../MonthlyScheduleDayOfWeekDefinition.java | 8 +++++ .../org/etsi/osl/tmf/pm628/model/Note.java | 3 +- .../etsi/osl/tmf/pm628/model/PackingType.java | 2 ++ .../etsi/osl/tmf/pm628/model/PartyRef.java | 3 +- .../osl/tmf/pm628/model/PartyRoleRef.java | 3 +- ...erformanceIndicatorGroupSpecification.java | 18 +++++++++- ...ormanceIndicatorGroupSpecificationRef.java | 1 - .../PerformanceIndicatorSpecRelationship.java | 5 ++- .../PerformanceIndicatorSpecification.java | 6 +++- ...rformanceIndicatorSpecificationMapper.java | 21 ++++++++++++ .../PerformanceIndicatorSpecificationRef.java | 3 +- .../etsi/osl/tmf/pm628/model/PlaceRef.java | 24 ++++++++++++-- .../etsi/osl/tmf/pm628/model/PolicyRef.java | 5 ++- .../tmf/pm628/model/ProtocolTransferData.java | 2 ++ .../model/RelatedPartyRefOrPartyRoleRef.java | 19 +++++++++++ .../osl/tmf/pm628/model/RelatedPlaceRef.java | 6 ++++ .../pm628/model/RelatedResourceOrderItem.java | 7 ++++ .../etsi/osl/tmf/pm628/model/Resource.java | 16 ++++++++- .../etsi/osl/tmf/pm628/model/ResourceRef.java | 3 +- .../tmf/pm628/model/ResourceRelationship.java | 33 ++++++++++++------- .../pm628/model/ResourceRelationshipMVO.java | 27 ++++++++++++++- .../pm628/model/ResourceSpecificationRef.java | 3 +- .../tmf/pm628/model/ScheduleDefinition.java | 7 +++- .../etsi/osl/tmf/pm628/model/TimePeriod.java | 2 ++ .../osl/tmf/pm628/model/TrackingRecord.java | 6 +++- 50 files changed, 361 insertions(+), 48 deletions(-) create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpointMapper.java create mode 100644 src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMapper.java diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java index 90ac81a..7e10ed8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/AttachmentRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -14,6 +14,7 @@ import java.util.Objects; @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_AttachmentRef") public class AttachmentRef extends BaseRootNamedEntity { @JsonProperty("@referredType") 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 index aee9c21..61064de 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Characteristic.java @@ -2,8 +2,10 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -17,6 +19,7 @@ import java.util.Objects; @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") @@ -24,6 +27,7 @@ public class Characteristic extends BaseRootNamedEntity { @JsonProperty("characteristicRelationship") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List characteristicRelationship = new ArrayList<>(); public Characteristic() { 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 index cda9411..c374887 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CharacteristicRelationship.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; @@ -14,6 +14,7 @@ import java.util.Objects; @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_CharacteristicRelationship") public class CharacteristicRelationship extends BaseRootEntity { @JsonProperty("relationshipType") 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 index bc2ebb9..c3818df 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/CompressionType.java @@ -2,6 +2,7 @@ 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; @@ -13,6 +14,7 @@ import java.util.Objects; @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") 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 index 78fb4bb..3529d11 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataAccessEndpoint.java @@ -2,6 +2,7 @@ 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; @@ -17,12 +18,13 @@ import java.util.Objects; @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 = "PMDAE") +@Entity(name = "DataAccessEndpoint") public class DataAccessEndpoint extends LogicalResource { @JsonProperty("uri") private URI uri; + @Embedded @JsonProperty("uriQueryFilter") private DataFilterMap uriQueryFilter; 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 0000000..7e076d9 --- /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/DataFilterMap.java b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java index 019e4f3..5084ad5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMap.java @@ -3,7 +3,6 @@ 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.persistence.Entity; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; @@ -21,14 +20,18 @@ import java.util.Objects; 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<>(); 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 index f963b25..97eb870 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterMapItem.java @@ -2,7 +2,7 @@ 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.persistence.*; import jakarta.validation.Valid; import javax.annotation.Generated; @@ -17,9 +17,12 @@ import java.util.Objects; @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 { + @ManyToOne + @JoinColumn(name = "filterTemplate_id") @JsonProperty("filterTemplate") private DataFilterTemplate filterTemplate; + @Embedded @JsonProperty("stringArray") private DataFilterAttributeStringArray stringArray; 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 index a4f1dfc..6b00c22 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DataFilterTemplate.java @@ -2,13 +2,10 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; -import java.net.URI; import java.util.Objects; /** @@ -16,8 +13,8 @@ import java.util.Objects; */ -@Embeddable @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 = "DataFilterTemplate") public class DataFilterTemplate extends BaseRootNamedEntity { @JsonProperty("description") 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 index 8b593f5..72bf9f6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfMonthRecurrence.java @@ -2,6 +2,8 @@ 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; @@ -16,15 +18,19 @@ import java.util.Objects; @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; @JsonProperty("dates") 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 index ce5c8e1..38c6a53 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/DayOfWeekRecurrence.java @@ -2,6 +2,8 @@ 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; @@ -16,15 +18,19 @@ import java.util.Objects; @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; @JsonProperty("dates") 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 index d926f80..fea618c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Duration.java @@ -2,6 +2,7 @@ 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; @@ -12,6 +13,7 @@ import java.util.Objects; @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") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java index 685d7a6..5c8f786 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ExternalIdentifier.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; @@ -14,6 +14,7 @@ import java.util.Objects; @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_ExternalIdentifier") public class ExternalIdentifier extends BaseRootEntity { @JsonProperty("owner") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java index e7764b2..e371a45 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Feature.java @@ -2,8 +2,10 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -17,6 +19,7 @@ import java.util.Objects; @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_Feature") public class Feature extends BaseRootNamedEntity { @JsonProperty("isBundle") @@ -24,14 +27,17 @@ public class Feature extends BaseRootNamedEntity { @JsonProperty("featureRelationship") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List featureRelationship = new ArrayList<>(); @JsonProperty("featureCharacteristic") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List featureCharacteristic = new ArrayList<>(); @JsonProperty("policyConstraint") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List policyConstraint = new ArrayList<>(); @JsonProperty("isEnabled") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java index 8bc4f5a..8127dc2 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationship.java @@ -4,8 +4,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.Entity; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -17,8 +17,10 @@ import java.util.Objects; @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_FeatureRelationship") public class FeatureRelationship extends BaseRootNamedEntity { + @JsonProperty("@referredType") private String referredType; /** @@ -60,8 +62,10 @@ public class FeatureRelationship extends BaseRootNamedEntity { } } + @JsonProperty("relationshipType") private RelationshipTypeEnum relationshipType; + @JsonProperty("validFor") private TimePeriod validFor; public FeatureRelationship() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java index 10319d1..f125915 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipFVO.java @@ -78,8 +78,10 @@ public class FeatureRelationshipFVO { } } + @JsonProperty("relationshipType") private RelationshipTypeEnum relationshipType; + @JsonProperty("validFor") private TimePeriod validFor; public FeatureRelationshipFVO() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java index b7e26bb..9def9b8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FeatureRelationshipMVO.java @@ -78,8 +78,10 @@ public class FeatureRelationshipMVO { } } + @JsonProperty("relationshipType") private RelationshipTypeEnum relationshipType; + @JsonProperty("validFor") private TimePeriod validFor; public FeatureRelationshipMVO() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java index 84929ba..b5cc6a9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/FileTransferData.java @@ -2,6 +2,9 @@ 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.persistence.Embedded; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; @@ -15,15 +18,19 @@ import java.util.Objects; @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 FileTransferData extends ProtocolTransferData { @JsonProperty("@type") + @Column(name = "ftd_type") private String type; @JsonProperty("@baseType") + @Column(name = "ftd_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "ftd_schema_location") private String schemaLocation; @JsonProperty("fileLocation") @@ -33,12 +40,15 @@ public class FileTransferData extends ProtocolTransferData { private String fileFormat; @JsonProperty("compressionType") + @Embedded private CompressionType compressionType; @JsonProperty("retentionPeriod") + @Embedded private Duration retentionPeriod; @JsonProperty("packingType") + @Embedded private PackingType packingType; public FileTransferData() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java index 7431225..17f435c 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/IntentRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -15,6 +15,7 @@ import java.util.Objects; @Schema(name = "IntentRef", description = "Intent reference, for when Intent is used by other entities") @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 = "IntentRef") public class IntentRef extends BaseRootNamedEntity { @JsonProperty("@referredType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java index 31226fb..2a749a6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/LogicalResource.java @@ -5,10 +5,9 @@ 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 jakarta.persistence.Entity; import javax.annotation.Generated; -import java.time.OffsetDateTime; -import java.util.List; import java.util.Objects; /** @@ -25,6 +24,7 @@ import java.util.Objects; }) @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_LogicalResource") public class LogicalResource extends Resource { @JsonProperty("value") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java index beac72d..3d8c71b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ManagementJob.java @@ -5,10 +5,13 @@ 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 jakarta.persistence.CascadeType; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; import jakarta.validation.Valid; import jakarta.validation.constraints.Max; import jakarta.validation.constraints.Min; -import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import org.etsi.osl.tmf.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; @@ -35,6 +38,7 @@ import java.util.Objects; }) @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 = "ManagementJob") public class ManagementJob extends BaseRootEntity { @JsonProperty("adminState") @@ -49,10 +53,12 @@ public class ManagementJob extends BaseRootEntity { @JsonProperty("fileTransferData") @Valid + @ElementCollection(targetClass = FileTransferData.class) private List fileTransferData = new ArrayList<>(); @JsonProperty("dataAccessEndpoint") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List dataAccessEndpoint = new ArrayList<>(); @JsonProperty("jobId") @@ -67,6 +73,7 @@ public class ManagementJob extends BaseRootEntity { @JsonProperty("scheduleDefinition") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List scheduleDefinition = new ArrayList<>(); public ManagementJob() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java index ea4d4be..e6b28bb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementCollectionJob.java @@ -2,6 +2,7 @@ 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.persistence.Entity; import jakarta.validation.Valid; @@ -16,7 +17,7 @@ import java.util.Objects; @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 = "pmMeasCollJob") +@Entity(name = "MeasurementCollectionJob") public class MeasurementCollectionJob extends MeasurementJob implements PatchMeasurementCollectionJob200Response { @JsonProperty("outputFormat") @@ -25,10 +26,28 @@ public class MeasurementCollectionJob extends MeasurementJob implements PatchMea @JsonProperty("reportingPeriod") private ReportingPeriod reportingPeriod; + @Embedded @JsonProperty("jobCollectionFilter") + @AttributeOverrides( + { + @AttributeOverride(name = "type", column = @Column(name = "jcf_type")), + @AttributeOverride(name = "baseType", column = @Column(name = "jcf_base_type")), + @AttributeOverride(name = "schemaLocation", column = @Column(name = "jcf_schema_location")), +// @AttributeOverride(name = "mappings", column = @Column(name = "jcf_mappings")) + } + ) private DataFilterMap jobCollectionFilter; + @Embedded @JsonProperty("searchTaskFilter") + @AttributeOverrides( + { + @AttributeOverride(name = "type", column = @Column(name = "stf_type")), + @AttributeOverride(name = "baseType", column = @Column(name = "stf_base_type")), + @AttributeOverride(name = "schemaLocation", column = @Column(name = "stf_schema_location")), +// @AttributeOverride(name = "mappings", column = @Column(name = "stf_mappings")) + } + ) private DataFilterMap searchTaskFilter; @JsonProperty("jobOnDemand") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java index b1fc6b6..af2daf0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MeasurementJob.java @@ -5,8 +5,12 @@ 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 jakarta.persistence.*; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; import jakarta.validation.Valid; import jakarta.validation.constraints.Size; +import org.hibernate.annotations.*; import javax.annotation.Generated; import java.time.OffsetDateTime; @@ -28,6 +32,7 @@ import java.util.Objects; }) @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 = "MeasurementJob") public class MeasurementJob extends ManagementJob { @JsonProperty("consumingApplicationId") @@ -41,20 +46,37 @@ public class MeasurementJob extends ManagementJob { @JsonProperty("performanceIndicatorGroupSpecification") @Valid + @ManyToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) +// @JoinTable() private List performanceIndicatorGroupSpecification = new ArrayList<>(); @JsonProperty("performanceIndicatorSpecification") @Valid + @ManyToAny + @AnyDiscriminator(DiscriminatorType.STRING) + @Column(name = "performance_indicator_specification_type") + @AnyKeyJavaClass(String.class) + @AnyDiscriminatorValue(discriminator = "value", entity = PerformanceIndicatorSpecification.class) + @AnyDiscriminatorValue(discriminator = "ref", entity = PerformanceIndicatorSpecificationRef.class) + @Cascade(org.hibernate.annotations.CascadeType.MERGE) + @JoinTable( + name = "measurement_job_performance_indicator_specifications", + joinColumns = @JoinColumn(name = "measurement_job_id"), + inverseJoinColumns = @JoinColumn(name = "performance_indicator_specification_id") + ) private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); @JsonProperty("trackingRecord") @Valid + @ManyToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List trackingRecord = new ArrayList<>(); @JsonProperty("monitoredInstancesCriteria") + @Embedded private MonitoredInstancesCriteria monitoredInstancesCriteria; @JsonProperty("monitoredClassCriteria") + @Embedded private MonitoredClassCriteria monitoredClassCriteria; public MeasurementJob() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java index 7900e52..92e98bb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredClassCriteria.java @@ -2,6 +2,8 @@ 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.constraints.NotNull; import javax.annotation.Generated; @@ -12,16 +14,20 @@ import java.util.Objects; */ +@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 MonitoredClassCriteria { @JsonProperty("@type") + @Column(name = "mcc_type") private String type; @JsonProperty("@baseType") + @Column(name = "mcc_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "mcc_schema_location") private String schemaLocation; @JsonProperty("monitoredObjectClass") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java index 8bac500..722b6eb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonitoredInstancesCriteria.java @@ -2,6 +2,8 @@ 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 jakarta.validation.constraints.Size; @@ -16,16 +18,20 @@ import java.util.Objects; */ +@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 MonitoredInstancesCriteria { @JsonProperty("@type") + @Column(name = "mic_type") private String type; @JsonProperty("@baseType") + @Column(name = "mic_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "mic_schema_location") private String schemaLocation; @JsonProperty("monitoredObjectInstances") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java index 2dc0816..6172236 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/MonthlyScheduleDayOfWeekDefinition.java @@ -2,6 +2,9 @@ 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.ElementCollection; +import jakarta.persistence.Embeddable; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; @@ -16,19 +19,24 @@ import java.util.Objects; @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 MonthlyScheduleDayOfWeekDefinition { @JsonProperty("@type") + @Column(name = "msdowd_type") private String type; @JsonProperty("@baseType") + @Column(name = "msdowd_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "msdowd_schema_location") private String schemaLocation; @JsonProperty("dayOfMonthRecurrence") @Valid + @ElementCollection(targetClass = DayOfMonthRecurrence.class) private List dayOfMonthRecurrence = new ArrayList<>(); @JsonProperty("recurringDaySequence") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java index c44706c..cd4c319 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Note.java @@ -2,8 +2,8 @@ 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 jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; @@ -17,6 +17,7 @@ import java.util.Objects; @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_Note") public class Note extends BaseRootEntity { @JsonProperty("author") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java index 9e1a6af..4e692f8 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PackingType.java @@ -2,6 +2,7 @@ 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; @@ -13,6 +14,7 @@ import java.util.Objects; @Schema(name = "PackingType", description = "Specify if the output file(s) are to be packed.") @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 PackingType { @JsonProperty("packingEnumType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java index f2a784b..61f5fe9 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -15,6 +15,7 @@ import java.util.Objects; @Schema(name = "PartyRef", description = "A Party reference") @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 = "PartyRef") public class PartyRef extends BaseRootNamedEntity implements PartyRefOrPartyRoleRef { @JsonProperty("@referredType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java index edc380c..4d8a3ec 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PartyRoleRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -14,6 +14,7 @@ import java.util.Objects; @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_PartyRoleRef") public class PartyRoleRef extends BaseRootNamedEntity implements PartyRefOrPartyRoleRef { @JsonProperty("@referredType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java index 4c3b19f..7c3c085 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecification.java @@ -2,10 +2,13 @@ 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.persistence.Entity; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; +import org.hibernate.annotations.*; +import org.hibernate.annotations.CascadeType; import javax.annotation.Generated; import java.util.ArrayList; @@ -18,6 +21,7 @@ import java.util.Objects; @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 = "PerformanceIndicatorGroupSpecification") public class PerformanceIndicatorGroupSpecification extends BaseRootNamedEntity implements PatchPerformanceIndicatorGroupSpecification200Response, PerformanceIndicatorGroupSpecificationRefOrValue { @JsonProperty("groupCategory") @@ -25,6 +29,18 @@ public class PerformanceIndicatorGroupSpecification extends BaseRootNamedEntity @JsonProperty("performanceIndicatorSpecification") @Valid + @ManyToAny + @AnyDiscriminator(DiscriminatorType.STRING) + @Column(name = "performance_indicator_specification_type") + @AnyKeyJavaClass(String.class) + @AnyDiscriminatorValue(discriminator = "value", entity = PerformanceIndicatorSpecification.class) + @AnyDiscriminatorValue(discriminator = "ref", entity = PerformanceIndicatorSpecificationRef.class) + @Cascade(CascadeType.MERGE) + @JoinTable( + name = "performance_indicator_group_specification_performance_indicator_specifications", + joinColumns = @JoinColumn(name = "performance_indicator_group_specification_id"), + inverseJoinColumns = @JoinColumn(name = "performance_indicator_specification_id") + ) private List<@Valid PerformanceIndicatorSpecificationRefOrValue> performanceIndicatorSpecification = new ArrayList<>(); public PerformanceIndicatorGroupSpecification() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java index 228980d..d699bf4 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorGroupSpecificationRef.java @@ -2,7 +2,6 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java index cb59c04..28d68f3 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecRelationship.java @@ -2,8 +2,9 @@ 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 jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootEntity; import javax.annotation.Generated; @@ -15,6 +16,7 @@ import java.util.Objects; @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 = "PerformanceIndicatorSpecRelationship") public class PerformanceIndicatorSpecRelationship extends BaseRootEntity { @JsonProperty("relationshipType") @@ -24,6 +26,7 @@ public class PerformanceIndicatorSpecRelationship extends BaseRootEntity { private String role; @JsonProperty("validFor") + @Embedded private TimePeriod validFor; public PerformanceIndicatorSpecRelationship() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java index 743da1a..20f7f7e 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecification.java @@ -2,8 +2,10 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToMany; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; @@ -18,6 +20,7 @@ import java.util.Objects; @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 = "PerformanceIndicatorSpecification") public class PerformanceIndicatorSpecification extends BaseRootNamedEntity implements PatchPerformanceIndicatorSpecification200Response, PerformanceIndicatorSpecificationRefOrValue { @JsonProperty("description") @@ -49,6 +52,7 @@ public class PerformanceIndicatorSpecification extends BaseRootNamedEntity imple @JsonProperty("performanceIndicatorSpecRelationship") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List performanceIndicatorSpecRelationship = new ArrayList<>(); public PerformanceIndicatorSpecification() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMapper.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMapper.java new file mode 100644 index 0000000..34f3522 --- /dev/null +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationMapper.java @@ -0,0 +1,21 @@ +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 +) +public interface PerformanceIndicatorSpecificationMapper { + + PerformanceIndicatorSpecification createPerformanceIndicatorSpecification(PerformanceIndicatorSpecificationFVO performanceIndicatorSpecificationFVO); + + @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) + PerformanceIndicatorSpecification updatePerformanceIndicatorSpecification(PerformanceIndicatorSpecificationMVO performanceIndicatorSpecificationMVO, @MappingTarget PerformanceIndicatorSpecification performanceIndicatorSpecification); +} diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java index 7c05669..91b70b6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PerformanceIndicatorSpecificationRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -14,6 +14,7 @@ import java.util.Objects; @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 = "PerformanceIndicatorSpecificationRef") public class PerformanceIndicatorSpecificationRef extends BaseRootNamedEntity implements PerformanceIndicatorSpecificationRefOrValue { @JsonProperty("@referredType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java index acf7fe5..0c6891b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PlaceRef.java @@ -2,8 +2,7 @@ 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 org.etsi.osl.tmf.common.model.BaseRootNamedEntity; +import jakarta.persistence.Embeddable; import javax.annotation.Generated; import java.util.Objects; @@ -15,7 +14,26 @@ import java.util.Objects; @Schema(name = "PlaceRef", description = "Place reference.") @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 PlaceRef extends BaseRootNamedEntity { +@Embeddable +public class PlaceRef { + + @JsonProperty("@type") + private String type; + + @JsonProperty("@baseType") + private String baseType; + + @JsonProperty("@schemaLocation") + private String schemaLocation; + + @JsonProperty("href") + private String href; + + @JsonProperty("uuid") + private String uuid; + + @JsonProperty("name") + private String name; @JsonProperty("@referredType") private String referredType; diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java index dc53645..ae4fa99 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/PolicyRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -14,10 +14,13 @@ import java.util.Objects; @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_PolicyRef") public class PolicyRef extends BaseRootNamedEntity { + @JsonProperty("@referredType") private String referredType; + @JsonProperty("version") private String version; public PolicyRef() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java index cd6bb4b..d359615 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ProtocolTransferData.java @@ -5,6 +5,7 @@ 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 jakarta.persistence.Embeddable; import javax.annotation.Generated; import java.util.Objects; @@ -24,6 +25,7 @@ import java.util.Objects; }) @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 ProtocolTransferData { @JsonProperty("transportProtocol") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java index 09b14ed..4acb35b 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPartyRefOrPartyRoleRef.java @@ -2,8 +2,16 @@ 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.DiscriminatorType; +import jakarta.persistence.Embeddable; +import jakarta.persistence.JoinColumn; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; +import org.hibernate.annotations.Any; +import org.hibernate.annotations.AnyDiscriminator; +import org.hibernate.annotations.AnyDiscriminatorValue; +import org.hibernate.annotations.AnyKeyJavaClass; import javax.annotation.Generated; import java.util.Objects; @@ -14,21 +22,32 @@ import java.util.Objects; @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 RelatedPartyRefOrPartyRoleRef { @JsonProperty("@type") + @Column(name = "rproprr_type") private String type; @JsonProperty("@baseType") + @Column(name = "rproprr_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "rproprr_schema_location") private String schemaLocation; @JsonProperty("role") private String role; @JsonProperty("partyOrPartyRole") + @Any + @AnyDiscriminator(DiscriminatorType.STRING) + @AnyDiscriminatorValue(discriminator = "pr", entity = PartyRef.class) + @AnyDiscriminatorValue(discriminator = "prr", entity = PartyRoleRef.class) + @AnyKeyJavaClass(String.class) + @Column(name = "party_or_party_role_type") + @JoinColumn(name = "party_ref_or_party_role_ref_id") private PartyRefOrPartyRoleRef partyOrPartyRole; public RelatedPartyRefOrPartyRoleRef() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java index 00327cb..72e6ae5 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedPlaceRef.java @@ -2,6 +2,8 @@ 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; @@ -14,15 +16,19 @@ import java.util.Objects; @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 RelatedPlaceRef { @JsonProperty("@type") + @Column(name = "rpr_type") private String type; @JsonProperty("@baseType") + @Column(name = "rpr_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "rpr_schema_location") private String schemaLocation; @JsonProperty("role") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java index cb6c4bd..5e2cb57 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/RelatedResourceOrderItem.java @@ -2,6 +2,8 @@ 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; @@ -14,18 +16,23 @@ import java.util.Objects; @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 RelatedResourceOrderItem { @JsonProperty("@type") + @Column(name = "rroi_type") private String type; @JsonProperty("@baseType") + @Column(name = "rroi_base_type") private String baseType; @JsonProperty("@schemaLocation") + @Column(name = "rroi_schema_location") private String schemaLocation; @JsonProperty("@referredType") + @Column(name = "rroi_referred_type") private String referredType; @JsonProperty("resourceOrderHref") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java index e70748a..69f5cb0 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/Resource.java @@ -5,8 +5,9 @@ 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 jakarta.persistence.*; +import jakarta.persistence.Entity; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import org.springframework.format.annotation.DateTimeFormat; @@ -32,6 +33,7 @@ import java.util.Objects; }) @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_Resource") public class Resource extends BaseRootNamedEntity implements ResourceRefOrValue { @JsonProperty("category") @@ -57,37 +59,46 @@ public class Resource extends BaseRootNamedEntity implements ResourceRefOrValue private ResourceUsageStateType usageState; @JsonProperty("validFor") + @Embedded private TimePeriod validFor; @JsonProperty("note") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List note = new ArrayList<>(); @JsonProperty("resourceOrderItem") @Valid + @ElementCollection(targetClass = RelatedResourceOrderItem.class) private List resourceOrderItem = new ArrayList<>(); @JsonProperty("place") @Valid + @ElementCollection(targetClass = RelatedPlaceRef.class) private List place = new ArrayList<>(); @JsonProperty("relatedParty") @Valid + @ElementCollection(targetClass = RelatedPartyRefOrPartyRoleRef.class) private List relatedParty = new ArrayList<>(); @JsonProperty("resourceRelationship") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List resourceRelationship = new ArrayList<>(); @JsonProperty("resourceCharacteristic") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List resourceCharacteristic = new ArrayList<>(); @JsonProperty("attachment") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List attachment = new ArrayList<>(); @JsonProperty("resourceSpecification") + @OneToOne(cascade = CascadeType.ALL) private ResourceSpecificationRef resourceSpecification; @JsonProperty("startOperatingDate") @@ -99,13 +110,16 @@ public class Resource extends BaseRootNamedEntity implements ResourceRefOrValue @JsonProperty("activationFeature") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List activationFeature = new ArrayList<>(); @JsonProperty("intent") + @OneToOne(cascade = CascadeType.ALL) private IntentRef intent; @JsonProperty("externalIdentifier") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List externalIdentifier = new ArrayList<>(); public Resource() { diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java index ce1a7cf..5062148 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -15,6 +15,7 @@ import java.util.Objects; @Schema(name = "ResourceRef", description = "Resource reference, for when Resource is used by other entities.") @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_ResourceRef") public class ResourceRef extends BaseRootNamedEntity implements ResourceRefOrValue { @JsonProperty("@referredType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java index ddd29b0..3a28736 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationship.java @@ -2,8 +2,15 @@ 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.persistence.Entity; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; +import org.etsi.osl.tmf.common.model.BaseRootEntity; +import org.hibernate.annotations.Any; +import org.hibernate.annotations.AnyDiscriminator; +import org.hibernate.annotations.AnyDiscriminatorValue; +import org.hibernate.annotations.AnyKeyJavaClass; import javax.annotation.Generated; import java.util.ArrayList; @@ -16,22 +23,24 @@ import java.util.Objects; @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 ResourceRelationship { - - @JsonProperty("@type") - private String type; - - @JsonProperty("@baseType") - private String baseType; - - @JsonProperty("@schemaLocation") - private String schemaLocation; +@Entity(name = "PM628_ResourceRelationship") +public class ResourceRelationship extends BaseRootEntity { @JsonProperty("resourceRelationshipCharacteristic") @Valid + @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List resourceRelationshipCharacteristic = new ArrayList<>(); @JsonProperty("resource") + @Any + @AnyDiscriminator(DiscriminatorType.STRING) + @AnyDiscriminatorValue(discriminator = "dae", entity = DataAccessEndpoint.class) + @AnyDiscriminatorValue(discriminator = "lr", entity = LogicalResource.class) + @AnyDiscriminatorValue(discriminator = "r", entity = Resource.class) + @AnyDiscriminatorValue(discriminator = "rr", entity = ResourceRef.class) + @AnyKeyJavaClass(String.class) + @Column(name = "resource_type") + @JoinColumn(name = "resource_id") private ResourceRefOrValue resource; @JsonProperty("relationshipType") @@ -188,6 +197,7 @@ public class ResourceRelationship { return Objects.equals(this.type, resourceRelationship.type) && Objects.equals(this.baseType, resourceRelationship.baseType) && Objects.equals(this.schemaLocation, resourceRelationship.schemaLocation) && + Objects.equals(this.uuid, resourceRelationship.uuid) && Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationship.resourceRelationshipCharacteristic) && Objects.equals(this.resource, resourceRelationship.resource) && Objects.equals(this.relationshipType, resourceRelationship.relationshipType); @@ -195,7 +205,7 @@ public class ResourceRelationship { @Override public int hashCode() { - return Objects.hash(type, baseType, schemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + return Objects.hash(type, baseType, schemaLocation, uuid, resourceRelationshipCharacteristic, resource, relationshipType); } @Override @@ -205,6 +215,7 @@ public class ResourceRelationship { 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(" uuid: ").append(toIndentedString(uuid)).append("\n"); sb.append(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java index 0678503..0c876f7 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceRelationshipMVO.java @@ -27,6 +27,9 @@ public class ResourceRelationshipMVO { @JsonProperty("@schemaLocation") private String schemaLocation; + @JsonProperty("uuid") + private String uuid; + @JsonProperty("resourceRelationshipCharacteristic") @Valid private List resourceRelationshipCharacteristic = new ArrayList<>(); @@ -110,6 +113,26 @@ public class ResourceRelationshipMVO { this.schemaLocation = schemaLocation; } + public ResourceRelationshipMVO 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 ResourceRelationshipMVO resourceRelationshipCharacteristic(List resourceRelationshipCharacteristic) { this.resourceRelationshipCharacteristic = resourceRelationshipCharacteristic; return this; @@ -190,6 +213,7 @@ public class ResourceRelationshipMVO { return Objects.equals(this.type, resourceRelationshipMVO.type) && Objects.equals(this.baseType, resourceRelationshipMVO.baseType) && Objects.equals(this.schemaLocation, resourceRelationshipMVO.schemaLocation) && + Objects.equals(this.uuid, resourceRelationshipMVO.uuid) && Objects.equals(this.resourceRelationshipCharacteristic, resourceRelationshipMVO.resourceRelationshipCharacteristic) && Objects.equals(this.resource, resourceRelationshipMVO.resource) && Objects.equals(this.relationshipType, resourceRelationshipMVO.relationshipType); @@ -197,7 +221,7 @@ public class ResourceRelationshipMVO { @Override public int hashCode() { - return Objects.hash(type, baseType, schemaLocation, resourceRelationshipCharacteristic, resource, relationshipType); + return Objects.hash(type, baseType, schemaLocation, uuid, resourceRelationshipCharacteristic, resource, relationshipType); } @Override @@ -207,6 +231,7 @@ public class ResourceRelationshipMVO { 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(" resourceRelationshipCharacteristic: ").append(toIndentedString(resourceRelationshipCharacteristic)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n"); diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java index d36a030..195d9cb 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ResourceSpecificationRef.java @@ -2,7 +2,7 @@ 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 jakarta.persistence.Entity; import org.etsi.osl.tmf.common.model.BaseRootNamedEntity; import javax.annotation.Generated; @@ -14,6 +14,7 @@ import java.util.Objects; @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_ResourceSpecificationRef") public class ResourceSpecificationRef extends BaseRootNamedEntity { @JsonProperty("@referredType") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java index affce7d..6e1622f 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/ScheduleDefinition.java @@ -2,8 +2,10 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; @@ -19,6 +21,7 @@ import java.util.Objects; @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 = "ScheduleDefinition") public class ScheduleDefinition extends BaseRootEntity { @JsonProperty("scheduleDefinitionStartTime") @@ -41,6 +44,7 @@ public class ScheduleDefinition extends BaseRootEntity { @JsonProperty("WeeklyScheduledDefinition") @Valid + @ElementCollection(targetClass = DayOfWeekRecurrence.class) private List weeklyScheduledDefinition = new ArrayList<>(); @JsonProperty("monthlyScheduleDayOfMonthDefinition") @@ -48,6 +52,7 @@ public class ScheduleDefinition extends BaseRootEntity { private List monthlyScheduleDayOfMonthDefinition = new ArrayList<>(); @JsonProperty("MonthlyScheduleDayOfWeekDefinition") + @Embedded private MonthlyScheduleDayOfWeekDefinition monthlyScheduleDayOfWeekDefinition; @JsonProperty("dateScheduleDefintion") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java index 96ab57d..e538ac6 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TimePeriod.java @@ -2,6 +2,7 @@ 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 org.springframework.format.annotation.DateTimeFormat; @@ -15,6 +16,7 @@ import java.util.Objects; @Schema(name = "TimePeriod", description = "A period of time, either as a deadline (endDateTime only) a startDateTime only, or both") @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 TimePeriod { @JsonProperty("startDateTime") diff --git a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java index 1680b4c..f5040df 100644 --- a/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java +++ b/src/main/java/org/etsi/osl/tmf/pm628/model/TrackingRecord.java @@ -2,8 +2,10 @@ package org.etsi.osl.tmf.pm628.model; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.ManyToMany; import jakarta.validation.Valid; -import jakarta.validation.constraints.NotNull; import org.etsi.osl.tmf.common.model.BaseRootEntity; import org.springframework.format.annotation.DateTimeFormat; @@ -19,6 +21,7 @@ import java.util.Objects; @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 = "TrackingRecord") public class TrackingRecord extends BaseRootEntity { @JsonProperty("description") @@ -26,6 +29,7 @@ public class TrackingRecord extends BaseRootEntity { @JsonProperty("characteristic") @Valid + @ManyToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private List characteristic = new ArrayList<>(); @JsonProperty("systemId") -- GitLab