Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / Note.java
1 /*
2  * API ServiceOrder serviceOrder API designed for ONAP Beijing Release. This API is build from TMF
3  * open API16.5 + applied TMF guideline 3.0
4  *
5  * OpenAPI spec version: 0.1.1_inProgress
6  * 
7  *
8  * NOTE: This class is auto generated by the swagger code generator program.
9  * https://github.com/swagger-api/swagger-codegen.git Do not edit the class manually.
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
12  * in compliance with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software distributed under the License
17  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
18  * or implied. See the License for the specific language governing permissions and limitations under
19  * the License.
20  */
21
22
23 package org.onap.nbi.apis.serviceorder.model;
24
25 import com.fasterxml.jackson.annotation.JsonFormat;
26 import com.fasterxml.jackson.annotation.JsonProperty;
27 import io.swagger.annotations.ApiModel;
28 import io.swagger.annotations.ApiModelProperty;
29 import java.util.Date;
30 import java.util.Objects;
31
32 /**
33  * Extra-information about the order (e.g. useful to add extra delivery information that could be
34  * useful for a human process
35  */
36 @ApiModel(
37         description = "Extra-information about the order (e.g. useful to add extra delivery information that could be useful for a human process")
38 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
39         date = "2018-02-19T14:00:30.767Z")
40 public class Note {
41     @JsonProperty("date")
42     private Date date = null;
43
44     @JsonProperty("author")
45     private String author = null;
46
47     @JsonProperty("text")
48     private String text = null;
49
50     public Note date(Date date) {
51         this.date = date;
52         return this;
53     }
54
55     /**
56      * Date of the note
57      *
58      * @return date
59      **/
60     @JsonProperty("date")
61     @ApiModelProperty(value = "Date of the note")
62     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
63     public Date getDate() {
64         return date;
65     }
66
67     public void setDate(Date date) {
68         this.date = date;
69     }
70
71     public Note author(String author) {
72         this.author = author;
73         return this;
74     }
75
76     /**
77      * Author of the note
78      *
79      * @return author
80      **/
81     @JsonProperty("author")
82     @ApiModelProperty(value = "Author of the note")
83     public String getAuthor() {
84         return author;
85     }
86
87     public void setAuthor(String author) {
88         this.author = author;
89     }
90
91     public Note text(String text) {
92         this.text = text;
93         return this;
94     }
95
96     /**
97      * Text of the note
98      *
99      * @return text
100      **/
101     @JsonProperty("text")
102     @ApiModelProperty(value = "Text of the note")
103     public String getText() {
104         return text;
105     }
106
107     public void setText(String text) {
108         this.text = text;
109     }
110
111
112     @Override
113     public boolean equals(java.lang.Object o) {
114         if (this == o) {
115             return true;
116         }
117         if (o == null || getClass() != o.getClass()) {
118             return false;
119         }
120         Note note = (Note) o;
121         return Objects.equals(this.date, note.date) && Objects.equals(this.author, note.author)
122                 && Objects.equals(this.text, note.text);
123     }
124
125     @Override
126     public int hashCode() {
127         return Objects.hash(date, author, text);
128     }
129
130
131     @Override
132     public String toString() {
133         StringBuilder sb = new StringBuilder();
134         sb.append("class Note {\n");
135
136         sb.append("    date: ").append(toIndentedString(date)).append("\n");
137         sb.append("    author: ").append(toIndentedString(author)).append("\n");
138         sb.append("    text: ").append(toIndentedString(text)).append("\n");
139         sb.append("}");
140         return sb.toString();
141     }
142
143     /**
144      * Convert the given object to string with each line indented by 4 spaces (except the first
145      * line).
146      */
147     private String toIndentedString(java.lang.Object o) {
148         if (o == null) {
149             return "null";
150         }
151         return o.toString().replace("\n", "\n    ");
152     }
153 }
154