summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap/sdc/dcae/composition/restmodels/VfcmtData.java
blob: 6c7a65eab95edbe84eb99e127df5a78771d72f5a (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
package org.onap.sdc.dcae.composition.restmodels;

import org.onap.sdc.dcae.composition.restmodels.sdc.ResourceDetailed;

public class VfcmtData extends MonitoringComponent {

	private String flowType;
	private String serviceUuid;

	private String invariantUUID;

	public VfcmtData(ResourceDetailed vfcmt) {
		setUuid(vfcmt.getUuid());
		setName(vfcmt.getName());
		setDescription(vfcmt.getDescription());
	}
	
	public VfcmtData(ResourceDetailed vfcmt, String vfiName, String flowType) {
		this(vfcmt);
		setVfiName(vfiName);
		setFlowType(flowType);
	}

	public VfcmtData(ResourceDetailed vfcmt, String vfiName, String flowType, String serviceUuid) {
		this(vfcmt, vfiName, flowType);
		setInvariantUUID(vfcmt.getInvariantUUID());
		setLifecycleState(vfcmt.getLifecycleState());
		setServiceUuid(serviceUuid);
	}

	public String getFlowType() {
		return flowType;
	}

	public void setFlowType(String flowType) {
		this.flowType = flowType;
	}

	public String getServiceUuid() {
		return serviceUuid;
	}

	public void setServiceUuid(String serviceUuid) {
		this.serviceUuid = serviceUuid;
	}

	public String getInvariantUUID() {
		return invariantUUID;
	}

	public void setInvariantUUID(String invariantUUID) {
		this.invariantUUID = invariantUUID;
	}


}