Record Class EstateInventory.ServiceTokenRecord
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateInventory.ServiceTokenRecord
- Record Components:
id- the token uuidname- the token nametype- the token typestate- the token state (ACTIVE,INACTIVE,EXPIRED,DELETED)expiresAt- the expiry time, when setcreatedAt- when the token was createdprojectId- the project id
- Enclosing class:
EstateInventory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.Returns the value of theprojectIdrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
ServiceTokenRecord
public ServiceTokenRecord(String id, String name, String type, String state, Instant expiresAt, Instant createdAt, String projectId) Creates an instance of aServiceTokenRecordrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentstate- the value for thestaterecord componentexpiresAt- the value for theexpiresAtrecord componentcreatedAt- the value for thecreatedAtrecord componentprojectId- the value for theprojectIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
name
-
type
-
state
-
expiresAt
-
createdAt
-
projectId
-