@@ -0,0 +1,2341 @@
+/*%0A * Copyright (c) 2015 University of Ulm%0A *%0A * See the NOTICE file distributed with this work for additional information%0A * regarding copyright ownership.  Licensed under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage de.uniulm.omi.executionware.entities;%0A%0Aimport de.uniulm.omi.executionware.entities.internal.AbstractEntity;%0Aimport de.uniulm.omi.executionware.entities.internal.Link;%0Aimport de.uniulm.omi.executionware.entities.internal.Path;%0A%0Aimport javax.annotation.Nullable;%0Aimport java.util.ArrayList;%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0A/**%0A * Created by frank on 21.01.15.%0A */%0A@Path(%22ip%22)%0Apublic class IpAddress extends AbstractEntity %7B%0A%0A    private final ArrayList%3CString%3E allowed = new ArrayList%3CString%3E(Arrays.asList(%22PRIVATE%22, %22PUBLIC%22));%0A%0A    private String ip;%0A    private Long virtualMachine;%0A    private String ipType;%0A%0A    public IpAddress(@Nullable List%3CLink%3E links, String ip, Long virtualMachine, String ipType) throws Exception %7B%0A        super(links);%0A        this.ip = ip;%0A        this.virtualMachine = virtualMachine;%0A        this.setIpType(ipType);%0A    %7D%0A%0A    public IpAddress(String ip, Long virtualMachine, String ipType) throws Exception %7B%0A        this(null, ip, virtualMachine, ipType);%0A    %7D%0A%0A    protected IpAddress() %7B%0A    %7D%0A%0A    public Long getVirtualMachine() %7B%0A        return virtualMachine;%0A    %7D%0A%0A    public void setVirtualMachine(Long virtualMachine) %7B%0A        this.virtualMachine = virtualMachine;%0A    %7D%0A%0A    public String getIp() %7B%0A        return ip;%0A    %7D%0A%0A    public void setIp(String ip) %7B%0A        this.ip = ip;%0A    %7D%0A%0A    public String getIpType() %7B%0A        return ipType;%0A    %7D%0A%0A    public void setIpType(String ipType) throws Exception %7B%0A        if (!allowed.contains(ipType)) %7B%0A            throw new Exception(%22Wrong IP-Type!%22);%0A        %7D%0A        this.ipType = ipType;%0A    %7D%0A%7D%0A

Add IP addresses to the API-client.