Class SenlinProfileCreate.SenlinProfileCreateConcreteBuilder
- java.lang.Object
-
- org.openstack4j.openstack.senlin.domain.SenlinProfileCreate.SenlinProfileCreateConcreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<ProfileCreateBuilder,ProfileCreate>,ProfileCreateBuilder
- Enclosing class:
- SenlinProfileCreate
public static class SenlinProfileCreate.SenlinProfileCreateConcreteBuilder extends Object implements ProfileCreateBuilder
A Builder to create a SenlinProfile. Usebuild()to receive theProfileCreateobject.- Author:
- lion
-
-
Constructor Summary
Constructors Constructor Description SenlinProfileCreateConcreteBuilder()Constructor to create aSenlinProfileCreate.SenlinProfileCreateConcreteBuilderobject with a new, emptySenlinProfileCreateobject.SenlinProfileCreateConcreteBuilder(SenlinProfileCreate model)Constructor for manipulation of an existingSenlinProfileCreateobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProfileCreatebuild()Creates and return the Model Entity MProfileCreateBuilderfrom(ProfileCreate in)Creates a Builder using the param M as the default valuesProfileCreateBuildermetadata(Map<String,Map> metadata)Add a list of key and value pairs to associate with the profile.ProfileCreateBuildername(String name)Add the name for the profile.ProfileCreateBuilderspec(Map<String,Object> spec)Add detailed specification based on the chosen profile type.
-
-
-
Constructor Detail
-
SenlinProfileCreateConcreteBuilder
public SenlinProfileCreateConcreteBuilder()
Constructor to create aSenlinProfileCreate.SenlinProfileCreateConcreteBuilderobject with a new, emptySenlinProfileCreateobject.
-
SenlinProfileCreateConcreteBuilder
public SenlinProfileCreateConcreteBuilder(SenlinProfileCreate model)
Constructor for manipulation of an existingSenlinProfileCreateobject.- Parameters:
model- theSenlinProfileCreateobject which is to be modified.
-
-
Method Detail
-
build
public ProfileCreate build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<ProfileCreateBuilder,ProfileCreate>- Returns:
- M instance
-
from
public ProfileCreateBuilder from(ProfileCreate in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<ProfileCreateBuilder,ProfileCreate>- Returns:
- Builder
-
name
public ProfileCreateBuilder name(String name)
Description copied from interface:ProfileCreateBuilderAdd the name for the profile.- Specified by:
namein interfaceProfileCreateBuilder- Parameters:
name- The name for the profile.- Returns:
- ProfileCreateBuilder
-
spec
public ProfileCreateBuilder spec(Map<String,Object> spec)
Description copied from interface:ProfileCreateBuilderAdd detailed specification based on the chosen profile type.- Specified by:
specin interfaceProfileCreateBuilder- Parameters:
spec- The detailed specification based on the chosen profile type.- Returns:
- ProfileCreateBuilder
-
metadata
public ProfileCreateBuilder metadata(Map<String,Map> metadata)
Description copied from interface:ProfileCreateBuilderAdd a list of key and value pairs to associate with the profile.- Specified by:
metadatain interfaceProfileCreateBuilder- Parameters:
metadata- The list of key and value pairs to associate with the profile.- Returns:
- ProfileCreateBuilder
-
-