public class IdFormat
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the ID format for a resource.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
deadline
The date in UTC at which you are permanently switched over to using
longer IDs.
|
private java.lang.String |
resource
The type of resource.
|
private java.lang.Boolean |
useLongIds
Indicates whether longer IDs (17-character IDs) are enabled for the
resource.
|
Constructor and Description |
---|
IdFormat() |
Modifier and Type | Method and Description |
---|---|
IdFormat |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDeadline()
The date in UTC at which you are permanently switched over to using
longer IDs.
|
java.lang.String |
getResource()
The type of resource.
|
java.lang.Boolean |
getUseLongIds()
Indicates whether longer IDs (17-character IDs) are enabled for the
resource.
|
int |
hashCode() |
java.lang.Boolean |
isUseLongIds()
Indicates whether longer IDs (17-character IDs) are enabled for the
resource.
|
void |
setDeadline(java.util.Date deadline)
The date in UTC at which you are permanently switched over to using
longer IDs.
|
void |
setResource(java.lang.String resource)
The type of resource.
|
void |
setUseLongIds(java.lang.Boolean useLongIds)
Indicates whether longer IDs (17-character IDs) are enabled for the
resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IdFormat |
withDeadline(java.util.Date deadline)
The date in UTC at which you are permanently switched over to using
longer IDs.
|
IdFormat |
withResource(java.lang.String resource)
The type of resource.
|
IdFormat |
withUseLongIds(java.lang.Boolean useLongIds)
Indicates whether longer IDs (17-character IDs) are enabled for the
resource.
|
private java.lang.String resource
The type of resource.
private java.lang.Boolean useLongIds
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
private java.util.Date deadline
The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
public void setResource(java.lang.String resource)
The type of resource.
resource
- The type of resource.public java.lang.String getResource()
The type of resource.
public IdFormat withResource(java.lang.String resource)
The type of resource.
resource
- The type of resource.public void setUseLongIds(java.lang.Boolean useLongIds)
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
useLongIds
- Indicates whether longer IDs (17-character IDs) are enabled for
the resource.public java.lang.Boolean getUseLongIds()
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
public IdFormat withUseLongIds(java.lang.Boolean useLongIds)
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
useLongIds
- Indicates whether longer IDs (17-character IDs) are enabled for
the resource.public java.lang.Boolean isUseLongIds()
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
public void setDeadline(java.util.Date deadline)
The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
deadline
- The date in UTC at which you are permanently switched over to
using longer IDs. If a deadline is not yet available for this
resource type, this field is not returned.public java.util.Date getDeadline()
The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
public IdFormat withDeadline(java.util.Date deadline)
The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
deadline
- The date in UTC at which you are permanently switched over to
using longer IDs. If a deadline is not yet available for this
resource type, this field is not returned.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IdFormat clone()
clone
in class java.lang.Object