2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.bpmn.core.domain;
23 import java.util.UUID;
25 import com.fasterxml.jackson.annotation.JsonIgnore;
26 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
27 import com.fasterxml.jackson.annotation.JsonRootName;
30 * Stores allotted-resource information
33 @JsonRootName("allottedResource")
34 public class AllottedResource extends Resource {
36 private static final long serialVersionUID = 1L;
39 * set resourceType for this object
41 public AllottedResource(){
42 resourceType = ResourceType.ALLOTTED_RESOURCE;
43 setResourceId(UUID.randomUUID().toString());
47 * fields specific to Allotted Resource resource type
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;
61 private String resourceInput;
66 public String getAllottedResourceType() {
67 return allottedResourceType;
69 public void setAllottedResourceType(String allottedResourceType) {
70 this.allottedResourceType = allottedResourceType;
72 public String getAllottedResourceRole() {
73 return allottedResourceRole;
75 public void setAllottedResourceRole(String allottedResourceRole) {
76 this.allottedResourceRole = allottedResourceRole;
78 public String getProvidingServiceModelName() {
79 return providingServiceModelName;
81 public void setProvidingServiceModelName(String providingServiceModelName) {
82 this.providingServiceModelName = providingServiceModelName;
84 public String getProvidingServiceModelInvariantUuid() {
85 return providingServiceModelInvariantUuid;
87 public void setProvidingServiceModelInvariantUuid(
88 String providingServiceModelInvariantUuid) {
89 this.providingServiceModelInvariantUuid = providingServiceModelInvariantUuid;
91 public String getProvidingServiceModelUuid() {
92 return providingServiceModelUuid;
94 public void setProvidingServiceModelUuid(String providingServiceModelUuid) {
95 this.providingServiceModelUuid = providingServiceModelUuid;
97 public String getNfFunction() {
100 public void setNfFunction(String nfFunction) {
101 this.nfFunction = nfFunction;
103 public String getNfType() {
106 public void setNfType(String nfType) {
107 this.nfType = nfType;
109 public String getNfRole() {
112 public void setNfRole(String nfRole) {
113 this.nfRole = nfRole;
115 public String getNfNamingCode() {
118 public void setNfNamingCode(String nfNamingCode) {
119 this.nfNamingCode = nfNamingCode;
121 public String getOrchestrationStatus() {
122 return orchestrationStatus;
124 public void setOrchestrationStatus(String orchestrationStatus) {
125 this.orchestrationStatus = orchestrationStatus;
129 public String getResourceInput() {
130 return resourceInput;
133 public void setResourceInput(String resourceInput) {
134 this.resourceInput = resourceInput;