@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataType extends Object implements Serializable, Cloneable, StructuredPojo
An object that specifies the data type of a property.
Constructor and Description |
---|
DataType() |
Modifier and Type | Method and Description |
---|---|
DataType |
clone() |
boolean |
equals(Object obj) |
List<DataValue> |
getAllowedValues()
The allowed values for this data type.
|
DataType |
getNestedType()
The nested type in the data type.
|
Relationship |
getRelationship()
A relationship that associates a component with another component.
|
String |
getType()
The underlying type of the data type.
|
String |
getUnitOfMeasure()
The unit of measure used in this data type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowedValues(Collection<DataValue> allowedValues)
The allowed values for this data type.
|
void |
setNestedType(DataType nestedType)
The nested type in the data type.
|
void |
setRelationship(Relationship relationship)
A relationship that associates a component with another component.
|
void |
setType(String type)
The underlying type of the data type.
|
void |
setUnitOfMeasure(String unitOfMeasure)
The unit of measure used in this data type.
|
String |
toString()
Returns a string representation of this object.
|
DataType |
withAllowedValues(Collection<DataValue> allowedValues)
The allowed values for this data type.
|
DataType |
withAllowedValues(DataValue... allowedValues)
The allowed values for this data type.
|
DataType |
withNestedType(DataType nestedType)
The nested type in the data type.
|
DataType |
withRelationship(Relationship relationship)
A relationship that associates a component with another component.
|
DataType |
withType(String type)
The underlying type of the data type.
|
DataType |
withType(Type type)
The underlying type of the data type.
|
DataType |
withUnitOfMeasure(String unitOfMeasure)
The unit of measure used in this data type.
|
public void setType(String type)
The underlying type of the data type.
type
- The underlying type of the data type.Type
public String getType()
The underlying type of the data type.
Type
public DataType withType(String type)
The underlying type of the data type.
type
- The underlying type of the data type.Type
public DataType withType(Type type)
The underlying type of the data type.
type
- The underlying type of the data type.Type
public void setNestedType(DataType nestedType)
The nested type in the data type.
nestedType
- The nested type in the data type.public DataType getNestedType()
The nested type in the data type.
public DataType withNestedType(DataType nestedType)
The nested type in the data type.
nestedType
- The nested type in the data type.public List<DataValue> getAllowedValues()
The allowed values for this data type.
public void setAllowedValues(Collection<DataValue> allowedValues)
The allowed values for this data type.
allowedValues
- The allowed values for this data type.public DataType withAllowedValues(DataValue... allowedValues)
The allowed values for this data type.
NOTE: This method appends the values to the existing list (if any). Use
setAllowedValues(java.util.Collection)
or withAllowedValues(java.util.Collection)
if you want
to override the existing values.
allowedValues
- The allowed values for this data type.public DataType withAllowedValues(Collection<DataValue> allowedValues)
The allowed values for this data type.
allowedValues
- The allowed values for this data type.public void setUnitOfMeasure(String unitOfMeasure)
The unit of measure used in this data type.
unitOfMeasure
- The unit of measure used in this data type.public String getUnitOfMeasure()
The unit of measure used in this data type.
public DataType withUnitOfMeasure(String unitOfMeasure)
The unit of measure used in this data type.
unitOfMeasure
- The unit of measure used in this data type.public void setRelationship(Relationship relationship)
A relationship that associates a component with another component.
relationship
- A relationship that associates a component with another component.public Relationship getRelationship()
A relationship that associates a component with another component.
public DataType withRelationship(Relationship relationship)
A relationship that associates a component with another component.
relationship
- A relationship that associates a component with another component.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.