public static class SenlinProfileCreate.SenlinProfileCreateConcreteBuilder extends Object implements ProfileCreateBuilder
build()
to receive the
ProfileCreate
object.Constructor and Description |
---|
SenlinProfileCreateConcreteBuilder()
Constructor to create a
SenlinProfileCreate.SenlinProfileCreateConcreteBuilder object
with a new, empty SenlinProfileCreate object. |
SenlinProfileCreateConcreteBuilder(SenlinProfileCreate model)
Constructor for manipulation of an existing
SenlinProfileCreate
object. |
Modifier and Type | Method and Description |
---|---|
ProfileCreate |
build()
Creates and return the Model Entity M
|
ProfileCreateBuilder |
from(ProfileCreate in)
Creates a Builder using the param M as the default values
|
ProfileCreateBuilder |
metadata(Map<String,Map> metadata)
Add a list of key and value pairs to associate with the profile.
|
ProfileCreateBuilder |
name(String name)
Add the name for the profile.
|
ProfileCreateBuilder |
spec(Map<String,Object> spec)
Add detailed specification based on the chosen profile type.
|
public SenlinProfileCreateConcreteBuilder()
SenlinProfileCreate.SenlinProfileCreateConcreteBuilder
object
with a new, empty SenlinProfileCreate
object.public SenlinProfileCreateConcreteBuilder(SenlinProfileCreate model)
SenlinProfileCreate
object.model
- the SenlinProfileCreate
object which is to be
modified.public ProfileCreate build()
Buildable.Builder
build
in interface Buildable.Builder<ProfileCreateBuilder,ProfileCreate>
public ProfileCreateBuilder from(ProfileCreate in)
Buildable.Builder
from
in interface Buildable.Builder<ProfileCreateBuilder,ProfileCreate>
public ProfileCreateBuilder name(String name)
ProfileCreateBuilder
name
in interface ProfileCreateBuilder
name
- The name for the profile.public ProfileCreateBuilder spec(Map<String,Object> spec)
ProfileCreateBuilder
spec
in interface ProfileCreateBuilder
spec
- The detailed specification based on the chosen profile type.public ProfileCreateBuilder metadata(Map<String,Map> metadata)
ProfileCreateBuilder
metadata
in interface ProfileCreateBuilder
metadata
- The list of key and value pairs to associate with the profile.Copyright © 2017. All rights reserved.