841eaee67549d1b562ffdc5ad3a68cf49e4d1bf1
[so.git] / bpmn / MSOCoreBPMN / src / main / java / org / onap / so / bpmn / core / domain / AllottedResource.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.so.bpmn.core.domain;
22
23 import java.util.UUID;
24 import com.fasterxml.jackson.annotation.JsonIgnore;
25 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 import com.fasterxml.jackson.annotation.JsonRootName;
27
28 /**
29  * Stores allotted-resource information
30  *
31  */
32 @JsonRootName("allottedResource")
33 public class AllottedResource extends Resource {
34
35     private static final long serialVersionUID = 1L;
36
37     /*
38      * set resourceType for this object
39      */
40     public AllottedResource() {
41         resourceType = ResourceType.ALLOTTED_RESOURCE;
42         setResourceId(UUID.randomUUID().toString());
43     }
44
45     /*
46      * fields specific to Allotted Resource resource type
47      */
48     private String allottedResourceType;
49     private String allottedResourceRole;
50     private String providingServiceModelName;
51     private String providingServiceModelInvariantUuid;
52     private String providingServiceModelUuid;
53     private String nfFunction;
54     private String nfType;
55     private String nfRole;
56     private String nfNamingCode;
57     private String orchestrationStatus;
58
59     @JsonIgnore
60     private String resourceInput;
61
62     /*
63      * GET and SET
64      */
65     public String getAllottedResourceType() {
66         return allottedResourceType;
67     }
68
69     public void setAllottedResourceType(String allottedResourceType) {
70         this.allottedResourceType = allottedResourceType;
71     }
72
73     public String getAllottedResourceRole() {
74         return allottedResourceRole;
75     }
76
77     public void setAllottedResourceRole(String allottedResourceRole) {
78         this.allottedResourceRole = allottedResourceRole;
79     }
80
81     public String getProvidingServiceModelName() {
82         return providingServiceModelName;
83     }
84
85     public void setProvidingServiceModelName(String providingServiceModelName) {
86         this.providingServiceModelName = providingServiceModelName;
87     }
88
89     public String getProvidingServiceModelInvariantUuid() {
90         return providingServiceModelInvariantUuid;
91     }
92
93     public void setProvidingServiceModelInvariantUuid(String providingServiceModelInvariantUuid) {
94         this.providingServiceModelInvariantUuid = providingServiceModelInvariantUuid;
95     }
96
97     public String getProvidingServiceModelUuid() {
98         return providingServiceModelUuid;
99     }
100
101     public void setProvidingServiceModelUuid(String providingServiceModelUuid) {
102         this.providingServiceModelUuid = providingServiceModelUuid;
103     }
104
105     public String getNfFunction() {
106         return nfFunction;
107     }
108
109     public void setNfFunction(String nfFunction) {
110         this.nfFunction = nfFunction;
111     }
112
113     public String getNfType() {
114         return nfType;
115     }
116
117     public void setNfType(String nfType) {
118         this.nfType = nfType;
119     }
120
121     public String getNfRole() {
122         return nfRole;
123     }
124
125     public void setNfRole(String nfRole) {
126         this.nfRole = nfRole;
127     }
128
129     public String getNfNamingCode() {
130         return nfNamingCode;
131     }
132
133     public void setNfNamingCode(String nfNamingCode) {
134         this.nfNamingCode = nfNamingCode;
135     }
136
137     public String getOrchestrationStatus() {
138         return orchestrationStatus;
139     }
140
141     public void setOrchestrationStatus(String orchestrationStatus) {
142         this.orchestrationStatus = orchestrationStatus;
143     }
144
145
146     public String getResourceInput() {
147         return resourceInput;
148     }
149
150     public void setResourceInput(String resourceInput) {
151         this.resourceInput = resourceInput;
152     }
153 }