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=========================================================
21 package org.openecomp.sdc.heat.datatypes.model;
25 public class Resource {
27 Map<String, Object> properties;
31 Object deletion_policy;
33 public String getType() {
37 public void setType(String type) {
41 public Map<String, Object> getProperties() {
45 public void setProperties(Map<String, Object> properties) {
46 this.properties = properties;
49 public Object getMetadata() {
53 public void setMetadata(Object metadata) {
54 this.metadata = metadata;
57 public Object getDepends_on() {
61 public void setDepends_on(Object depends_on) {
62 this.depends_on = depends_on;
65 public Object getUpdate_policy() {
69 public void setUpdate_policy(Object update_policy) {
70 this.update_policy = update_policy;
73 public Object getDeletion_policy() {
74 return deletion_policy;
77 public void setDeletion_policy(Object deletion_policy) {
78 this.deletion_policy = deletion_policy;
82 public String toString() {
84 + "type='" + type + '\''
85 + ", properties=" + properties
86 + ", metadata=" + metadata
87 + ", depends_on=" + depends_on
88 + ", update_policy='" + update_policy + '\''
89 + ", deletion_policy='" + deletion_policy + '\''