org.jclouds.cloudstack.domain
Class PublicIPAddress
java.lang.Object
org.jclouds.cloudstack.domain.PublicIPAddress
- All Implemented Interfaces:
- Comparable<PublicIPAddress>
public class PublicIPAddress
- extends Object
- implements Comparable<PublicIPAddress>
- Author:
- Adrian Cole
Constructor Summary |
PublicIPAddress(long id,
String account,
Date allocated,
long associatedNetworkId,
String domain,
long domainId,
boolean usesVirtualNetwork,
String iPAddress,
boolean isSourceNAT,
boolean isStaticNAT,
long networkId,
PublicIPAddress.State state,
String virtualMachineDisplayName,
long virtualMachineId,
String virtualMachineName,
long VLANId,
String VLANName,
long zoneId,
String zoneName,
Long jobId,
Integer jobStatus)
|
PublicIPAddress
public PublicIPAddress(long id,
String account,
Date allocated,
long associatedNetworkId,
String domain,
long domainId,
boolean usesVirtualNetwork,
String iPAddress,
boolean isSourceNAT,
boolean isStaticNAT,
long networkId,
PublicIPAddress.State state,
String virtualMachineDisplayName,
long virtualMachineId,
String virtualMachineName,
long VLANId,
String VLANName,
long zoneId,
String zoneName,
Long jobId,
Integer jobStatus)
builder
public static PublicIPAddress.Builder builder()
compareTo
public int compareTo(PublicIPAddress arg0)
- Specified by:
compareTo
in interface Comparable<PublicIPAddress>
getId
public long getId()
- Returns:
- public IP address id
getAccount
public String getAccount()
- Returns:
- the account the public IP address is associated with
getAllocated
public Date getAllocated()
- Returns:
- date the public IP address was acquired
getJobId
@Nullable
public Long getJobId()
- Returns:
- shows the current pending asynchronous job ID. This tag is not
returned if no current pending jobs are acting on the virtual
machine
getJobStatus
@Nullable
public Integer getJobStatus()
- Returns:
- shows the current pending asynchronous job status
getAssociatedNetworkId
public long getAssociatedNetworkId()
- Returns:
- the ID of the Network associated with the IP address
getDomain
public String getDomain()
- Returns:
- the domain the public IP address is associated with
getDomainId
public long getDomainId()
- Returns:
- the domain ID the public IP address is associated with
usesVirtualNetwork
public boolean usesVirtualNetwork()
- Returns:
- uses virtual network
getIPAddress
public String getIPAddress()
- Returns:
- public IP address
isSourceNAT
public boolean isSourceNAT()
- Returns:
- true if the IP address is a source nat address, false otherwise
isStaticNAT
public boolean isStaticNAT()
- Returns:
- true if this ip is for static nat, false otherwise
getNetworkId
public long getNetworkId()
- Returns:
- the ID of the Network where ip belongs to
getState
public PublicIPAddress.State getState()
- Returns:
- State of the ip address. Can be: Allocating, Allocated and
Releasing
getVirtualMachineDisplayName
public String getVirtualMachineDisplayName()
- Returns:
- virtual machine display name the ip address is assigned to (not
null only for static nat Ip)
getVirtualMachineId
public long getVirtualMachineId()
- Returns:
- virtual machine id the ip address is assigned to (not null only
for static nat Ip)
getVirtualMachineName
public String getVirtualMachineName()
- Returns:
- virtual machine name the ip address is assigned to (not null only
for static nat Ip)
getVLANId
public long getVLANId()
- Returns:
- the ID of the VLAN associated with the IP address
getVLANName
public String getVLANName()
- Returns:
- the VLAN associated with the IP address
getZoneId
public long getZoneId()
- Returns:
- the ID of the zone the public IP address belongs to
getZoneName
public String getZoneName()
- Returns:
- the name of the zone the public IP address belongs to
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 jclouds. All Rights Reserved.