Interface AssetModelPropertyDefinition.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>, SdkBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>, SdkPojo
Enclosing class:
AssetModelPropertyDefinition

public static interface AssetModelPropertyDefinition.Builder extends SdkPojo, CopyableBuilder<AssetModelPropertyDefinition.Builder,AssetModelPropertyDefinition>
  • Method Details

    • name

      The name of the property definition.

      Parameters:
      name - The name of the property definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataType

      The data type of the property definition.

      If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

      Parameters:
      dataType - The data type of the property definition.

      If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataType

      The data type of the property definition.

      If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

      Parameters:
      dataType - The data type of the property definition.

      If you specify STRUCT, you must also specify dataTypeSpec to identify the type of the structure for this property.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataTypeSpec

      AssetModelPropertyDefinition.Builder dataTypeSpec(String dataTypeSpec)

      The data type of the structure for this property. This parameter is required on properties that have the STRUCT data type.

      The options for this parameter depend on the type of the composite model in which you define this property. Use AWS/ALARM_STATE for alarm state in alarm composite models.

      Parameters:
      dataTypeSpec - The data type of the structure for this property. This parameter is required on properties that have the STRUCT data type.

      The options for this parameter depend on the type of the composite model in which you define this property. Use AWS/ALARM_STATE for alarm state in alarm composite models.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unit

      The unit of the property definition, such as Newtons or RPM.

      Parameters:
      unit - The unit of the property definition, such as Newtons or RPM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The property definition type (see PropertyType). You can only specify one type in a property definition.

      Parameters:
      type - The property definition type (see PropertyType). You can only specify one type in a property definition.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The property definition type (see PropertyType). You can only specify one type in a property definition.

      This is a convenience method that creates an instance of the PropertyType.Builder avoiding the need to create one manually via PropertyType.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to type(PropertyType).

      Parameters:
      type - a consumer that will call methods on PropertyType.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: