Class Server.Builder<T extends Server.Builder<T>>
- java.lang.Object
-
- org.jclouds.openstack.v2_0.domain.Resource.Builder<T>
-
- org.jclouds.openstack.nova.v2_0.domain.Server.Builder<T>
-
- Direct Known Subclasses:
ServerWithSecurityGroups.Builder
- Enclosing class:
- Server
public abstract static class Server.Builder<T extends Server.Builder<T>> extends Resource.Builder<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected String
accessIPv4
protected String
accessIPv6
protected com.google.common.collect.Multimap<String,Address>
addresses
protected String
availabilityZone
protected String
configDrive
protected Date
created
protected String
diskConfig
protected ServerExtendedAttributes
extendedAttributes
protected ServerExtendedStatus
extendedStatus
protected Resource
flavor
protected String
hostId
protected Resource
image
protected String
keyName
protected Map<String,String>
metadata
protected Server.Status
status
protected String
tenantId
protected Date
updated
protected String
userId
protected String
uuid
-
Fields inherited from class org.jclouds.openstack.v2_0.domain.Resource.Builder
id, links, name
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
accessIPv4(String accessIPv4)
T
accessIPv6(String accessIPv6)
T
addresses(com.google.common.collect.Multimap<String,Address> addresses)
T
availabilityZone(String availabilityZone)
Server
build()
T
configDrive(String configDrive)
T
created(Date created)
T
diskConfig(String diskConfig)
T
extendedAttributes(ServerExtendedAttributes extendedAttributes)
T
extendedStatus(ServerExtendedStatus extendedStatus)
T
flavor(Resource flavor)
T
fromServer(Server in)
T
hostId(String hostId)
T
image(Resource image)
T
keyName(String keyName)
T
metadata(Map<String,String> metadata)
T
status(Server.Status status)
T
tenantId(String tenantId)
T
updated(Date updated)
T
userId(String userId)
T
uuid(String uuid)
-
Methods inherited from class org.jclouds.openstack.v2_0.domain.Resource.Builder
fromResource, id, links, links, name, self
-
-
-
-
Field Detail
-
uuid
protected String uuid
-
tenantId
protected String tenantId
-
userId
protected String userId
-
updated
protected Date updated
-
created
protected Date created
-
hostId
protected String hostId
-
accessIPv4
protected String accessIPv4
-
accessIPv6
protected String accessIPv6
-
status
protected Server.Status status
-
image
protected Resource image
-
flavor
protected Resource flavor
-
keyName
protected String keyName
-
configDrive
protected String configDrive
-
extendedStatus
protected ServerExtendedStatus extendedStatus
-
extendedAttributes
protected ServerExtendedAttributes extendedAttributes
-
diskConfig
protected String diskConfig
-
availabilityZone
protected String availabilityZone
-
-
Method Detail
-
uuid
public T uuid(String uuid)
- See Also:
Server.getUuid()
-
tenantId
public T tenantId(String tenantId)
- See Also:
Server.getTenantId()
-
userId
public T userId(String userId)
- See Also:
Server.getUserId()
-
updated
public T updated(Date updated)
- See Also:
Server.getUpdated()
-
created
public T created(Date created)
- See Also:
Server.getCreated()
-
hostId
public T hostId(String hostId)
- See Also:
Server.getHostId()
-
accessIPv4
public T accessIPv4(String accessIPv4)
- See Also:
Server.getAccessIPv4()
-
accessIPv6
public T accessIPv6(String accessIPv6)
- See Also:
Server.getAccessIPv6()
-
status
public T status(Server.Status status)
- See Also:
Server.getStatus()
-
image
public T image(Resource image)
- See Also:
Server.getImage()
-
flavor
public T flavor(Resource flavor)
- See Also:
Server.getFlavor()
-
keyName
public T keyName(String keyName)
- See Also:
Server.getKeyName()
-
configDrive
public T configDrive(String configDrive)
- See Also:
Server.getConfigDrive()
-
addresses
public T addresses(com.google.common.collect.Multimap<String,Address> addresses)
- See Also:
Server.getAddresses()
-
metadata
public T metadata(Map<String,String> metadata)
- See Also:
Server.getMetadata()
-
extendedStatus
public T extendedStatus(ServerExtendedStatus extendedStatus)
- See Also:
Server.getExtendedStatus()
-
extendedAttributes
public T extendedAttributes(ServerExtendedAttributes extendedAttributes)
- See Also:
Server.getExtendedAttributes()
-
diskConfig
public T diskConfig(String diskConfig)
- See Also:
Server.getDiskConfig()
-
availabilityZone
public T availabilityZone(String availabilityZone)
- See Also:
Server.getAvailabilityZone()
-
build
public Server build()
- Overrides:
build
in classResource.Builder<T extends Server.Builder<T>>
-
-