2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2019 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.vid.model.aaiTree;
23 import static org.onap.vid.aai.util.AAITreeConverter.IS_BASE_VF_MODULE;
25 public class VfModule extends Node {
27 private boolean isBase;
28 private String volumeGroupName;
30 public VfModule(AAITreeNode node) {
32 fillCloudConfigurationProperties(this, node.getCloudConfiguration());
35 public boolean getIsBase() {
39 public void setIsBase(boolean isBase) {
43 public String getVolumeGroupName() {
44 return volumeGroupName;
47 public void setVolumeGroupName(String volumeGroupName) {
48 this.volumeGroupName = volumeGroupName;
51 public static VfModule from(AAITreeNode node) {
52 VfModule vfModule = new VfModule(node);
54 if (node.getAdditionalProperties().get(IS_BASE_VF_MODULE) != null) {
55 vfModule.setIsBase(Boolean.valueOf(node.getAdditionalProperties().get(IS_BASE_VF_MODULE).toString()));