org.jclouds.compute.domain
Class NodeMetadataBuilder

java.lang.Object
  extended by org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
      extended by org.jclouds.compute.domain.ComputeMetadataBuilder
          extended by org.jclouds.compute.domain.NodeMetadataBuilder

public class NodeMetadataBuilder
extends ComputeMetadataBuilder

Author:
Adrian Cole

Field Summary
 
Fields inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
id, tags, type
 
Fields inherited from class org.jclouds.domain.ResourceMetadataBuilder
location, name, providerId, uri, userMetadata
 
Constructor Summary
NodeMetadataBuilder()
           
 
Method Summary
 NodeMetadataBuilder adminPassword(String adminPassword)
          Deprecated. 
 NodeMetadata build()
           
 NodeMetadataBuilder credentials(Credentials credentials)
          Deprecated. 
 NodeMetadataBuilder credentials(LoginCredentials credentials)
           
static NodeMetadataBuilder fromNodeMetadata(NodeMetadata node)
           
 NodeMetadataBuilder group(String group)
           
 NodeMetadataBuilder hardware(Hardware hardware)
           
 NodeMetadataBuilder hostname(String hostname)
           
 NodeMetadataBuilder id(String id)
           
 NodeMetadataBuilder ids(String id)
          set id and providerId to the same value;
 NodeMetadataBuilder imageId(String imageId)
           
 NodeMetadataBuilder location(Location location)
           
 NodeMetadataBuilder loginPort(int loginPort)
           
 NodeMetadataBuilder name(String name)
           
 NodeMetadataBuilder operatingSystem(OperatingSystem os)
           
 NodeMetadataBuilder privateAddresses(Iterable<String> privateAddresses)
           
 NodeMetadataBuilder providerId(String providerId)
           
 NodeMetadataBuilder publicAddresses(Iterable<String> publicAddresses)
           
 NodeMetadataBuilder state(NodeState state)
           
 NodeMetadataBuilder tags(Iterable<String> tags)
           
 NodeMetadataBuilder uri(URI uri)
           
 NodeMetadataBuilder userMetadata(Map<String,String> userMetadata)
           
 
Methods inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
fromComputeMetadata
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeMetadataBuilder

public NodeMetadataBuilder()
Method Detail

loginPort

public NodeMetadataBuilder loginPort(int loginPort)

state

public NodeMetadataBuilder state(NodeState state)

publicAddresses

public NodeMetadataBuilder publicAddresses(Iterable<String> publicAddresses)

privateAddresses

public NodeMetadataBuilder privateAddresses(Iterable<String> privateAddresses)

adminPassword

@Deprecated
public NodeMetadataBuilder adminPassword(@Nullable
                                                    String adminPassword)
Deprecated. 

will be removed in jclouds 1.4.0

See Also:
LoginCredentials.shouldAuthenticateSudo()

credentials

@Deprecated
public NodeMetadataBuilder credentials(@Nullable
                                                  Credentials credentials)
Deprecated. 

will be removed in jclouds 1.4.0

See Also:
credentials(LoginCredentials)

credentials

public NodeMetadataBuilder credentials(@Nullable
                                       LoginCredentials credentials)

group

public NodeMetadataBuilder group(@Nullable
                                 String group)

imageId

public NodeMetadataBuilder imageId(@Nullable
                                   String imageId)

hardware

public NodeMetadataBuilder hardware(@Nullable
                                    Hardware hardware)

operatingSystem

public NodeMetadataBuilder operatingSystem(@Nullable
                                           OperatingSystem os)

hostname

public NodeMetadataBuilder hostname(String hostname)

id

public NodeMetadataBuilder id(String id)
Overrides:
id in class ComputeMetadataBuilder

tags

public NodeMetadataBuilder tags(Iterable<String> tags)
Overrides:
tags in class ComputeMetadataBuilder

ids

public NodeMetadataBuilder ids(String id)
Description copied from class: ComputeMetadataBuilder
set id and providerId to the same value;

Overrides:
ids in class ComputeMetadataBuilder

providerId

public NodeMetadataBuilder providerId(String providerId)
Overrides:
providerId in class ComputeMetadataBuilder

name

public NodeMetadataBuilder name(String name)
Overrides:
name in class ComputeMetadataBuilder

location

public NodeMetadataBuilder location(Location location)
Overrides:
location in class ComputeMetadataBuilder

uri

public NodeMetadataBuilder uri(URI uri)
Overrides:
uri in class ComputeMetadataBuilder

userMetadata

public NodeMetadataBuilder userMetadata(Map<String,String> userMetadata)
Overrides:
userMetadata in class ComputeMetadataBuilder

build

public NodeMetadata build()
Overrides:
build in class ComputeMetadataBuilder

fromNodeMetadata

public static NodeMetadataBuilder fromNodeMetadata(NodeMetadata node)


Copyright © 2009-2012 jclouds. All Rights Reserved.