public static class LaunchConfiguration.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected List<LoadBalancer> |
loadBalancers |
protected List<String> |
networks |
protected List<Personality> |
personalities |
protected String |
serverDiskConfig |
protected String |
serverFlavorRef |
protected String |
serverImageRef |
protected com.google.common.collect.ImmutableMap<String,String> |
serverMetadata |
protected String |
serverName |
protected LaunchConfiguration.LaunchConfigurationType |
type |
Constructor and Description |
---|
LaunchConfiguration.Builder() |
Modifier and Type | Method and Description |
---|---|
LaunchConfiguration |
build() |
LaunchConfiguration.Builder |
fromLaunchConfiguration(LaunchConfiguration in) |
LaunchConfiguration.Builder |
loadBalancers(List<LoadBalancer> loadBalancers)
Optional.
|
LaunchConfiguration.Builder |
networks(List<String> networks)
Optional.
|
LaunchConfiguration.Builder |
personalities(List<Personality> personalities)
Optional.
|
LaunchConfiguration.Builder |
serverDiskConfig(String serverDiskConfig)
Optional.
|
LaunchConfiguration.Builder |
serverFlavorRef(String serverFlavorRef)
Required.
|
LaunchConfiguration.Builder |
serverImageRef(String serverImageRef)
Required.
|
LaunchConfiguration.Builder |
serverMetadata(Map<String,String> serverMetadata)
Optional.
|
LaunchConfiguration.Builder |
serverName(String serverName)
Required.
|
LaunchConfiguration.Builder |
type(LaunchConfiguration.LaunchConfigurationType type)
Required.
|
protected List<LoadBalancer> loadBalancers
protected LaunchConfiguration.LaunchConfigurationType type
protected List<Personality> personalities
protected String serverName
protected String serverImageRef
protected String serverFlavorRef
protected String serverDiskConfig
public LaunchConfiguration.Builder loadBalancers(List<LoadBalancer> loadBalancers)
loadBalancers
- The load balancers of this LaunchConfiguration.LaunchConfiguration.getLoadBalancers()
public LaunchConfiguration.Builder type(LaunchConfiguration.LaunchConfigurationType type)
type
- The type for this LaunchConfiguration.LaunchConfiguration.getType()
public LaunchConfiguration.Builder networks(List<String> networks)
networks
- The networks of this LaunchConfiguration.LaunchConfiguration.getNetworks()
public LaunchConfiguration.Builder personalities(List<Personality> personalities)
personalities
- The personalities of this LaunchConfiguration.Personality
,
LaunchConfiguration.getPersonalities()
,
Server Personality
public LaunchConfiguration.Builder serverName(String serverName)
serverName
- The serverName of this LaunchConfiguration.LaunchConfiguration.getServerName()
public LaunchConfiguration.Builder serverImageRef(String serverImageRef)
serverImageRef
- The serverImageRef of this LaunchConfiguration.LaunchConfiguration.getServerImageRef()
public LaunchConfiguration.Builder serverFlavorRef(String serverFlavorRef)
serverFlavorRef
- The serverFlavorRef of this LaunchConfiguration.LaunchConfiguration.getServerFlavorRef()
public LaunchConfiguration.Builder serverDiskConfig(String serverDiskConfig)
serverDiskConfig
- The serverDiskConfig of this LaunchConfiguration.LaunchConfiguration.getServerDiskConfig()
public LaunchConfiguration.Builder serverMetadata(Map<String,String> serverMetadata)
serverMetadata
- The serverMetadata of this LaunchConfiguration.LaunchConfiguration.getServerMetadata()
public LaunchConfiguration build()
public LaunchConfiguration.Builder fromLaunchConfiguration(LaunchConfiguration in)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.