aboutsummaryrefslogtreecommitdiffstats
path: root/mso-api-handlers/mso-api-handler-common/src/main/java/org/onap/so/apihandler/common/RequestClientParameter.java
blob: b75411b9a89f2832f65c6dbcb21d5e7e93c255c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
/*-
 * ============LICENSE_START=======================================================
 * ONAP - SO
 * ================================================================================
 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
 * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
 * ================================================================================
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */

package org.onap.so.apihandler.common;

public class RequestClientParameter {

    private String requestId;
    private boolean isBaseVfModule;
    private int recipeTimeout;
    private String requestAction;
    private String serviceInstanceId;
    private String pnfCorrelationId;
    private String vnfId;
    private String vfModuleId;
    private String volumeGroupId;
    private String networkId;
    private String configurationId;
    private String serviceType;
    private String vnfType;
    private String vfModuleType;
    private String networkType;
    private String requestDetails;
    private String apiVersion;
    private boolean aLaCarte;
    private String recipeParamXsd;
    private String requestUri;
    private String instanceGroupId;
    private boolean generateIdsOnly;
    private String operationType;
    private String migrationId;
    private String circuitId;

    private RequestClientParameter(Builder builder) {
        requestId = builder.requestId;
        isBaseVfModule = builder.isBaseVfModule;
        recipeTimeout = builder.recipeTimeout;
        requestAction = builder.requestAction;
        serviceInstanceId = builder.serviceInstanceId;
        pnfCorrelationId = builder.pnfCorrelationId;
        vnfId = builder.vnfId;
        vfModuleId = builder.vfModuleId;
        volumeGroupId = builder.volumeGroupId;
        networkId = builder.networkId;
        configurationId = builder.configurationId;
        serviceType = builder.serviceType;
        vnfType = builder.vnfType;
        vfModuleType = builder.vfModuleType;
        networkType = builder.networkType;
        requestDetails = builder.requestDetails;
        recipeParamXsd = builder.recipeParamXsd;
        apiVersion = builder.apiVersion;
        aLaCarte = builder.aLaCarte;
        requestUri = builder.requestUri;
        instanceGroupId = builder.instanceGroupId;
        generateIdsOnly = builder.generateIdsOnly;
        operationType = builder.operationType;
        migrationId = builder.migrationId;
        circuitId = builder.circuitId;
    }

    public String getOperationType() {
        return operationType;
    }

    public String getRequestId() {
        return requestId;
    }

    public boolean isBaseVfModule() {
        return isBaseVfModule;
    }

    public int getRecipeTimeout() {
        return recipeTimeout;
    }

    public String getRequestAction() {
        return requestAction;
    }

    public String getServiceInstanceId() {
        return serviceInstanceId;
    }

    public String getPnfCorrelationId() {
        return pnfCorrelationId;
    }

    public String getVnfId() {
        return vnfId;
    }

    public String getVfModuleId() {
        return vfModuleId;
    }

    public String getVolumeGroupId() {
        return volumeGroupId;
    }

    public String getNetworkId() {
        return networkId;
    }

    public String getConfigurationId() {
        return configurationId;
    }

    public String getServiceType() {
        return serviceType;
    }

    public String getVnfType() {
        return vnfType;
    }

    public String getVfModuleType() {
        return vfModuleType;
    }

    public String getNetworkType() {
        return networkType;
    }

    public String getRequestDetails() {
        return requestDetails;
    }

    public String getRecipeParamXsd() {
        return recipeParamXsd;
    }

    public String getApiVersion() {
        return apiVersion;
    }

    public boolean isaLaCarte() {
        return aLaCarte;
    }

    public String getRequestUri() {
        return requestUri;
    }

    public String getInstanceGroupId() {
        return instanceGroupId;
    }

    public boolean isGenerateIdsOnly() {
        return generateIdsOnly;
    }

    public void setGenerateIdsOnly(boolean generateIdsOnly) {
        this.generateIdsOnly = generateIdsOnly;
    }

    public String getMigrationId() {
        return migrationId;
    }

    public void setMigrationId(String migrationId) {
        this.migrationId = migrationId;
    }

    public String getCircuitId() {
        return circuitId;
    }

    public void setCircuitId(String circuitId) {
        this.circuitId = circuitId;
    }

    public static class Builder {
        private String requestId;
        private boolean isBaseVfModule = false;
        private int recipeTimeout;
        private String requestAction;
        private String serviceInstanceId;
        private String pnfCorrelationId;
        private String vnfId;
        private String vfModuleId;
        private String volumeGroupId;
        private String networkId;
        private String configurationId;
        private String serviceType;
        private String vnfType;
        private String vfModuleType;
        private String networkType;
        private String requestDetails;
        private String apiVersion;
        private boolean aLaCarte = false;
        private String recipeParamXsd;
        private String requestUri;
        private String instanceGroupId;
        private boolean generateIdsOnly;
        private String operationType;
        private String migrationId;
        private String circuitId;

        public Builder setCircuitId(String circuitId) {
            this.circuitId = circuitId;
            return this;
        }

        public Builder setMigrationId(String migrationId) {
            this.migrationId = migrationId;
            return this;
        }

        public Builder setOperationType(String operationType) {
            this.operationType = operationType;
            return this;
        }

        public Builder setRequestId(String requestId) {
            this.requestId = requestId;
            return this;
        }

        public Builder setBaseVfModule(boolean baseVfModule) {
            isBaseVfModule = baseVfModule;
            return this;
        }

        public Builder setRecipeTimeout(int recipeTimeout) {
            this.recipeTimeout = recipeTimeout;
            return this;
        }

        public Builder setRequestAction(String requestAction) {
            this.requestAction = requestAction;
            return this;
        }

        public Builder setServiceInstanceId(String serviceInstanceId) {
            this.serviceInstanceId = serviceInstanceId;
            return this;
        }

        public Builder setPnfCorrelationId(String pnfCorrelationId) {
            this.pnfCorrelationId = pnfCorrelationId;
            return this;
        }

        public Builder setVnfId(String vnfId) {
            this.vnfId = vnfId;
            return this;
        }

        public Builder setVfModuleId(String vfModuleId) {
            this.vfModuleId = vfModuleId;
            return this;
        }

        public Builder setVolumeGroupId(String volumeGroupId) {
            this.volumeGroupId = volumeGroupId;
            return this;
        }

        public Builder setNetworkId(String networkId) {
            this.networkId = networkId;
            return this;
        }

        public Builder setConfigurationId(String configurationId) {
            this.configurationId = configurationId;
            return this;
        }

        public Builder setServiceType(String serviceType) {
            this.serviceType = serviceType;
            return this;
        }

        public Builder setVnfType(String vnfType) {
            this.vnfType = vnfType;
            return this;
        }

        public Builder setVfModuleType(String vfModuleType) {
            this.vfModuleType = vfModuleType;
            return this;
        }

        public Builder setNetworkType(String networkType) {
            this.networkType = networkType;
            return this;
        }

        public Builder setRequestDetails(String requestDetails) {
            this.requestDetails = requestDetails;
            return this;
        }

        public Builder setRecipeParamXsd(String recipeParamXsd) {
            this.recipeParamXsd = recipeParamXsd;
            return this;
        }

        public Builder setApiVersion(String apiVersion) {
            this.apiVersion = apiVersion;
            return this;
        }

        public Builder setALaCarte(boolean aLaCarte) {
            this.aLaCarte = aLaCarte;
            return this;
        }

        public Builder setRequestUri(String requestUri) {
            this.requestUri = requestUri;
            return this;
        }

        public Builder setInstanceGroupId(String instanceGroupId) {
            this.instanceGroupId = instanceGroupId;
            return this;
        }

        public Builder setGenerateIds(boolean generateIdsOnly) {
            this.generateIdsOnly = generateIdsOnly;
            return this;
        }

        public RequestClientParameter build() {
            return new RequestClientParameter(this);
        }

    }


}