Record Class ElementDefaultAttributeRecord
java.lang.Object
java.lang.Record
dev.getelements.elements.sdk.record.ElementDefaultAttributeRecord
- Record Components:
name- the name of the attributevalue- the defaule value of the attribute
public record ElementDefaultAttributeRecord(String name, String value, String description, boolean sensitive)
extends Record
Represents the default value of the attribute.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElementDefaultAttributeRecord(String name, String value, String description, boolean sensitive) Constructor with non-null checks. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Gets the ElementDefaultAttributeRecord from the field.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.redacted()booleanReturns the value of thesensitiverecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
REDACTED
Redacted value for sensitive attributes.- See Also:
-
-
Constructor Details
-
Method Details
-
from
Gets the ElementDefaultAttributeRecord from the field.- Parameters:
field- the field- Returns:
- the ElementDefaultAttributeRecord
-
redacted
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
sensitive
public boolean sensitive()Returns the value of thesensitiverecord component.- Returns:
- the value of the
sensitiverecord component
-