2b0665813d5585e2ff8cbf2d6f8190656f9e34a0
[integration.git] /
1 /*
2  * ============LICENSE_START=======================================================
3  * PNF-REGISTRATION-HANDLER
4  * ================================================================================
5  * Copyright (C) 2018 Nokia. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.pnfsimulator.rest.model;
22
23 import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
24 import com.google.gson.JsonObject;
25 import javax.validation.constraints.NotNull;
26 import lombok.AllArgsConstructor;
27 import lombok.EqualsAndHashCode;
28 import lombok.Getter;
29 import lombok.NoArgsConstructor;
30 import lombok.ToString;
31 import org.onap.pnfsimulator.rest.util.JsonObjectDeserializer;
32 import org.springframework.lang.Nullable;
33
34 @Getter
35 @ToString
36 @EqualsAndHashCode
37 @AllArgsConstructor
38 @NoArgsConstructor
39 public class SimulatorRequest {
40
41     @NotNull
42     private SimulatorParams simulatorParams;
43
44     @NotNull
45     private String templateName;
46
47     @Nullable
48     @JsonDeserialize(using = JsonObjectDeserializer.class)
49     private JsonObject patch;
50
51 }