c7c7bba20cc2c2069aac83ff8d76a7270978a5e2
[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
25 import com.fasterxml.jackson.annotation.JsonIgnore;
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 import com.fasterxml.jackson.annotation.JsonRootName;
28
29 /**
30  * Stores allotted-resource information
31  *
32  */
33 @JsonRootName("allottedResource")
34 public class AllottedResource extends Resource {
35
36         private static final long serialVersionUID = 1L;
37
38         /*
39          * set resourceType for this object
40          */
41         public AllottedResource(){
42                 resourceType = ResourceType.ALLOTTED_RESOURCE;
43                 setResourceId(UUID.randomUUID().toString());
44         }
45
46         /*
47          * fields specific to Allotted Resource resource type
48          */
49         private String allottedResourceType;
50         private String allottedResourceRole;
51         private String providingServiceModelName;
52         private String providingServiceModelInvariantUuid;
53         private String providingServiceModelUuid;
54         private String nfFunction;
55         private String nfType;
56         private String nfRole;
57         private String nfNamingCode;
58         private String orchestrationStatus;
59
60         @JsonIgnore
61         private String resourceInput;
62
63         /*
64          * GET and SET
65          */
66         public String getAllottedResourceType() {
67                 return allottedResourceType;
68         }
69         public void setAllottedResourceType(String allottedResourceType) {
70                 this.allottedResourceType = allottedResourceType;
71         }
72         public String getAllottedResourceRole() {
73                 return allottedResourceRole;
74         }
75         public void setAllottedResourceRole(String allottedResourceRole) {
76                 this.allottedResourceRole = allottedResourceRole;
77         }
78         public String getProvidingServiceModelName() {
79                 return providingServiceModelName;
80         }
81         public void setProvidingServiceModelName(String providingServiceModelName) {
82                 this.providingServiceModelName = providingServiceModelName;
83         }
84         public String getProvidingServiceModelInvariantUuid() {
85                 return providingServiceModelInvariantUuid;
86         }
87         public void setProvidingServiceModelInvariantUuid(
88                         String providingServiceModelInvariantUuid) {
89                 this.providingServiceModelInvariantUuid = providingServiceModelInvariantUuid;
90         }
91         public String getProvidingServiceModelUuid() {
92                 return providingServiceModelUuid;
93         }
94         public void setProvidingServiceModelUuid(String providingServiceModelUuid) {
95                 this.providingServiceModelUuid = providingServiceModelUuid;
96         }
97         public String getNfFunction() {
98                 return nfFunction;
99         }
100         public void setNfFunction(String nfFunction) {
101                 this.nfFunction = nfFunction;
102         }
103         public String getNfType() {
104                 return nfType;
105         }
106         public void setNfType(String nfType) {
107                 this.nfType = nfType;
108         }
109         public String getNfRole() {
110                 return nfRole;
111         }
112         public void setNfRole(String nfRole) {
113                 this.nfRole = nfRole;
114         }
115         public String getNfNamingCode() {
116                 return nfNamingCode;
117         }
118         public void setNfNamingCode(String nfNamingCode) {
119                 this.nfNamingCode = nfNamingCode;
120         }
121         public String getOrchestrationStatus() {
122                 return orchestrationStatus;
123         }
124         public void setOrchestrationStatus(String orchestrationStatus) {
125                 this.orchestrationStatus = orchestrationStatus;
126         }
127
128
129         public String getResourceInput() {
130                 return resourceInput;
131         }
132
133         public void setResourceInput(String resourceInput) {
134                 this.resourceInput = resourceInput;
135         }
136 }