Class IdFormat
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the ID format for a resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The date in UTC at which you are permanently switched over to using longer IDs.The type of resource.Indicates whether longer IDs (17-character IDs) are enabled for the resource.int
hashCode()
Indicates whether longer IDs (17-character IDs) are enabled for the resource.void
setDeadline
(Date deadline) The date in UTC at which you are permanently switched over to using longer IDs.void
setResource
(String resource) The type of resource.void
setUseLongIds
(Boolean useLongIds) Indicates whether longer IDs (17-character IDs) are enabled for the resource.toString()
Returns a string representation of this object; useful for testing and debugging.withDeadline
(Date deadline) The date in UTC at which you are permanently switched over to using longer IDs.withResource
(String resource) The type of resource.withUseLongIds
(Boolean useLongIds) Indicates whether longer IDs (17-character IDs) are enabled for the resource.
-
Constructor Details
-
IdFormat
public IdFormat()
-
-
Method Details
-
setResource
The type of resource.
- Parameters:
resource
- The type of resource.
-
getResource
The type of resource.
- Returns:
- The type of resource.
-
withResource
The type of resource.
- Parameters:
resource
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUseLongIds
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
- Parameters:
useLongIds
- Indicates whether longer IDs (17-character IDs) are enabled for the resource.
-
getUseLongIds
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
- Returns:
- Indicates whether longer IDs (17-character IDs) are enabled for the resource.
-
withUseLongIds
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
- Parameters:
useLongIds
- Indicates whether longer IDs (17-character IDs) are enabled for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isUseLongIds
Indicates whether longer IDs (17-character IDs) are enabled for the resource.
- Returns:
- Indicates whether longer IDs (17-character IDs) are enabled for the resource.
-
setDeadline
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withDeadline
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-