org.jclouds.cloudstack.domain
Class NetworkOffering

java.lang.Object
  extended by org.jclouds.cloudstack.domain.NetworkOffering
All Implemented Interfaces:
Comparable<NetworkOffering>

public class NetworkOffering
extends Object
implements Comparable<NetworkOffering>

Author:
Adrian Cole

Nested Class Summary
static class NetworkOffering.Builder
           
 
Constructor Summary
NetworkOffering(long id, String name, String displayText, Date created, NetworkOfferingAvailabilityType availability, boolean supportsVLAN, Integer maxConnections, boolean isDefault, TrafficType trafficType, GuestIPType guestIPType, int networkRate, Set<String> tags)
           
 
Method Summary
static NetworkOffering.Builder builder()
           
 int compareTo(NetworkOffering arg0)
           
 boolean equals(Object obj)
           
 NetworkOfferingAvailabilityType getAvailability()
           
 Date getCreated()
           
 String getDisplayText()
           
 GuestIPType getGuestIPType()
           
 long getId()
           
 Integer getMaxConnections()
           
 String getName()
           
 int getNetworkRate()
           
 Set<String> getTags()
           
 TrafficType getTrafficType()
           
 int hashCode()
           
 boolean isDefault()
           
 boolean supportsVLAN()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkOffering

public NetworkOffering(long id,
                       String name,
                       String displayText,
                       @Nullable
                       Date created,
                       NetworkOfferingAvailabilityType availability,
                       boolean supportsVLAN,
                       @Nullable
                       Integer maxConnections,
                       boolean isDefault,
                       TrafficType trafficType,
                       GuestIPType guestIPType,
                       int networkRate,
                       Set<String> tags)
Method Detail

builder

public static NetworkOffering.Builder builder()

getId

public long getId()
Returns:
the id of the network offering

getName

public String getName()
Returns:
the name of the network offering

getDisplayText

public String getDisplayText()
Returns:
an alternate display text of the network offering.

getCreated

@Nullable
public Date getCreated()
Returns:
the date this network offering was created

getAvailability

public NetworkOfferingAvailabilityType getAvailability()
Returns:
Availability name for the offering

supportsVLAN

public boolean supportsVLAN()
Returns:
true if network offering supports vlans, false otherwise

getMaxConnections

@Nullable
public Integer getMaxConnections()
Returns:
the max number of concurrent connection the network offering supports

isDefault

public boolean isDefault()
Returns:
true if network offering is default, false otherwise

getTrafficType

public TrafficType getTrafficType()
Returns:
the traffic type for this network offering

getGuestIPType

public GuestIPType getGuestIPType()
Returns:
the guest ip type for this network offering

getNetworkRate

public int getNetworkRate()
Returns:
data transfer rate in megabits per second allowed.

getTags

public Set<String> getTags()
Returns:
the tags for the network offering

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

compareTo

public int compareTo(NetworkOffering arg0)
Specified by:
compareTo in interface Comparable<NetworkOffering>


Copyright © 2009-2012 jclouds. All Rights Reserved.