Class LaunchConfiguration
- java.lang.Object
-
- org.jclouds.rackspace.autoscale.v1.domain.LaunchConfiguration
-
- All Implemented Interfaces:
Comparable<LaunchConfiguration>
public class LaunchConfiguration extends Object implements Comparable<LaunchConfiguration>
Autoscale LaunchConfiguration. What to do when a new server is created. Its configuration includes information about the server image, the flavor of the server image, and to which cloud load balancer or RackConnectV3 load balancer pool to connect. The type parameter for launchConfiguration must be set to LAUNCH_SERVER
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LaunchConfiguration.Builder
static class
LaunchConfiguration.LaunchConfigurationType
Enumerates launch configuration types
-
Constructor Summary
Constructors Modifier Constructor Description protected
LaunchConfiguration(List<LoadBalancer> loadBalancers, LaunchConfiguration.LaunchConfigurationType type, List<String> networks, List<Personality> personalities, String serverName, String serverImageRef, String serverFlavorRef, String serverDiskConfig, Map<String,String> serverMetadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LaunchConfiguration.Builder
builder()
int
compareTo(LaunchConfiguration that)
boolean
equals(Object obj)
List<LoadBalancer>
getLoadBalancers()
List<String>
getNetworks()
List<Personality>
getPersonalities()
String
getServerDiskConfig()
String
getServerFlavorRef()
String
getServerImageRef()
com.google.common.collect.ImmutableMap<String,String>
getServerMetadata()
String
getServerName()
LaunchConfiguration.LaunchConfigurationType
getType()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
LaunchConfiguration.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
LaunchConfiguration
@ConstructorProperties({"loadBalancers","type","networks","personalities","serverName","serverImageRef","serverFlavorRef","serverDiskConfig","serverMetadata"}) protected LaunchConfiguration(List<LoadBalancer> loadBalancers, LaunchConfiguration.LaunchConfigurationType type, List<String> networks, List<Personality> personalities, String serverName, String serverImageRef, String serverFlavorRef, String serverDiskConfig, Map<String,String> serverMetadata)
-
-
Method Detail
-
getLoadBalancers
public List<LoadBalancer> getLoadBalancers()
- Returns:
- the list of load balancers of this LaunchConfiguration.
- See Also:
LaunchConfiguration.Builder.loadBalancers(List)
-
getType
public LaunchConfiguration.LaunchConfigurationType getType()
- Returns:
- the type for this LaunchConfiguration.
- See Also:
LaunchConfiguration.LaunchConfigurationType
,LaunchConfiguration.Builder.type(LaunchConfigurationType)
-
getNetworks
public List<String> getNetworks()
- Returns:
- the networks for this LaunchConfiguration.
- See Also:
getNetworks()
,LaunchConfiguration.Builder.networks(List)
-
getPersonalities
public List<Personality> getPersonalities()
- Returns:
- the personalities for this LaunchConfiguration.
- See Also:
Personality
,LaunchConfiguration.Builder.personalities(List)
-
getServerName
public String getServerName()
- Returns:
- the server name for this LaunchConfiguration.
- See Also:
LaunchConfiguration.Builder.serverName(String)
-
getServerImageRef
public String getServerImageRef()
- Returns:
- the server image ref for this LaunchConfiguration.
- See Also:
LaunchConfiguration.Builder.serverImageRef(String)
-
getServerFlavorRef
public String getServerFlavorRef()
- Returns:
- the server flavor ref for this LaunchConfiguration.
- See Also:
LaunchConfiguration.Builder.serverFlavorRef(String)
-
getServerDiskConfig
public String getServerDiskConfig()
- Returns:
- the server disk config for this LaunchConfiguration, ex. "AUTO"
- See Also:
LaunchConfiguration.Builder.serverDiskConfig(String)
-
getServerMetadata
public com.google.common.collect.ImmutableMap<String,String> getServerMetadata()
- Returns:
- the server metadata for this LaunchConfiguration.
- See Also:
LaunchConfiguration.Builder.serverMetadata(Map)
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static LaunchConfiguration.Builder builder()
-
toBuilder
public LaunchConfiguration.Builder toBuilder()
-
compareTo
public int compareTo(LaunchConfiguration that)
- Specified by:
compareTo
in interfaceComparable<LaunchConfiguration>
-
-