Open Kilda Java Documentation
FeatureToggleRequest.java
Go to the documentation of this file.
1 /* Copyright 2017 Telstra Open Source
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package org.openkilda.messaging.command.system;
17 
19 
20 import com.fasterxml.jackson.annotation.JsonInclude;
21 import com.fasterxml.jackson.annotation.JsonInclude.Include;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23 
24 import lombok.Builder;
25 import lombok.Value;
26 
27 @Value
28 @Builder
29 @JsonInclude(Include.NON_NULL)
30 public class FeatureToggleRequest extends CommandData {
31 
32  @JsonProperty(value = "sync_rules")
33  private Boolean syncRulesEnabled;
34 
35  @JsonProperty(value = "reflow_on_switch_activation")
36  private Boolean reflowOnSwitchActivationEnabled;
37 
38  @JsonProperty("create_flow")
39  private Boolean createFlowEnabled;
40 
41  @JsonProperty("update_flow")
42  private Boolean updateFlowEnabled;
43 
44  @JsonProperty("delete_flow")
45  private Boolean deleteFlowEnabled;
46 
47  @JsonProperty("push_flow")
48  private Boolean pushFlowEnabled;
49 
50  @JsonProperty("unpush_flow")
51  private Boolean unpushFlowEnabled;
52 
53  @JsonProperty(value = "child_correlation_id")
54  private String childCorrelationId;
55 
56  public FeatureToggleRequest(@JsonProperty(value = "sync_rules") Boolean syncRulesEnabled,
57  @JsonProperty(value = "reflow_on_switch_activation") Boolean reflowOnSwitchActivationEnabled,
58  @JsonProperty("create_flow") Boolean createFlowEnabled,
59  @JsonProperty("update_flow") Boolean updateFlowEnabled,
60  @JsonProperty("delete_flow") Boolean deleteFlowEnabled,
61  @JsonProperty("push_flow") Boolean pushFlowEnabled,
62  @JsonProperty("unpush_flow") Boolean unpushFlowEnabled,
63  @JsonProperty(value = "child_correlation_id") String childCorrelationId) {
64  this.syncRulesEnabled = syncRulesEnabled;
65  this.reflowOnSwitchActivationEnabled = reflowOnSwitchActivationEnabled;
66  this.createFlowEnabled = createFlowEnabled;
67  this.updateFlowEnabled = updateFlowEnabled;
68  this.deleteFlowEnabled = deleteFlowEnabled;
69  this.pushFlowEnabled = pushFlowEnabled;
70  this.unpushFlowEnabled = unpushFlowEnabled;
71  this.childCorrelationId = childCorrelationId;
72  }
73 }
value
Definition: nodes.py:62
FeatureToggleRequest(@JsonProperty(value="sync_rules") Boolean syncRulesEnabled, @JsonProperty(value="reflow_on_switch_activation") Boolean reflowOnSwitchActivationEnabled, @JsonProperty("create_flow") Boolean createFlowEnabled, @JsonProperty("update_flow") Boolean updateFlowEnabled, @JsonProperty("delete_flow") Boolean deleteFlowEnabled, @JsonProperty("push_flow") Boolean pushFlowEnabled, @JsonProperty("unpush_flow") Boolean unpushFlowEnabled, @JsonProperty(value="child_correlation_id") String childCorrelationId)