Package org.jclouds.cloudstack.domain
Class NetworkOffering
- java.lang.Object
-
- org.jclouds.cloudstack.domain.NetworkOffering
-
- All Implemented Interfaces:
Comparable<NetworkOffering>
public class NetworkOffering extends Object implements Comparable<NetworkOffering>
Class NetworkOffering
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NetworkOffering.Builder<T extends NetworkOffering.Builder<T>>
-
Constructor Summary
Constructors Modifier Constructor Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.MoreObjects.ToStringHelper
string()
boolean
supportsVLAN()
NetworkOffering.Builder<?>
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
NetworkOffering
@ConstructorProperties({"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
-
getDisplayText
@Nullable public String getDisplayText()
- Returns:
- an alternate display text of the network offering.
-
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.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
compareTo
public int compareTo(NetworkOffering o)
- Specified by:
compareTo
in interfaceComparable<NetworkOffering>
-
-