2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
22 package org.onap.so.serviceinstancebeans;
24 import java.io.Serializable;
25 import java.util.ArrayList;
26 import java.util.List;
29 import com.fasterxml.jackson.annotation.JsonInclude;
30 import com.fasterxml.jackson.annotation.JsonProperty;
31 import com.fasterxml.jackson.annotation.JsonRootName;
32 import com.fasterxml.jackson.annotation.JsonInclude.Include;
34 @JsonRootName(value = "service")
35 @JsonInclude(Include.NON_DEFAULT)
36 public class Service implements Serializable{
38 private static final long serialVersionUID = 2194797231782624520L;
39 @JsonProperty("modelInfo")
40 protected ModelInfo modelInfo;
41 @JsonProperty("cloudConfiguration")
42 protected CloudConfiguration cloudConfiguration;
43 @JsonProperty("instanceName")
44 protected String instanceName;
45 @JsonProperty("instanceParams")
46 private List<Map<String, String>> instanceParams = new ArrayList<>();
47 @JsonProperty("resources")
48 protected Resources resources;
50 public ModelInfo getModelInfo() {
54 public void setModelInfo(ModelInfo modelInfo) {
55 this.modelInfo = modelInfo;
58 public CloudConfiguration getCloudConfiguration() {
59 return cloudConfiguration;
62 public void setCloudConfiguration(CloudConfiguration cloudConfiguration) {
63 this.cloudConfiguration = cloudConfiguration;
66 public String getInstanceName() {
70 public void setInstanceName(String instanceName) {
71 this.instanceName = instanceName;
74 public List<Map<String, String>> getInstanceParams() {
75 return instanceParams;
78 public void setInstanceParams(List<Map<String, String>> instanceParams) {
79 this.instanceParams = instanceParams;
82 public Resources getResources() {
86 public void setResources(Resources resources) {
87 this.resources = resources;
91 public String toString() {
92 return "Service [modelInfo=" + modelInfo +
93 ", cloudConfiguration=" + cloudConfiguration
94 + ", instanceName=" + instanceName +
95 ", instanceParams=" + instanceParams +
96 ", resources=" + resources + "]";