public static class HeatSoftwareConfig.Builder extends Object implements SoftwareConfigBuilder
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SoftwareConfig |
build()
Creates and return the Model Entity M
|
SoftwareConfigBuilder |
config(String config)
Configuration script or manifest that defines which configuration is performed
|
SoftwareConfigBuilder |
from(SoftwareConfig in)
Creates a Builder using the param M as the default values
|
SoftwareConfigBuilder |
group(String group)
Namespace that groups this software configuration by when it is delivered to a server.
|
SoftwareConfigBuilder |
input(String name)
Adds an input that this software configuration expects
|
SoftwareConfigBuilder |
input(String name,
String type)
Adds an input that this software configuration expects
|
SoftwareConfigBuilder |
input(String name,
String type,
String description,
String defaultValue)
Adds an input that this software configuration expects
|
SoftwareConfigBuilder |
name(String name)
The name of this configuration
|
SoftwareConfigBuilder |
options(Map<String,Object> options)
Adds a map containing options specific to the configuration management tool used by this resource
|
SoftwareConfigBuilder |
output(String name)
Adds an output this software configuration produces
|
SoftwareConfigBuilder |
output(String name,
String type)
Adds an output this software configuration produces
|
SoftwareConfigBuilder |
output(String name,
String type,
String description,
boolean isErrorOutput)
Adds an output this software configuration produces
|
public SoftwareConfig build()
Buildable.Builder
build
in interface Buildable.Builder<SoftwareConfigBuilder,SoftwareConfig>
public SoftwareConfigBuilder from(SoftwareConfig in)
Buildable.Builder
from
in interface Buildable.Builder<SoftwareConfigBuilder,SoftwareConfig>
public SoftwareConfigBuilder name(String name)
SoftwareConfigBuilder
name
in interface SoftwareConfigBuilder
name
- the config namepublic SoftwareConfigBuilder group(String group)
SoftwareConfigBuilder
group
in interface SoftwareConfigBuilder
group
- the group namespacepublic SoftwareConfigBuilder input(String name)
SoftwareConfigBuilder
input
in interface SoftwareConfigBuilder
name
- the input namepublic SoftwareConfigBuilder input(String name, String type)
SoftwareConfigBuilder
input
in interface SoftwareConfigBuilder
name
- the input nametype
- the input type (ex. String)public SoftwareConfigBuilder input(String name, String type, String description, String defaultValue)
SoftwareConfigBuilder
input
in interface SoftwareConfigBuilder
name
- the input nametype
- the input type (ex. String)description
- a description about this inputdefaultValue
- the initial valuepublic SoftwareConfigBuilder output(String name)
SoftwareConfigBuilder
output
in interface SoftwareConfigBuilder
name
- the name of the outputpublic SoftwareConfigBuilder output(String name, String type)
SoftwareConfigBuilder
output
in interface SoftwareConfigBuilder
name
- the name of the outputtype
- the output type (ex. String)public SoftwareConfigBuilder output(String name, String type, String description, boolean isErrorOutput)
SoftwareConfigBuilder
output
in interface SoftwareConfigBuilder
name
- the name of the outputtype
- the output type (ex. String)description
- the description of this outputisErrorOutput
- true if this is an error related outputpublic SoftwareConfigBuilder options(Map<String,Object> options)
SoftwareConfigBuilder
options
in interface SoftwareConfigBuilder
options
- map of optionspublic SoftwareConfigBuilder config(String config)
SoftwareConfigBuilder
config
in interface SoftwareConfigBuilder
config
- the configuration script or manifest to addCopyright © 2017. All rights reserved.