public static class KeystoneService.ServiceConcreteBuilder extends Object implements ServiceBuilder
Modifier and Type | Method and Description |
---|---|
Service |
build()
Creates and return the Model Entity M
|
ServiceBuilder |
description(String description) |
ServiceBuilder |
enabled(boolean enabled) |
ServiceBuilder |
from(Service in)
Creates a Builder using the param M as the default values
|
ServiceBuilder |
id(String id) |
ServiceBuilder |
links(Map<String,String> links) |
ServiceBuilder |
name(String name) |
ServiceBuilder |
type(String type) |
ServiceBuilder |
version(Integer version) |
public Service build()
Buildable.Builder
build
in interface Buildable.Builder<ServiceBuilder,Service>
public ServiceBuilder from(Service in)
Buildable.Builder
from
in interface Buildable.Builder<ServiceBuilder,Service>
public ServiceBuilder version(Integer version)
version
in interface ServiceBuilder
Service.getVersion()
public ServiceBuilder id(String id)
id
in interface ServiceBuilder
Service.getId()
public ServiceBuilder description(String description)
description
in interface ServiceBuilder
Service.getDescription()
public ServiceBuilder type(String type)
type
in interface ServiceBuilder
Service.getType()
public ServiceBuilder name(String name)
name
in interface ServiceBuilder
Service.getName()
public ServiceBuilder enabled(boolean enabled)
enabled
in interface ServiceBuilder
Service.isEnabled()
public ServiceBuilder links(Map<String,String> links)
links
in interface ServiceBuilder
Service.getLinks()
Copyright © 2017. All rights reserved.