d9c205a0934d3e84ad97ae6f8c800c83a6330a50
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / serviceorder / model / consumer / Request.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 package org.onap.nbi.apis.serviceorder.model.consumer;
18
19 import java.util.Objects;
20
21 public class Request {
22
23     private RequestStatus requestStatus;
24
25     public Request() {}
26
27     public Request(RequestStatus requestStatus) {
28         this.requestStatus = requestStatus;
29     }
30
31     public RequestStatus getRequestStatus() {
32         return requestStatus;
33     }
34
35     public void setRequestStatus(RequestStatus requestStatus) {
36         this.requestStatus = requestStatus;
37     }
38
39     @Override
40     public boolean equals(Object o) {
41         if (this == o)
42             return true;
43         if (o == null || getClass() != o.getClass())
44             return false;
45         Request request = (Request) o;
46         return Objects.equals(requestStatus, request.requestStatus);
47     }
48
49     @Override
50     public int hashCode() {
51         return Objects.hash(requestStatus);
52     }
53
54     @Override
55     public String toString() {
56         return "Request{" + "requestStatus=" + requestStatus + '}';
57     }
58 }