org.jclouds.cloudstack.domain
Class PublicIPAddress
java.lang.Object
org.jclouds.cloudstack.domain.PublicIPAddress
public class PublicIPAddress
- extends Object
Class PublicIPAddress
- Author:
- Adrian Cole
|
Constructor Summary |
protected |
PublicIPAddress(String id,
String account,
Date allocated,
String associatedNetworkId,
String domain,
String domainId,
boolean usesVirtualNetwork,
String IPAddress,
boolean isSourceNAT,
boolean isStaticNAT,
String networkId,
PublicIPAddress.State state,
String virtualMachineDisplayName,
String virtualMachineId,
String virtualMachineName,
String VLANId,
String VLANName,
String zoneId,
String zoneName,
String jobId,
Integer jobStatus)
|
PublicIPAddress
@ConstructorProperties(value={"id","account","allocated","associatednetworkid","domain","domainid","forvirtualnetwork","ipaddress","issourcenat","isstaticnat","networkid","state","virtualmachinedisplayname","virtualmachineid","virtualmachinename","VLANid","VLANname","zoneid","zonename","jobid","jobstatus"})
protected PublicIPAddress(String id,
@Nullable
String account,
@Nullable
Date allocated,
@Nullable
String associatedNetworkId,
@Nullable
String domain,
@Nullable
String domainId,
boolean usesVirtualNetwork,
@Nullable
String IPAddress,
boolean isSourceNAT,
boolean isStaticNAT,
@Nullable
String networkId,
@Nullable
PublicIPAddress.State state,
@Nullable
String virtualMachineDisplayName,
@Nullable
String virtualMachineId,
@Nullable
String virtualMachineName,
@Nullable
String VLANId,
@Nullable
String VLANName,
@Nullable
String zoneId,
@Nullable
String zoneName,
@Nullable
String jobId,
@Nullable
Integer jobStatus)
builder
public static PublicIPAddress.Builder<?> builder()
toBuilder
public PublicIPAddress.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- public IP address id
getAccount
@Nullable
public String getAccount()
- Returns:
- the account the public IP address is associated with
getAllocated
@Nullable
public Date getAllocated()
- Returns:
- date the public IP address was acquired
getAssociatedNetworkId
@Nullable
public String getAssociatedNetworkId()
- Returns:
- the ID of the Network associated with the IP address
getDomain
@Nullable
public String getDomain()
- Returns:
- the domain the public IP address is associated with
getDomainId
@Nullable
public String getDomainId()
- Returns:
- the domain ID the public IP address is associated with
isUsesVirtualNetwork
public boolean isUsesVirtualNetwork()
- Returns:
- uses virtual network
getIPAddress
@Nullable
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
@Nullable
public String getNetworkId()
- Returns:
- the ID of the Network where ip belongs to
getState
@Nullable
public PublicIPAddress.State getState()
- Returns:
- State of the ip address. Can be: Allocating, Allocated and
Releasing
getVirtualMachineDisplayName
@Nullable
public String getVirtualMachineDisplayName()
- Returns:
- virtual machine display name the ip address is assigned to (not
null only for static nat Ip)
getVirtualMachineId
@Nullable
public String getVirtualMachineId()
- Returns:
- virtual machine id the ip address is assigned to (not null only
for static nat Ip)
getVirtualMachineName
@Nullable
public String getVirtualMachineName()
- Returns:
- virtual machine name the ip address is assigned to (not null only
for static nat Ip)
getVLANId
@Nullable
public String getVLANId()
- Returns:
- the ID of the VLAN associated with the IP address
getVLANName
@Nullable
public String getVLANName()
- Returns:
- the VLAN associated with the IP address
getZoneId
@Nullable
public String getZoneId()
- Returns:
- the ID of the zone the public IP address belongs to
getZoneName
@Nullable
public String getZoneName()
- Returns:
- the name of the zone the public IP address belongs to
getJobId
@Nullable
public String 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
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2013 jclouds. All Rights Reserved.