public static class NovaFlavor.FlavorConcreteBuilder extends Object implements FlavorBuilder
Modifier and Type | Method and Description |
---|---|
Flavor |
build()
Creates and return the Model Entity M
|
FlavorBuilder |
disk(int disk) |
FlavorBuilder |
ephemeral(int ephemeral) |
FlavorBuilder |
from(Flavor in)
Creates a Builder using the param M as the default values
|
FlavorBuilder |
id(String id) |
FlavorBuilder |
isPublic(boolean isPublic) |
FlavorBuilder |
name(String name) |
FlavorBuilder |
ram(int ram) |
FlavorBuilder |
rxtxFactor(float rxtxFactor) |
FlavorBuilder |
swap(int swap) |
FlavorBuilder |
vcpus(int vcpus) |
public FlavorBuilder name(String name)
name
in interface FlavorBuilder
Flavor.getName()
public FlavorBuilder ram(int ram)
ram
in interface FlavorBuilder
Flavor.getRam()
public FlavorBuilder vcpus(int vcpus)
vcpus
in interface FlavorBuilder
Flavor.getVcpus()
public FlavorBuilder disk(int disk)
disk
in interface FlavorBuilder
Flavor.getDisk()
public FlavorBuilder swap(int swap)
swap
in interface FlavorBuilder
Flavor.getSwap()
public FlavorBuilder rxtxFactor(float rxtxFactor)
rxtxFactor
in interface FlavorBuilder
Flavor.getRxtxFactor();
public FlavorBuilder isPublic(boolean isPublic)
isPublic
in interface FlavorBuilder
Flavor.isPublic()
public Flavor build()
Buildable.Builder
build
in interface Buildable.Builder<FlavorBuilder,Flavor>
public FlavorBuilder from(Flavor in)
Buildable.Builder
from
in interface Buildable.Builder<FlavorBuilder,Flavor>
public FlavorBuilder ephemeral(int ephemeral)
ephemeral
in interface FlavorBuilder
Flavor.getEphemeral()
public FlavorBuilder id(String id)
id
in interface FlavorBuilder
Flavor.getId()
Copyright © 2017. All rights reserved.