4bc83ce3cbfb7cd79adc80d90f30d1f4457ec6b2
[vid.git] / vid-app-common / src / main / java / org / onap / vid / aai / model / AaiGetNetworkCollectionDetails / InstanceGroup.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
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
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.vid.aai.model.AaiGetNetworkCollectionDetails;
22
23 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
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;
34     private String id;
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;
46
47     public InstanceGroup(){
48         super();
49     }
50     
51     @JsonIgnoreProperties(ignoreUnknown = true)
52     public InstanceGroup(
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)
60                         String id,
61                         @JsonProperty(value = "description", required = true)
62                         String description,
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;
76         this.id = id;
77         this.description = description;
78         this.instanceGroupType = instanceGroupType;
79         this.resourceVersion = resourceVersion;
80         this.instanceGroupName = instanceGroupName;
81         this.instanceGroupFunction = instanceGroupFunction;
82         this.relationshipList = relationshipList;
83     }
84
85     public String getInstanceGroupRole() {
86         return instanceGroupRole;
87     }
88
89     public String getModelInvariantId() {
90         return modelInvariantId;
91     }
92
93     public String getModelVersionId() {
94         return modelVersionId;
95     }
96
97     public String getId() {
98         return id;
99     }
100
101     public String getDescription() {
102         return description;
103     }
104
105     public String getInstanceGroupType() {
106         return instanceGroupType;
107     }
108
109     public String getResourceVersion() {
110         return resourceVersion;
111     }
112
113     public String getInstanceGroupName() {
114         return instanceGroupName;
115     }
116
117     public String getInstanceGroupFunction() {
118         return instanceGroupFunction;
119     }
120
121     public RelationshipList getRelationshipList() {
122         return relationshipList;
123     }
124
125 }