Package com.seeq.link.sdk.services
Class TransformableAsset
java.lang.Object
com.seeq.link.sdk.services.TransformableAsset
- All Implemented Interfaces:
Transformable<com.seeq.model.PutAssetInputV1>
public class TransformableAsset
extends Object
implements Transformable<com.seeq.model.PutAssetInputV1>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTransformable<com.seeq.model.PutAssetInputV1>
copy()
Return a copy of this Transformable object.com.seeq.model.PutAssetInputV1
Get the underlying API input object that backs this Transformable.getProperty
(String propertyName) Returns the value for the given property.void
removeProperty
(String propertyName) Removes a property.void
setProperty
(String propertyName, Object propertyValue) Sets the value for the given property.void
setProperty
(String propertyName, Object propertyValue, String unitOfMeasure) Sets the value for the given property.toString()
-
Constructor Details
-
TransformableAsset
public TransformableAsset() -
TransformableAsset
public TransformableAsset(com.seeq.model.PutAssetInputV1 input)
-
-
Method Details
-
copy
Description copied from interface:Transformable
Return a copy of this Transformable object.- Specified by:
copy
in interfaceTransformable<com.seeq.model.PutAssetInputV1>
- Returns:
- A copy of this object.
-
getInputObject
public com.seeq.model.PutAssetInputV1 getInputObject()Description copied from interface:Transformable
Get the underlying API input object that backs this Transformable.- Specified by:
getInputObject
in interfaceTransformable<com.seeq.model.PutAssetInputV1>
- Returns:
- A Seeq API input object.
-
getProperty
Description copied from interface:Transformable
Returns the value for the given property.- Specified by:
getProperty
in interfaceTransformable<com.seeq.model.PutAssetInputV1>
- Parameters:
propertyName
- The property to get.- Returns:
- The value, as a string, boolean, int or double.
-
setProperty
Description copied from interface:Transformable
Sets the value for the given property.- Specified by:
setProperty
in interfaceTransformable<com.seeq.model.PutAssetInputV1>
- Parameters:
propertyName
- The property to set.propertyValue
- The value to set. Many properties are restricted to certain value types (e.g. 'Name' will almost always have to be a string).
-
setProperty
Description copied from interface:Transformable
Sets the value for the given property.- Specified by:
setProperty
in interfaceTransformable<com.seeq.model.PutAssetInputV1>
- Parameters:
propertyName
- The property to set.propertyValue
- The value to set. Many properties are restricted to certain value types (e.g. 'Name' will almost always have to be a string).unitOfMeasure
- The unit of measure to set on the property. Optional, and may be ignored for certain properties.
-
removeProperty
Description copied from interface:Transformable
Removes a property.- Specified by:
removeProperty
in interfaceTransformable<com.seeq.model.PutAssetInputV1>
- Parameters:
propertyName
- The property to remove.
-
toString
-