public class ThingTypeMetadata extends Object implements Serializable
The ThingTypeMetadata contains additional information about the thing type including: creation date and time, a value indicating whether the thing type is deprecated, and a date and time when time was deprecated.
| Constructor and Description |
|---|
ThingTypeMetadata() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Date |
getCreationDate()
The date and time when the thing type was created.
|
Boolean |
getDeprecated()
Whether the thing type is deprecated.
|
Date |
getDeprecationDate()
The date and time when the thing type was deprecated.
|
int |
hashCode() |
Boolean |
isDeprecated()
Whether the thing type is deprecated.
|
void |
setCreationDate(Date creationDate)
The date and time when the thing type was created.
|
void |
setDeprecated(Boolean deprecated)
Whether the thing type is deprecated.
|
void |
setDeprecationDate(Date deprecationDate)
The date and time when the thing type was deprecated.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingTypeMetadata |
withCreationDate(Date creationDate)
The date and time when the thing type was created.
|
ThingTypeMetadata |
withDeprecated(Boolean deprecated)
Whether the thing type is deprecated.
|
ThingTypeMetadata |
withDeprecationDate(Date deprecationDate)
The date and time when the thing type was deprecated.
|
public Boolean isDeprecated()
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Whether the thing type is deprecated. If true, no new things could be associated with this type.
public Boolean getDeprecated()
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Whether the thing type is deprecated. If true, no new things could be associated with this type.
public void setDeprecated(Boolean deprecated)
Whether the thing type is deprecated. If true, no new things could be associated with this type.
deprecated - Whether the thing type is deprecated. If true, no new things could be associated with this type.
public ThingTypeMetadata withDeprecated(Boolean deprecated)
Whether the thing type is deprecated. If true, no new things could be associated with this type.
Returns a reference to this object so that method calls can be chained together.
deprecated - Whether the thing type is deprecated. If true, no new things could be associated with this type.
public Date getDeprecationDate()
The date and time when the thing type was deprecated.
The date and time when the thing type was deprecated.
public void setDeprecationDate(Date deprecationDate)
The date and time when the thing type was deprecated.
deprecationDate - The date and time when the thing type was deprecated.
public ThingTypeMetadata withDeprecationDate(Date deprecationDate)
The date and time when the thing type was deprecated.
Returns a reference to this object so that method calls can be chained together.
deprecationDate - The date and time when the thing type was deprecated.
public Date getCreationDate()
The date and time when the thing type was created.
The date and time when the thing type was created.
public void setCreationDate(Date creationDate)
The date and time when the thing type was created.
creationDate - The date and time when the thing type was created.
public ThingTypeMetadata withCreationDate(Date creationDate)
The date and time when the thing type was created.
Returns a reference to this object so that method calls can be chained together.
creationDate - The date and time when the thing type was created.
public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.