/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= */ package org.onap.so.serviceinstancebeans; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonRootName; import com.fasterxml.jackson.annotation.JsonInclude.Include; @JsonRootName(value = "service") @JsonInclude(Include.NON_DEFAULT) public class Service implements Serializable { private static final long serialVersionUID = 2194797231782624520L; @JsonProperty("modelInfo") protected ModelInfo modelInfo; @JsonProperty("cloudConfiguration") protected CloudConfiguration cloudConfiguration; @JsonProperty("instanceName") protected String instanceName; @JsonProperty("instanceParams") private List> instanceParams = new ArrayList<>(); @JsonProperty("resources") protected Resources resources; public ModelInfo getModelInfo() { return modelInfo; } public void setModelInfo(ModelInfo modelInfo) { this.modelInfo = modelInfo; } public CloudConfiguration getCloudConfiguration() { return cloudConfiguration; } public void setCloudConfiguration(CloudConfiguration cloudConfiguration) { this.cloudConfiguration = cloudConfiguration; } public String getInstanceName() { return instanceName; } public void setInstanceName(String instanceName) { this.instanceName = instanceName; } public List> getInstanceParams() { return instanceParams; } public void setInstanceParams(List> instanceParams) { this.instanceParams = instanceParams; } public Resources getResources() { return resources; } public void setResources(Resources resources) { this.resources = resources; } @Override public String toString() { return "Service [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration + ", instanceName=" + instanceName + ", instanceParams=" + instanceParams + ", resources=" + resources + "]"; } }