// Copyright 2012 Citrix Systems, Inc. Licensed under the // Apache License, Version 2.0 (the "License"); you may not use this // file except in compliance with the License. Citrix Systems, Inc. // reserves all rights not expressly granted by the License. // You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // // Automatically generated by addcopyright.py at 04/03/2012 package com.cloud.agent.api.to; import com.cloud.network.Networks.TrafficType; public class IpAddressTO { private long accountId; private String publicIp; private boolean sourceNat; private boolean add; private boolean oneToOneNat; private boolean firstIP; private String vlanId; private String vlanGateway; private String vlanNetmask; private String vifMacAddress; private String guestIp; private Integer networkRate; private TrafficType trafficType; private String networkName; public IpAddressTO(long accountId, String ipAddress, boolean add, boolean firstIP, boolean sourceNat, String vlanId, String vlanGateway, String vlanNetmask, String vifMacAddress, String guestIp, Integer networkRate, boolean isOneToOneNat) { this.accountId = accountId; this.publicIp = ipAddress; this.add = add; this.firstIP = firstIP; this.sourceNat = sourceNat; this.vlanId = vlanId; this.vlanGateway = vlanGateway; this.vlanNetmask = vlanNetmask; this.vifMacAddress = vifMacAddress; this.guestIp = guestIp; this.networkRate = networkRate; this.oneToOneNat = isOneToOneNat; } protected IpAddressTO() { } public long getAccountId() { return accountId; } public String getGuestIp(){ return guestIp; } public String getPublicIp() { return publicIp; } public TrafficType getTrafficType() { return trafficType; } public void setNetworkName(String name) { this.networkName = name; } public String getNetworkName() { return networkName; } public void setTrafficType(TrafficType trafficType) { this.trafficType = trafficType; } public boolean isAdd() { return add; } public boolean isOneToOneNat(){ return this.oneToOneNat; } public boolean isFirstIP() { return firstIP; } public void setSourceNat(boolean sourceNat) { this.sourceNat = sourceNat; } public boolean isSourceNat() { return sourceNat; } public String getVlanId() { return vlanId; } public String getVlanGateway() { return vlanGateway; } public String getVlanNetmask() { return vlanNetmask; } public String getVifMacAddress() { return vifMacAddress; } public Integer getNetworkRate() { return networkRate; } }