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>

Class NetworkOffering

Author:
Adrian Cole

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

Constructor Detail

NetworkOffering

@ConstructorProperties(value={"id","name","displaytext","created","availability","maxconnections","isdefault","specifyvlan","traffictype","guestiptype","networkrate","tags"})
protected NetworkOffering(String id,
                                                     @Nullable
                                                     String name,
                                                     @Nullable
                                                     String displayText,
                                                     @Nullable
                                                     Date created,
                                                     @Nullable
                                                     NetworkOfferingAvailabilityType availability,
                                                     @Nullable
                                                     Integer maxConnections,
                                                     boolean isDefault,
                                                     boolean supportsVLAN,
                                                     @Nullable
                                                     TrafficType trafficType,
                                                     @Nullable
                                                     GuestIPType guestIPType,
                                                     int networkRate,
                                                     @Nullable
                                                     Iterable<String> tags)
Method Detail

builder

public static NetworkOffering.Builder<?> builder()

toBuilder

public NetworkOffering.Builder<?> toBuilder()

getId

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

getName

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

getDisplayText

@Nullable
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

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

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

supportsVLAN

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

getTrafficType

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

getGuestIPType

@Nullable
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

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object

compareTo

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


Copyright © 2009-2013 jclouds. All Rights Reserved.