push addional code
[sdc.git] / openecomp-be / lib / openecomp-heat-lib / src / main / java / org / openecomp / sdc / heat / datatypes / model / Resource.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
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
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.openecomp.sdc.heat.datatypes.model;
22
23 import java.util.Map;
24
25 public class Resource {
26   String type;
27   Map<String, Object> properties;
28   Object metadata;
29   Object depends_on;
30   Object update_policy;
31   Object deletion_policy;
32
33   public String getType() {
34     return type;
35   }
36
37   public void setType(String type) {
38     this.type = type;
39   }
40
41   public Map<String, Object> getProperties() {
42     return properties;
43   }
44
45   public void setProperties(Map<String, Object> properties) {
46     this.properties = properties;
47   }
48
49   public Object getMetadata() {
50     return metadata;
51   }
52
53   public void setMetadata(Object metadata) {
54     this.metadata = metadata;
55   }
56
57   public Object getDepends_on() {
58     return depends_on;
59   }
60
61   public void setDepends_on(Object dependsOn) {
62     this.depends_on = dependsOn;
63   }
64
65   public Object getUpdate_policy() {
66     return update_policy;
67   }
68
69   public void setUpdate_policy(Object updatePolicy) {
70     this.update_policy = updatePolicy;
71   }
72
73   public Object getDeletion_policy() {
74     return deletion_policy;
75   }
76
77   public void setDeletion_policy(Object deletionPolicy) {
78     this.deletion_policy = deletionPolicy;
79   }
80
81   @Override
82   public String toString() {
83     return "Resource{"
84         + "type='" + type + '\''
85         + ", properties=" + properties
86         + ", metadata=" + metadata
87         + ", depends_on=" + depends_on
88         + ", update_policy='" + update_policy + '\''
89         + ", deletion_policy='" + deletion_policy + '\''
90         + '}';
91   }
92 }