faa61a8d07a41e971c76cd8a5ae5f44d3f0b0b2f
[appc.git] / appc-dispatcher / appc-dispatcher-common / domain-model-lib / src / main / java / org / openecomp / appc / domainmodel / lcm / CommonHeader.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.openecomp.appc.domainmodel.lcm;
26
27 import java.time.Instant;
28
29
30 public class CommonHeader {
31
32     private Flags flags;
33     private Instant timestamp;
34     private String apiVer;
35     private String originatorId;
36     private String requestId;
37     private String subRequestId;
38
39     public Flags getFlags() {
40         return flags;
41     }
42
43     public void setFlags(Flags flags) {
44         this.flags = flags;
45     }
46
47     public Instant getTimeStamp() {
48         return timestamp;
49     }
50
51     public void setTimestamp(Instant timestamp) {
52         this.timestamp = timestamp;
53     }
54
55     public String getApiVer() {
56         return apiVer;
57     }
58
59     public void setApiVer(String apiVer) {
60         this.apiVer = apiVer;
61     }
62
63     public String getOriginatorId() {
64         return originatorId;
65     }
66
67     public void setOriginatorId(String originatorId) {
68         this.originatorId = originatorId;
69     }
70
71     public String getRequestId() {
72         return requestId;
73     }
74
75     public void setRequestId(String requestId) {
76         this.requestId = requestId;
77     }
78
79     public String getSubRequestId() {
80         return subRequestId;
81     }
82
83     public void setSubRequestId(String subRequestId) {
84         this.subRequestId = subRequestId;
85     }
86
87     @Override
88     public String toString() {
89         return "CommonHeader{" +
90                 "flags=" + flags +
91                 ", timestamp=" + timestamp +
92                 ", apiVer='" + apiVer + '\'' +
93                 ", originatorId='" + originatorId + '\'' +
94                 ", requestId='" + requestId + '\'' +
95                 ", subRequestId='" + subRequestId + '\'' +
96                 '}';
97     }
98 }