Open Kilda Java Documentation
FeatureTogglesResponse.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.info.system;
17 
19 
20 import com.fasterxml.jackson.annotation.JsonProperty;
21 
22 import lombok.Builder;
23 import lombok.Value;
24 
25 @Value
26 @Builder
27 public class FeatureTogglesResponse extends InfoData {
28 
29  @JsonProperty(value = "sync_rules")
30  private Boolean syncRulesEnabled;
31 
32  @JsonProperty(value = "reflow_on_switch_activation")
33  private Boolean reflowOnSwitchActivationEnabled;
34 
35  @JsonProperty("create_flow")
36  private Boolean createFlowEnabled;
37 
38  @JsonProperty("update_flow")
39  private Boolean updateFlowEnabled;
40 
41  @JsonProperty("delete_flow")
42  private Boolean deleteFlowEnabled;
43 
44  @JsonProperty("push_flow")
45  private Boolean pushFlowEnabled;
46 
47  @JsonProperty("unpush_flow")
48  private Boolean unpushFlowEnabled;
49 
50  public FeatureTogglesResponse(@JsonProperty(value = "sync_rules") Boolean syncRulesEnabled,
51  @JsonProperty(value = "reflow_on_switch_activation") Boolean reflowOnSwitchActivationEnabled,
52  @JsonProperty("create_flow") Boolean createFlowEnabled,
53  @JsonProperty("update_flow") Boolean updateFlowEnabled,
54  @JsonProperty("delete_flow") Boolean deleteFlowEnabled, @JsonProperty("push_flow") Boolean pushFlowEnabled,
55  @JsonProperty("unpush_flow") Boolean unpushFlowEnabled) {
56  this.syncRulesEnabled = syncRulesEnabled;
57  this.reflowOnSwitchActivationEnabled = reflowOnSwitchActivationEnabled;
58  this.createFlowEnabled = createFlowEnabled;
59  this.updateFlowEnabled = updateFlowEnabled;
60  this.deleteFlowEnabled = deleteFlowEnabled;
61  this.pushFlowEnabled = pushFlowEnabled;
62  this.unpushFlowEnabled = unpushFlowEnabled;
63  }
64 
65  public Boolean getSyncRulesEnabled() {
66  return syncRulesEnabled;
67  }
68 
70  return reflowOnSwitchActivationEnabled;
71  }
72 
73  public Boolean getCreateFlowEnabled() {
74  return createFlowEnabled;
75  }
76 
77  public Boolean getUpdateFlowEnabled() {
78  return updateFlowEnabled;
79  }
80 
81  public Boolean getDeleteFlowEnabled() {
82  return deleteFlowEnabled;
83  }
84 
85  public Boolean getPushFlowEnabled() {
86  return pushFlowEnabled;
87  }
88 
89  public Boolean getUnpushFlowEnabled() {
90  return unpushFlowEnabled;
91  }
92 
93  @Override
94  public String toString() {
95  return "FeatureTogglesResponse [syncRulesEnabled=" + syncRulesEnabled + ", reflowOnSwitchActivationEnabled="
96  + reflowOnSwitchActivationEnabled + ", createFlowEnabled=" + createFlowEnabled + ", updateFlowEnabled="
97  + updateFlowEnabled + ", deleteFlowEnabled=" + deleteFlowEnabled + ", pushFlowEnabled="
98  + pushFlowEnabled + ", unpushFlowEnabled=" + unpushFlowEnabled + "]";
99  }
100 
101 }
value
Definition: nodes.py:62
FeatureTogglesResponse(@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)