AT&T 1712 and 1802 release code
[so.git] / aria / aria-rest-java-client / src / main / java / com / gigaspaces / aria / rest / client / NodeTemplateImpl.java
1 /*
2  * ============LICENSE_START===================================================
3  * Copyright (c) 2017 Cloudify.co.  All rights reserved.
4  * ===================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6  * use this file except in compliance with the License. You may obtain a copy
7  * of the License at
8  *
9  *       http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14  * License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END====================================================
17 */
18 package com.gigaspaces.aria.rest.client;
19
20 import com.fasterxml.jackson.annotation.JsonProperty;
21
22 /**
23  * Created by DeWayne on 7/18/2017.
24  */
25 public class NodeTemplateImpl implements NodeTemplate {
26     private int id;
27     private String name;
28     private String description="";
29     @JsonProperty("service_template_id")
30     private int service_template_id;
31     @JsonProperty("type_name")
32     private String type_name="";
33
34     public NodeTemplateImpl(){}
35
36     public NodeTemplateImpl(int id, String name, String description, int service_template_id, String type_name){
37         this.id=id;
38         this.description=description;
39         this.service_template_id=service_template_id;
40         this.type_name=type_name;
41     }
42
43     public int getId() {
44         return id;
45     }
46
47     public String getDescription() {
48         return description;
49     }
50
51     public int getServiceTemplateId() {
52         return service_template_id;
53     }
54
55     public String getTypeName() {
56         return type_name;
57     }
58
59     public String getName() {
60         return name;
61     }
62
63     public void setName(String name) {
64         this.name = name;
65     }
66
67
68 }