aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/changeManagement/ModelInfo.java
blob: 8f44a4bf64054743830ef8b4eb33da6b0ec44fd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
package org.onap.vid.changeManagement;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"modelType",
"modelInvariantId",
"modelVersionId",
"modelName",
"modelVersion",
"modelCustomizationName",
"modelCustomizationId"
})
public class ModelInfo {

	public ModelInfo(){

	}

	public ModelInfo(org.onap.vid.domain.mso.ModelInfo modelInfo){
		this.setModelType(modelInfo.getModelType().toString());
		this.setModelInvariantId(modelInfo.getModelInvariantId());
		this.setModelVersionId(modelInfo.getModelNameVersionId());
		this.setModelName(modelInfo.getModelName());
		this.setModelVersion(modelInfo.getModelVersion());
		this.setModelCustomizationId(modelInfo.getModelCustomizationId());
		this.setModelVersionId(modelInfo.getModelVersionId());
	}

	
	@JsonProperty("modelType")
	private String modelType;
	@JsonProperty("modelInvariantId")
	private String modelInvariantId;
	@JsonProperty("modelVersionId")
	private String modelVersionId;
	@JsonProperty("modelName")
	private String modelName;
	@JsonProperty("modelVersion")
	private String modelVersion;
	@JsonProperty("modelCustomizationName")
	private String modelCustomizationName;
	@JsonProperty("modelCustomizationId")
	private String modelCustomizationId;
	@JsonIgnore
	private Map<String, Object> additionalProperties = new HashMap<String, Object>();

	@JsonProperty("modelType")
	public String getModelType() {
	return modelType;
	}

	@JsonProperty("modelType")
	public void setModelType(String modelType) {
	this.modelType = modelType;
	}

	@JsonProperty("modelInvariantId")
	public String getModelInvariantId() {
	return modelInvariantId;
	}

	@JsonProperty("modelInvariantId")
	public void setModelInvariantId(String modelInvariantId) {
	this.modelInvariantId = modelInvariantId;
	}

	@JsonProperty("modelVersionId")
	public String getModelVersionId() {
	return modelVersionId;
	}

	@JsonProperty("modelVersionId")
	public void setModelVersionId(String modelVersionId) {
	this.modelVersionId = modelVersionId;
	}

	@JsonProperty("modelName")
	public String getModelName() {
	return modelName;
	}

	@JsonProperty("modelName")
	public void setModelName(String modelName) {
	this.modelName = modelName;
	}

	@JsonProperty("modelVersion")
	public String getModelVersion() {
	return modelVersion;
	}

	@JsonProperty("modelVersion")
	public void setModelVersion(String modelVersion) {
	this.modelVersion = modelVersion;
	}

	@JsonProperty("modelCustomizationName")
	public String getModelCustomizationName() {
	return modelCustomizationName;
	}

	@JsonProperty("modelCustomizationName")
	public void setModelCustomizationName(String modelCustomizationName) {
	this.modelCustomizationName = modelCustomizationName;
	}

	@JsonProperty("modelCustomizationId")
	public String getModelCustomizationId() {
	return modelCustomizationId;
	}

	@JsonProperty("modelCustomizationId")
	public void setModelCustomizationId(String modelCustomizationId) {
	this.modelCustomizationId = modelCustomizationId;
	}

	@JsonAnyGetter
	public Map<String, Object> getAdditionalProperties() {
	return this.additionalProperties;
	}

	@JsonAnySetter
	public void setAdditionalProperty(String name, Object value) {
	this.additionalProperties.put(name, value);
	}




}