Record Class ConfigResourceRead
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.config.ai.ConfigResourceRead
- Record Components:
name- the resource name; for a singleton type, the type's own identifier.description- the resource's user-authored documentation, ornullwhen it has none.enabled- whether the resource is enabled.config- the resource's configuration, with secrets redacted.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigResourceRead(String name, @Nullable String description, boolean enabled, com.inductiveautomation.ignition.common.gson.JsonElement config) Creates an instance of aConfigResourceReadrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.inductiveautomation.ignition.common.gson.JsonElementconfig()Returns the value of theconfigrecord component.@Nullable StringReturns the value of thedescriptionrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigResourceRead
public ConfigResourceRead(String name, @Nullable String description, boolean enabled, com.inductiveautomation.ignition.common.gson.JsonElement config) Creates an instance of aConfigResourceReadrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentenabled- the value for theenabledrecord componentconfig- the value for theconfigrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
enabled
-
config
-