org.jclouds.openstack.nova.v2_0.domain
Class HostAggregate

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.HostAggregate

public class HostAggregate
extends Object

Aggregates can be manipulated using the Aggregate Extension to Nova (alias "OS-AGGREGATES")

See Also:
HostAggregateApi

Nested Class Summary
static class HostAggregate.Builder<T extends HostAggregate.Builder<T>>
           
 
Constructor Summary
protected HostAggregate(String id, String name, String availabilityZone, Set<String> hosts, String state, Date created, Date updated, Map<String,String> metadata)
           
 
Method Summary
static HostAggregate.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          note: an "Availability Zone" is different from a Nova "Zone"
 Date getCreated()
           
 Set<String> getHosts()
           
 String getId()
           
 Map<String,String> getMetadata()
           
 String getName()
           
 String getState()
           
 com.google.common.base.Optional<Date> getUpdated()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 HostAggregate.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostAggregate

@ConstructorProperties(value={"id","name","availability_zone","hosts","operational_state","created_at","updated_at","metadata"})
protected HostAggregate(String id,
                                                   String name,
                                                   String availabilityZone,
                                                   @Nullable
                                                   Set<String> hosts,
                                                   String state,
                                                   Date created,
                                                   @Nullable
                                                   Date updated,
                                                   @Nullable
                                                   Map<String,String> metadata)
Method Detail

builder

public static HostAggregate.Builder<?> builder()

toBuilder

public HostAggregate.Builder<?> toBuilder()

getId

public String getId()

getName

public String getName()

getAvailabilityZone

public String getAvailabilityZone()
note: an "Availability Zone" is different from a Nova "Zone"

Returns:
the availability zone this aggregate is in

getHosts

public Set<String> getHosts()

getState

public String getState()

getCreated

public Date getCreated()

getUpdated

public com.google.common.base.Optional<Date> getUpdated()

getMetadata

public Map<String,String> getMetadata()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.