Merge "Reorder modifiers"
[so.git] / mso-api-handlers / mso-api-handler-common / src / main / java / org / openecomp / mso / apihandler / common / RequestClientParamater.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.openecomp.mso.apihandler.common;
23
24 public class RequestClientParamater {
25
26     private String requestId;
27     private boolean isBaseVfModule;
28     private int recipeTimeout;
29     private String requestAction;
30     private String serviceInstanceId;
31     private String correlationId;
32     private String vnfId;
33     private String vfModuleId;
34     private String volumeGroupId;
35     private String networkId;
36     private String configurationId;
37     private String serviceType;
38     private String vnfType;
39     private String vfModuleType;
40     private String networkType;
41     private String requestDetails;
42     private String recipeParamXsd;
43
44     private RequestClientParamater(Builder builder) {
45         requestId = builder.requestId;
46         isBaseVfModule = builder.isBaseVfModule;
47         recipeTimeout = builder.recipeTimeout;
48         requestAction = builder.requestAction;
49         serviceInstanceId = builder.serviceInstanceId;
50         correlationId = builder.correlationId;
51         vnfId = builder.vnfId;
52         vfModuleId = builder.vfModuleId;
53         volumeGroupId = builder.volumeGroupId;
54         networkId = builder.networkId;
55         configurationId = builder.configurationId;
56         serviceType = builder.serviceType;
57         vnfType = builder.vnfType;
58         vfModuleType = builder.vfModuleType;
59         networkType = builder.networkType;
60         requestDetails = builder.requestDetails;
61         recipeParamXsd = builder.recipeParamXsd;
62     }
63
64     public String getRequestId() {
65         return requestId;
66     }
67
68     public boolean isBaseVfModule() {
69         return isBaseVfModule;
70     }
71
72     public int getRecipeTimeout() {
73         return recipeTimeout;
74     }
75
76     public String getRequestAction() {
77         return requestAction;
78     }
79
80     public String getServiceInstanceId() {
81         return serviceInstanceId;
82     }
83
84     public String getCorrelationId() {
85         return correlationId;
86     }
87
88     public String getVnfId() {
89         return vnfId;
90     }
91
92     public String getVfModuleId() {
93         return vfModuleId;
94     }
95
96     public String getVolumeGroupId() {
97         return volumeGroupId;
98     }
99
100     public String getNetworkId() {
101         return networkId;
102     }
103
104     public String getConfigurationId() {
105         return configurationId;
106     }
107
108     public String getServiceType() {
109         return serviceType;
110     }
111
112     public String getVnfType() {
113         return vnfType;
114     }
115
116     public String getVfModuleType() {
117         return vfModuleType;
118     }
119
120     public String getNetworkType() {
121         return networkType;
122     }
123
124     public String getRequestDetails() {
125         return requestDetails;
126     }
127
128     public String getRecipeParamXsd() {
129         return recipeParamXsd;
130     }
131
132     public static class Builder {
133         private String requestId;
134         private boolean isBaseVfModule;
135         private int recipeTimeout;
136         private String requestAction;
137         private String serviceInstanceId;
138         private String correlationId;
139         private String vnfId;
140         private String vfModuleId;
141         private String volumeGroupId;
142         private String networkId;
143         private String configurationId;
144         private String serviceType;
145         private String vnfType;
146         private String vfModuleType;
147         private String networkType;
148         private String requestDetails;
149         private String recipeParamXsd;
150
151         public Builder setRequestId(String requestId) {
152             this.requestId = requestId;
153             return this;
154         }
155
156         public Builder setBaseVfModule(boolean baseVfModule) {
157             isBaseVfModule = baseVfModule;
158             return this;
159         }
160
161         public Builder setRecipeTimeout(int recipeTimeout) {
162             this.recipeTimeout = recipeTimeout;
163             return this;
164         }
165
166         public Builder setRequestAction(String requestAction) {
167             this.requestAction = requestAction;
168             return this;
169         }
170
171         public Builder setServiceInstanceId(String serviceInstanceId) {
172             this.serviceInstanceId = serviceInstanceId;
173             return this;
174         }
175
176         public Builder setCorrelationId(String correlationId) {
177             this.correlationId = correlationId;
178             return this;
179         }
180
181         public Builder setVnfId(String vnfId) {
182             this.vnfId = vnfId;
183             return this;
184         }
185
186         public Builder setVfModuleId(String vfModuleId) {
187             this.vfModuleId = vfModuleId;
188             return this;
189         }
190
191         public Builder setVolumeGroupId(String volumeGroupId) {
192             this.volumeGroupId = volumeGroupId;
193             return this;
194         }
195
196         public Builder setNetworkId(String networkId) {
197             this.networkId = networkId;
198             return this;
199         }
200
201         public Builder setConfigurationId(String configurationId) {
202             this.configurationId = configurationId;
203             return this;
204         }
205
206         public Builder setServiceType(String serviceType) {
207             this.serviceType = serviceType;
208             return this;
209         }
210
211         public Builder setVnfType(String vnfType) {
212             this.vnfType = vnfType;
213             return this;
214         }
215
216         public Builder setVfModuleType(String vfModuleType) {
217             this.vfModuleType = vfModuleType;
218             return this;
219         }
220
221         public Builder setNetworkType(String networkType) {
222             this.networkType = networkType;
223             return this;
224         }
225
226         public Builder setRequestDetails(String requestDetails) {
227             this.requestDetails = requestDetails;
228             return this;
229         }
230
231         public Builder setRecipeParamXsd(String recipeParamXsd) {
232             this.recipeParamXsd = recipeParamXsd;
233             return this;
234         }
235
236         public RequestClientParamater build(){
237             return new RequestClientParamater(this);
238         }
239     }
240
241
242 }