Package org.jclouds.cloudstack.domain
Class PublicIPAddress
- java.lang.Object
-
- org.jclouds.cloudstack.domain.PublicIPAddress
-
public class PublicIPAddress extends Object
Class PublicIPAddress
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PublicIPAddress.Builder<T extends PublicIPAddress.Builder<T>>
static class
PublicIPAddress.State
-
Constructor Summary
Constructors Modifier Constructor Description 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, Set<Tag> tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicIPAddress.Builder<?>
builder()
boolean
equals(Object obj)
String
getAccount()
Date
getAllocated()
String
getAssociatedNetworkId()
String
getDomain()
String
getDomainId()
String
getId()
String
getIPAddress()
String
getJobId()
Integer
getJobStatus()
String
getNetworkId()
PublicIPAddress.State
getState()
Set<Tag>
getTags()
String
getVirtualMachineDisplayName()
String
getVirtualMachineId()
String
getVirtualMachineName()
String
getVLANId()
String
getVLANName()
String
getZoneId()
String
getZoneName()
int
hashCode()
boolean
isSourceNAT()
boolean
isStaticNAT()
boolean
isUsesVirtualNetwork()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
PublicIPAddress.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
PublicIPAddress
@ConstructorProperties({"id","account","allocated","associatednetworkid","domain","domainid","forvirtualnetwork","ipaddress","issourcenat","isstaticnat","networkid","state","virtualmachinedisplayname","virtualmachineid","virtualmachinename","VLANid","VLANname","zoneid","zonename","jobid","jobstatus","tags"}) 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, @Nullable Set<Tag> tags)
-
-
Method Detail
-
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
-
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
-
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
-
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
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
-