Add serviceOrder rest services
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / TargetServiceSchema.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.JsonProperty;
26 import io.swagger.annotations.ApiModel;
27 import io.swagger.annotations.ApiModelProperty;
28 import javax.validation.constraints.NotNull;
29 import java.util.Objects;
30
31 /**
32  *
33  */
34 @ApiModel(description = "")
35 @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaJerseyServerCodegen",
36         date = "2018-02-19T14:00:30.767Z")
37 public class TargetServiceSchema {
38     @JsonProperty("@type")
39     private String type = null;
40
41     @JsonProperty("@schemaLocation")
42     private String schemaLocation = null;
43
44     public TargetServiceSchema type(String type) {
45         this.type = type;
46         return this;
47     }
48
49     /**
50      * @return type
51      **/
52     @JsonProperty("@type")
53     @ApiModelProperty(required = true, value = "")
54     @NotNull
55     public String getType() {
56         return type;
57     }
58
59     public void setType(String type) {
60         this.type = type;
61     }
62
63     public TargetServiceSchema schemaLocation(String schemaLocation) {
64         this.schemaLocation = schemaLocation;
65         return this;
66     }
67
68     /**
69      * @return schemaLocation
70      **/
71     @JsonProperty("@schemaLocation")
72     @ApiModelProperty(required = true, value = "")
73     @NotNull
74     public String getSchemaLocation() {
75         return schemaLocation;
76     }
77
78     public void setSchemaLocation(String schemaLocation) {
79         this.schemaLocation = schemaLocation;
80     }
81
82
83     @Override
84     public boolean equals(java.lang.Object o) {
85         if (this == o) {
86             return true;
87         }
88         if (o == null || getClass() != o.getClass()) {
89             return false;
90         }
91         TargetServiceSchema targetServiceSchema = (TargetServiceSchema) o;
92         return Objects.equals(this.type, targetServiceSchema.type)
93                 && Objects.equals(this.schemaLocation, targetServiceSchema.schemaLocation);
94     }
95
96     @Override
97     public int hashCode() {
98         return Objects.hash(type, schemaLocation);
99     }
100
101
102     @Override
103     public String toString() {
104         StringBuilder sb = new StringBuilder();
105         sb.append("class TargetServiceSchema {\n");
106
107         sb.append("    type: ").append(toIndentedString(type)).append("\n");
108         sb.append("    schemaLocation: ").append(toIndentedString(schemaLocation)).append("\n");
109         sb.append("}");
110         return sb.toString();
111     }
112
113     /**
114      * Convert the given object to string with each line indented by 4 spaces (except the first
115      * line).
116      */
117     private String toIndentedString(java.lang.Object o) {
118         if (o == null) {
119             return "null";
120         }
121         return o.toString().replace("\n", "\n    ");
122     }
123 }
124