16 package org.openkilda.messaging.command.stats;
22 import com.fasterxml.jackson.annotation.JsonCreator;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
26 @JsonInclude(JsonInclude.Include.NON_NULL)
31 @JsonProperty(
"switch_id")
41 setSwitchId(switchId);
59 if (switchId == null) {
60 throw new IllegalArgumentException(
"need to set a switch_id");
62 throw new IllegalArgumentException(
"need to set valid value for switch_id");
64 this.switchId = switchId;
static boolean validateSwitchId(SwitchId switchId)
void setSwitchId(SwitchId switchId)