Record Class Secret
java.lang.Object
java.lang.Record
com.enkryptify.internal.model.Secret
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.dataType()Returns the value of thedataTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.note()Returns the value of thenoterecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of theupdatedAtrecord component.values()Returns the value of thevaluesrecord component.
-
Constructor Details
-
Secret
public Secret(String id, String name, String note, String type, String dataType, List<SecretValue> values, String createdAt, String updatedAt) Creates an instance of aSecretrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentnote- the value for thenoterecord componenttype- the value for thetyperecord componentdataType- the value for thedataTyperecord componentvalues- the value for thevaluesrecord componentcreatedAt- the value for thecreatedAtrecord componentupdatedAt- the value for theupdatedAtrecord 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
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
note
Returns the value of thenoterecord component.- Returns:
- the value of the
noterecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-