/* Copyright 2021 Telstra Open Source
 *
 *   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.
 */

package org.openkilda.northbound.dto.v2.switches;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@Builder
public class LagPortRequest {
    private Set<Integer> portNumbers;
    @Default
    private Boolean lacpReply = true;
}

@@ -696,39 +696,30 @@
 son.
-databind.PropertyNamingStrategy
+annotation.JsonCreator
 ;%0Aim
@@ -749,17 +749,8 @@
 son.
-databind.
 anno
@@ -764,71 +764,16 @@
 Json
-Naming;%0Aimport lombok.AllArgsConstructor;%0Aimport lombok.Builder
+Property
 ;%0Aim
@@ -795,16 +795,8 @@
 lder
-.Default
 ;%0Aim
@@ -899,110 +899,216 @@
 tor%0A
-@AllArgsConstructor%0A@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)%0A@Builder%0A
+public class LagPortRequest %7B%0A    @JsonProperty(%22port_numbers%22)%0A    private Set%3CInteger%3E portNumbers;%0A%0A    @JsonProperty(%22lacp_reply%22)%0A    private Boolean lacpReply;%0A%0A    @Builder%0A    @JsonCreator%0A    
 public 
-class 
 LagP
@@ -1121,98 +1121,336 @@
 uest
- %7B%0A
+(%0A 
     
-private Set%3CInteger%3E portNumbers;%0A    @Default%0A    private Boolean lacpReply = true;
+       @JsonProperty(%22port_numbers%22) Set%3CInteger%3E portNumbers,%0A            @JsonProperty(%22lacp_reply%22) Boolean lacpReply) %7B%0A        this.portNumbers = portNumbers;%0A        setLacpReply(lacpReply);%0A    %7D%0A%0A    public void setLacpReply(Boolean lacpReply) %7B%0A        this.lacpReply = lacpReply == null ? true : lacpReply;%0A    %7D
 %0A%7D%0A

Set lacp_reply to true if value is not specified