2 * ============LICENSE_START=======================================================
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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.appc.seqgen.objects;
27 public class RequestInfoBuilder {
29 private String action;
31 private String actionLevel;
33 private ActionIdentifier actionIdentifier;
35 private String payload;
37 public RequestInfoBuilder actionIdentifier(){
38 this.actionIdentifier = new ActionIdentifier();
42 public RequestInfoBuilder vnfId(String vnfId){
43 this.actionIdentifier.setVnfId(vnfId);
47 public RequestInfoBuilder vnfcName(String vnfcName){
48 this.actionIdentifier.setVnfcName(vnfcName);
52 public RequestInfoBuilder vServerId(String vServerId){
53 this.actionIdentifier.setvServerId(vServerId);
57 public RequestInfoBuilder action(String action){
62 public RequestInfoBuilder actionLevel(String actionLevel){
63 this.actionLevel = actionLevel;
67 public RequestInfoBuilder payload(String payload){
68 this.payload = payload;
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);