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;
24 import com.fasterxml.jackson.annotation.JsonIgnore;
25 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 import com.fasterxml.jackson.annotation.JsonRootName;
29 * Stores allotted-resource information
32 @JsonRootName("allottedResource")
33 public class AllottedResource extends Resource {
35 private static final long serialVersionUID = 1L;
38 * set resourceType for this object
40 public AllottedResource() {
41 resourceType = ResourceType.ALLOTTED_RESOURCE;
42 setResourceId(UUID.randomUUID().toString());
46 * fields specific to Allotted Resource resource type
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;
60 private String resourceInput;
65 public String getAllottedResourceType() {
66 return allottedResourceType;
69 public void setAllottedResourceType(String allottedResourceType) {
70 this.allottedResourceType = allottedResourceType;
73 public String getAllottedResourceRole() {
74 return allottedResourceRole;
77 public void setAllottedResourceRole(String allottedResourceRole) {
78 this.allottedResourceRole = allottedResourceRole;
81 public String getProvidingServiceModelName() {
82 return providingServiceModelName;
85 public void setProvidingServiceModelName(String providingServiceModelName) {
86 this.providingServiceModelName = providingServiceModelName;
89 public String getProvidingServiceModelInvariantUuid() {
90 return providingServiceModelInvariantUuid;
93 public void setProvidingServiceModelInvariantUuid(String providingServiceModelInvariantUuid) {
94 this.providingServiceModelInvariantUuid = providingServiceModelInvariantUuid;
97 public String getProvidingServiceModelUuid() {
98 return providingServiceModelUuid;
101 public void setProvidingServiceModelUuid(String providingServiceModelUuid) {
102 this.providingServiceModelUuid = providingServiceModelUuid;
105 public String getNfFunction() {
109 public void setNfFunction(String nfFunction) {
110 this.nfFunction = nfFunction;
113 public String getNfType() {
117 public void setNfType(String nfType) {
118 this.nfType = nfType;
121 public String getNfRole() {
125 public void setNfRole(String nfRole) {
126 this.nfRole = nfRole;
129 public String getNfNamingCode() {
133 public void setNfNamingCode(String nfNamingCode) {
134 this.nfNamingCode = nfNamingCode;
137 public String getOrchestrationStatus() {
138 return orchestrationStatus;
141 public void setOrchestrationStatus(String orchestrationStatus) {
142 this.orchestrationStatus = orchestrationStatus;
146 public String getResourceInput() {
147 return resourceInput;
150 public void setResourceInput(String resourceInput) {
151 this.resourceInput = resourceInput;