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.aai.model.AaiGetNetworkCollectionDetails;
23 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24 import com.fasterxml.jackson.annotation.JsonProperty;
26 @JsonIgnoreProperties(ignoreUnknown = true)
27 public class InstanceGroup {
28 @JsonProperty("instance-group-role")
29 private String instanceGroupRole;
30 @JsonProperty("model-invariant-id")
31 private String modelInvariantId;
32 @JsonProperty("model-version-id")
33 private String modelVersionId;
35 private String description;
36 @JsonProperty("instance-group-type")
37 private String instanceGroupType;
38 @JsonProperty("resource-version")
39 private String resourceVersion;
40 @JsonProperty("instance-group-name")
41 private String instanceGroupName;
42 @JsonProperty("instance-group-function")
43 private String instanceGroupFunction;
44 @JsonProperty("relationship-list")
45 private RelationshipList relationshipList;
47 public InstanceGroup(){
51 @JsonIgnoreProperties(ignoreUnknown = true)
53 @JsonProperty("instance-group-role")
54 String instanceGroupRole,
55 @JsonProperty("model-invariant-id")
56 String modelInvariantId,
57 @JsonProperty("model-version-id")
58 String modelVersionId,
59 @JsonProperty(value = "id", required = true)
61 @JsonProperty(value = "description", required = true)
63 @JsonProperty(value = "instance-group-type", required = true)
64 String instanceGroupType,
65 @JsonProperty("resource-version")
66 String resourceVersion,
67 @JsonProperty("instance-group-name")
68 String instanceGroupName,
69 @JsonProperty("instance-group-function")
70 String instanceGroupFunction,
71 @JsonProperty("relationship-list")
72 RelationshipList relationshipList) {
73 this.instanceGroupRole = instanceGroupRole;
74 this.modelInvariantId = modelInvariantId;
75 this.modelVersionId = modelVersionId;
77 this.description = description;
78 this.instanceGroupType = instanceGroupType;
79 this.resourceVersion = resourceVersion;
80 this.instanceGroupName = instanceGroupName;
81 this.instanceGroupFunction = instanceGroupFunction;
82 this.relationshipList = relationshipList;
85 public String getInstanceGroupRole() {
86 return instanceGroupRole;
89 public String getModelInvariantId() {
90 return modelInvariantId;
93 public String getModelVersionId() {
94 return modelVersionId;
97 public String getId() {
101 public String getDescription() {
105 public String getInstanceGroupType() {
106 return instanceGroupType;
109 public String getResourceVersion() {
110 return resourceVersion;
113 public String getInstanceGroupName() {
114 return instanceGroupName;
117 public String getInstanceGroupFunction() {
118 return instanceGroupFunction;
121 public RelationshipList getRelationshipList() {
122 return relationshipList;