3 * Copyright (c) 2017 Orange. All rights reserved.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
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
21 * OpenAPI spec version: 0.1.1_inProgress
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.
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
30 * http://www.apache.org/licenses/LICENSE-2.0
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
39 package org.onap.nbi.apis.serviceorder.model;
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;
49 * Extra-information about the order (e.g. useful to add extra delivery information that could be
50 * useful for a human process
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")
58 private Date date = null;
60 @JsonProperty("author")
61 private String author = null;
64 private String text = null;
66 public Note date(Date 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() {
83 public void setDate(Date date) {
87 public Note author(String author) {
97 @JsonProperty("author")
98 @ApiModelProperty(value = "Author of the note")
99 public String getAuthor() {
103 public void setAuthor(String author) {
104 this.author = author;
107 public Note text(String text) {
117 @JsonProperty("text")
118 @ApiModelProperty(value = "Text of the note")
119 public String getText() {
123 public void setText(String text) {
129 public boolean equals(java.lang.Object o) {
133 if (o == null || getClass() != o.getClass()) {
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);
142 public int hashCode() {
143 return Objects.hash(date, author, text);
148 public String toString() {
149 StringBuilder sb = new StringBuilder();
150 sb.append("class Note {\n");
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");
156 return sb.toString();
160 * Convert the given object to string with each line indented by 4 spaces (except the first
163 private String toIndentedString(java.lang.Object o) {
167 return o.toString().replace("\n", "\n ");