Record Class RegisteredDataSource
java.lang.Object
java.lang.Record
app.ductape.sdk.warehouse.registry.RegisteredDataSource
public record RegisteredDataSource(String tag, WarehouseTypes.DataSourceType type, String env, String product, String status, Map<String,Object> metadata)
extends Record
TS parity:
IRegisteredDataSource-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredDataSource(String tag, WarehouseTypes.DataSourceType type, String env, String product, String status, Map<String, Object> metadata) Creates an instance of aRegisteredDataSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionenv()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.product()Returns the value of theproductrecord component.status()Returns the value of thestatusrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
RegisteredDataSource
public RegisteredDataSource(String tag, WarehouseTypes.DataSourceType type, String env, String product, String status, Map<String, Object> metadata) Creates an instance of aRegisteredDataSourcerecord class.- Parameters:
tag- the value for thetagrecord componenttype- the value for thetyperecord componentenv- the value for theenvrecord componentproduct- the value for theproductrecord componentstatus- the value for thestatusrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-