org.jclouds.elb.domain
Class AttributeMetadata<V>

java.lang.Object
  extended by org.jclouds.elb.domain.AttributeMetadata<V>

public class AttributeMetadata<V>
extends Object

This data type is used to describe values that are acceptable for the policy attribute.

Author:
Adrian Cole
See Also:
doc

Nested Class Summary
static class AttributeMetadata.Builder<V>
           
static class AttributeMetadata.Cardinality
          The cardinality of the attribute.
 
Field Summary
protected  AttributeMetadata.Cardinality cardinality
           
protected  com.google.common.base.Optional<V> defaultValue
           
protected  com.google.common.base.Optional<String> description
           
protected  String name
           
protected  String rawType
           
protected  Class<V> type
           
 
Constructor Summary
protected AttributeMetadata(String name, Class<V> type, String rawType, AttributeMetadata.Cardinality cardinality, com.google.common.base.Optional<V> defaultValue, com.google.common.base.Optional<String> description)
           
 
Method Summary
static
<V> AttributeMetadata.Builder<V>
builder()
           
 boolean equals(Object obj)
          
 AttributeMetadata.Cardinality getCardinality()
          The cardinality of the attribute.
 com.google.common.base.Optional<V> getDefaultValue()
          The default value of the attribute, if applicable.
 com.google.common.base.Optional<String> getDescription()
          A human-readable description of the attribute.
 String getName()
          The name of the attribute associated with the policy type.
 String getRawType()
          Literal type of the value, noting that if it doesn't correspond to a primitive or String, will return String.class
 Class<V> getType()
          The type of attribute.
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
           
 AttributeMetadata.Builder<V> toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

type

protected final Class<V> type

rawType

protected final String rawType

cardinality

protected final AttributeMetadata.Cardinality cardinality

defaultValue

protected final com.google.common.base.Optional<V> defaultValue

description

protected final com.google.common.base.Optional<String> description
Constructor Detail

AttributeMetadata

protected AttributeMetadata(String name,
                            Class<V> type,
                            String rawType,
                            AttributeMetadata.Cardinality cardinality,
                            com.google.common.base.Optional<V> defaultValue,
                            com.google.common.base.Optional<String> description)
Method Detail

builder

public static <V> AttributeMetadata.Builder<V> builder()

toBuilder

public AttributeMetadata.Builder<V> toBuilder()

getName

public String getName()
The name of the attribute associated with the policy type.


getType

public Class<V> getType()
The type of attribute. For example, Boolean, Long, String, etc.


getRawType

public String getRawType()
Literal type of the value, noting that if it doesn't correspond to a primitive or String, will return String.class


getCardinality

public AttributeMetadata.Cardinality getCardinality()
The cardinality of the attribute.


getDefaultValue

public com.google.common.base.Optional<V> getDefaultValue()
The default value of the attribute, if applicable.


getDescription

public com.google.common.base.Optional<String> getDescription()
A human-readable description of the attribute.


hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

toString

public String toString()

Overrides:
toString in class Object

string

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


Copyright © 2009-2012 jclouds. All Rights Reserved.