public class ThingTypeMetadata
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.util.Date |
getCreationDate()
The date and time when the thing type was created.
|
java.lang.Boolean |
getDeprecated()
Whether the thing type is deprecated.
|
java.util.Date |
getDeprecationDate()
The date and time when the thing type was deprecated.
|
int |
hashCode() |
java.lang.Boolean |
isDeprecated()
Whether the thing type is deprecated.
|
void |
setCreationDate(java.util.Date creationDate)
The date and time when the thing type was created.
|
void |
setDeprecated(java.lang.Boolean deprecated)
Whether the thing type is deprecated.
|
void |
setDeprecationDate(java.util.Date deprecationDate)
The date and time when the thing type was deprecated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ThingTypeMetadata |
withCreationDate(java.util.Date creationDate)
The date and time when the thing type was created.
|
ThingTypeMetadata |
withDeprecated(java.lang.Boolean deprecated)
Whether the thing type is deprecated.
|
ThingTypeMetadata |
withDeprecationDate(java.util.Date deprecationDate)
The date and time when the thing type was deprecated.
|
public java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.util.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(java.util.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(java.util.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 java.util.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(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.