public InterfaceGroup(SortedSet<NodeInterfacePair> interfaces, String name) { ReferenceLibrary.checkValidName(name, "interface group"); _name = name; _interfaces = ImmutableSortedSet.copyOf(interfaces); }
public ServiceEndpoint( @JsonProperty(PROP_ADDRESS) String address, @JsonProperty(PROP_NAME) String name, @JsonProperty(PROP_SERVICE) String service) { checkArgument(address != null, "Service endpoint address cannot be null"); checkArgument(name != null, "Service endpoint name cannot be null"); checkArgument(service != null, "Service endpoint service cannot be null"); ReferenceLibrary.checkValidName(name, "service endpoint"); _address = address; _name = name; _service = service; }
public ServiceObject( @JsonProperty(PROP_IP_PROTOCOL) IpProtocol ipProtocol, @JsonProperty(PROP_NAME) String name, @JsonProperty(PROP_PORTS) SubRange ports) { checkArgument(ipProtocol != null, "Service object ipProtocol not be null"); checkArgument(name != null, "Service object name cannot be null"); checkArgument(ports != null, "Service object ports cannot be null"); ReferenceLibrary.checkValidName(name, "service object"); _ipProtocol = ipProtocol; _name = name; _ports = ports; }
public FilterGroup( @Nullable @JsonProperty(PROP_FILTERS) List<FiltersSpecifier> filters, @Nullable @JsonProperty(PROP_NAME) String name) { checkArgument(name != null, "Filter group name cannot not be null"); ReferenceLibrary.checkValidName(name, "filter group"); _name = name; _filters = firstNonNull(filters, new LinkedList<>()); }
public AddressGroup( @Nullable @JsonProperty(PROP_ADDRESSES) SortedSet<String> addresses, @Nullable @JsonProperty(PROP_NAME) String name) { checkArgument(name != null, "Address group name cannot not be null"); ReferenceLibrary.checkValidName(name, "address group"); _name = name; _addresses = firstNonNull(addresses, new TreeSet<>()); // check if all the input address strings can be mapped to an IpWildCard _addresses.forEach(IpWildcard::new); }
public ServiceObjectGroup( @JsonProperty(PROP_NAME) String name, @JsonProperty(PROP_SERVICES) SortedSet<String> services) { checkArgument(name != null, "Service object group name cannot be null"); ReferenceLibrary.checkValidName(name, "service object group"); _name = name; _services = firstNonNull(services, ImmutableSortedSet.of()); }
@JsonProperty(PROP_SERVICE_OBJECTS) List<ServiceObject> serviceObjects) { checkArgument(name != null, "Reference book name cannot be null"); ReferenceLibrary.checkValidName(name, "book");