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.Builderbuild in interface Buildable.Builder<ProfileCreateBuilder,ProfileCreate>public ProfileCreateBuilder from(ProfileCreate in)
Buildable.Builderfrom in interface Buildable.Builder<ProfileCreateBuilder,ProfileCreate>public ProfileCreateBuilder name(String name)
ProfileCreateBuildername in interface ProfileCreateBuildername - The name for the profile.public ProfileCreateBuilder spec(Map<String,Object> spec)
ProfileCreateBuilderspec in interface ProfileCreateBuilderspec - The detailed specification based on the chosen profile type.public ProfileCreateBuilder metadata(Map<String,Map> metadata)
ProfileCreateBuildermetadata in interface ProfileCreateBuildermetadata - The list of key and value pairs to associate with the profile.Copyright © 2017. All rights reserved.