2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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=========================================================
20 package org.openecomp.mso.db.catalog.beans;
22 import java.io.Serializable;
23 import java.sql.Timestamp;
25 public class ServiceToAllottedResources implements Serializable {
27 private String serviceModelUuid;
28 private String arModelCustomizationUuid;
29 private Timestamp created;
31 public static final long serialVersionUID = -1322322139926390329L;
33 public ServiceToAllottedResources() {
37 public String getServiceModelUuid() {
38 return this.serviceModelUuid;
40 public void setServiceModelUuid(String serviceModelUuid) {
41 this.serviceModelUuid = serviceModelUuid;
43 public String getArModelCustomizationUuid() {
44 return this.arModelCustomizationUuid;
46 public void setArModelCustomizationUuid(String arModelCustomizationUuid) {
47 this.arModelCustomizationUuid = arModelCustomizationUuid;
49 public Timestamp getCreated() {
52 public void setCreated(Timestamp created) {
53 this.created = created;
57 public boolean equals(Object o) {
58 if (!(o instanceof ServiceToAllottedResources)) {
64 ServiceToAllottedResources star = (ServiceToAllottedResources) o;
65 if (star.getArModelCustomizationUuid().equals(this.getArModelCustomizationUuid())
66 && star.getServiceModelUuid().equals(this.getServiceModelUuid())) {
73 public int hashCode() {
75 int code = this.arModelCustomizationUuid == null ? 0 : this.arModelCustomizationUuid.hashCode();
76 code += this.serviceModelUuid == null ? 0 : this.serviceModelUuid.hashCode();
82 public String toString() {
83 StringBuilder sb = new StringBuilder();
84 sb.append("serviceModelUuid=");
85 sb.append(this.serviceModelUuid);
86 sb.append("arModelCustomizationUuid=");
87 sb.append(this.arModelCustomizationUuid);