|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.elb.domain.AttributeMetadata<V>
public class AttributeMetadata<V>
This data type is used to describe values that are acceptable for the policy attribute.
| 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
|
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 |
|---|
protected final String name
protected final Class<V> type
protected final String rawType
protected final AttributeMetadata.Cardinality cardinality
protected final com.google.common.base.Optional<V> defaultValue
protected final com.google.common.base.Optional<String> description
| Constructor Detail |
|---|
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 |
|---|
public static <V> AttributeMetadata.Builder<V> builder()
public AttributeMetadata.Builder<V> toBuilder()
public String getName()
public Class<V> getType()
public String getRawType()
will return String.class
public AttributeMetadata.Cardinality getCardinality()
public com.google.common.base.Optional<V> getDefaultValue()
public com.google.common.base.Optional<String> getDescription()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectprotected com.google.common.base.Objects.ToStringHelper string()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||