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