Clean up license text in appc-sequence-generator
[appc.git] / appc-sequence-generator / appc-sequence-generator-bundle / src / main / java / org / onap / appc / seqgen / objects / RequestInfoBuilder.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.onap.appc.seqgen.objects;
26
27 public class RequestInfoBuilder {
28
29     private String action;
30
31     private String actionLevel;
32
33     private ActionIdentifier actionIdentifier;
34
35     private String payload;
36
37     public RequestInfoBuilder actionIdentifier(){
38         this.actionIdentifier = new ActionIdentifier();
39         return this;
40     }
41
42     public RequestInfoBuilder vnfId(String vnfId){
43         this.actionIdentifier.setVnfId(vnfId);
44         return this;
45     }
46
47     public RequestInfoBuilder vnfcName(String vnfcName){
48         this.actionIdentifier.setVnfcName(vnfcName);
49         return this;
50     }
51
52     public RequestInfoBuilder vServerId(String vServerId){
53         this.actionIdentifier.setvServerId(vServerId);
54         return this;
55     }
56
57     public RequestInfoBuilder action(String action){
58         this.action = action;
59         return this;
60     }
61
62     public RequestInfoBuilder actionLevel(String actionLevel){
63         this.actionLevel = actionLevel;
64         return this;
65     }
66
67     public RequestInfoBuilder payload(String payload){
68         this.payload = payload;
69         return this;
70     }
71
72     public RequestInfo build(){
73         RequestInfo requestInfo = new RequestInfo();
74         requestInfo.setAction(this.action);
75         requestInfo.setActionIdentifier(this.actionIdentifier);
76         requestInfo.setActionLevel(this.actionLevel);
77         requestInfo.setPayload(this.payload);
78         return requestInfo;
79     }
80 }